Metro app: change GridView.ItemTemplate programmatically
问题 I've a GridView in my Xaml with a given DataTemplate set a StaticResource: <GridView x:Name="itemGridView" ItemsSource="{Binding Source={StaticResource itemsViewSource}}" ItemTemplate="{StaticResource MyItemTemplate }" SelectionMode="None" IsItemClickEnabled="True" ItemClick="ItemView_ItemClick"/> By clicking on a button in the AppBar, I'd like to restyle this template by applying another DataTemplate - MyItemTemplateWide to this particular list. My datatemplates are stored in an Xaml file