Hi developers!
I have a question how to set the number of rows from the code (C#)
I have following xaml code:
<GroupStyle.Panel>
<ItemsPanelTemplate>
<VariableSizedWrapGrid x:Name="LogoGrid" Orientation="Vertical" Margin="0,0,80,0" ItemWidth="180" ItemHeight="160" MaximumRowsOrColumns="3"/>
</ItemsPanelTemplate>
</GroupStyle.Panel>
I want to let users to set number of rows on the Settings page,
my GridView:
<local:VariableSizeGridView
/>
class VariableSizeGridView: GridView
{
protected override void PrepareContainerForItemOverride(Windows.UI.Xaml.DependencyObject element, object item)
{
base.PrepareContainerForItemOverride(element, item);
}
}
Is it possible? And is it possilbe to change number of rows at runtime?