I upgraded to 1.1.1, but I still have problems. It works fine in 1.0.3, but not in 1.1.1.
<EdgeNavigator>
...
<DockPanel>
...
<PageControl ux:Name="pages" Interaction="None" Transition="None">
<ListPage />
<RankPage />
<FriendPage />
<ProfilePage />
</PageControl>
<PageIndicator Dock="Bottom" Height="{deviceHeight}/12.878504673" Navigation="pages">
...
</PageIndicator>
</DockPanel>
</EdgeNavigator>
Activated in 4 pages does not work.
my test device is iphone7 +
Can you please expand the example to show how you are using WhileActive
and Activated
and explain on which page it doesn’t trigger?
<Page ux:Class="RankPage" Color="BackWhite">
<Router ux:Dependency="router" />
...
<Activated Handler="{activeRankPage}"/>
<DockPanel HitTestMode="LocalBoundsAndChildren">
...
</DockPanel>
</Page>
The rest of the page uses activated in this way
Try adding a Path="Local"
to the Activated
trigger. This will ignore the entire tree and consider just the local navigation.
To see why it doesn’t work for the default Path
I’d have to see a more complete example with the intervening and top-level nodes. Are you sure you don’t have some kind of other navigation object where the page might not be active?
As a result of the advice, it was done without any problems!
Thank you for your help!