I have this template for my GridView:
<DataTemplate x:Key="GroupTemplate1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="0,9.5,0,0">
<Image Source="{Binding Property3}" Height="79" Width="79"/>
</Border>
<!-- <StackPanel Grid.Column="1" Margin="14.5,0,0,0">
<TextBlock Text="{Binding Property1}" Style="{ThemeResource ListViewItemTextBlockStyle}"/>
<TextBlock Text="{Binding Property2}" Style="{ThemeResource ListViewItemSubheaderTextBlockStyle}"/>
</StackPanel> -->
</Grid>
</DataTemplate>
As you can see, for each item there are three infos: Property3 (Image), Property2 (text), Property1 (text).
How can create and add a new ListViewItem with those three fields and add it to the GridView programmatically?
Something like:
//
gridView1.Add(new ListViewItem("imagename", "text1", "text2");
//