I created a Hub like this:
<Hub x:Name="Hub" x:Uid="Hub" Margin="0,76,0,0"> <HubSection x:Uid="HubSection1" Header="Карта" FontSize="20"> <DataTemplate> <my:MapControl /> </DataTemplate> </HubSection> <HubSection x:Name="hb2" x:Uid="HubSection2" Header="Местоположения"> <DataTemplate> <Grid x:Name="gridm"> <ComboBox > <ComboBoxItem Content="Последняя" IsSelected="True"/> <ComboBoxItem Content="За последние сутки"/> <ComboBoxItem Content="За неделю"/> </ComboBox> <ListView x:Name="list" Foreground="White" Margin="5,58,5,5" ItemClick="list_ItemClick" SelectionChanged="list_SelectionChanged" Header="123456123" RequestedTheme="Light" SizeChanged="list_SizeChanged"> </ListView> </Grid> </DataTemplate> </HubSection> </Hub>
So, I can’t get through to ListView. C # constantly writes that list is not available in this context ... How can I get to the list in my case?
