MainPage.xaml
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid x:Name="GridA">
<Grid x:Name="GridB"/>
</Grid>
</Grid>
It is possible get GridB
parent from GridB
This is what I'm trying to do
//Null
Panel parent1 = GridB.Parent as Panel;
//Null
Panel parent2 = VisualTreeHelper.GetParent(GridB) as Panel;
All of them return null.
Any idea?