<Hub x:Name="Hub1" x:Uid="Hub" Margin="0,76,0,0"> <HubSection x:Name="hb1" x:Uid="HubSection1" Header="Карта" Foreground="#FF317A8F" IsHeaderInteractive="True"> <DataTemplate> </DataTemplate> </HubSection> <HubSection x:Name="hb2" x:Uid="HubSection2" DataContext="{Binding}" Header="Местоположения" Foreground="#FF317A8F" IsHeaderInteractive="True"> <DataTemplate> <Grid x:Name="gridm"> </Grid> </DataTemplate> </HubSection> </Hub>
How to switch HubSection programmatically? For example, if something happened at the time when the active hb2, hub turned over to hb1 ??