How to add items to XAML/WINRT Grid from Code
问题 So, I am trying to create a grid that can be dynamically populated by 0 to X items depending on when the Frame is open. I read the MSDN article on how to create a grid and add to it in code: http://msdn.microsoft.com/en-us/library/ms752271.aspx Howeverm I want to create the Grid in the XAML and add to it in the code. Something like this: XAML: <Grid x:Name="ManagePhotosContent" Grid.Row="1" Visibility="Visible"> <!-- to be filled in by code --> </Grid> In C# code i am doing something like