Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, the time has passed and i've got no better solution than creating a custom columned model and using a grid with few VariableGridViews (one VariableGridViews per column).</p> <p>Maybe, my XAML will help somebody.</p> <pre><code>&lt;controls:VariableGridView ItemsSource="{Binding Columns}"&gt; &lt;controls:VariableGridView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;controls:VariableGridView ItemsSource="{Binding Tiles}"&gt; &lt;controls:VariableGridView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;Grid VariableSizedWrapGrid.ColumnSpan="{Binding Width}"&gt; &lt;Rectangle Fill="Red" Width="{Binding WidthPixels}" Height="{Binding HeightPixels}"&gt;&lt;/Rectangle&gt; &lt;/Grid&gt; &lt;/DataTemplate&gt; &lt;/controls:VariableGridView.ItemTemplate&gt; &lt;controls:VariableGridView.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;VariableSizedWrapGrid VerticalAlignment="Center" ItemHeight="150" ItemWidth="150" MaximumRowsOrColumns="2" Orientation="Horizontal" Height="768" AllowDrop="True" Tapped="VariableSizedWrapGrid_Tapped"/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/controls:VariableGridView.ItemsPanel&gt; &lt;/controls:VariableGridView&gt; &lt;/DataTemplate&gt; &lt;/controls:VariableGridView.ItemTemplate&gt; &lt;/controls:VariableGridView&gt; </code></pre> <p>Model source code looks like (truncated) </p> <pre><code>public class TilesCollection { public ObservableCollection&lt;ITile&gt; Tiles {get; private set;} } public class ColumnedListModel { ObservableCollection&lt;TilesCollection&gt; m_columns = new ObservableCollection&lt;TilesCollection&gt;(); public ObservableCollection&lt;TilesCollection&gt; Columns { get { return m_columns; } } // .... } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload