I have into solution
When I use (B) to test (A) everything works fine. When I use (C) to show (A) the navigation button of A are disabled, and instead the navigation button of C works for pages of A and C.
It looks that the all the commands sent to the frame of C are instead sent to the parent frame of A.
How is it possible?
I have my navigation button with custom UIRoutedCommand
private void Backward_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = ChildFrame?.CanGoBack??false;
e.Handled = true;
}
ChildFrame?.CanGoBack is always false when A is used by C.
Maybe I wrote the question too fast, instead of read MSDN documentation...
<Frame x:Name="ChildFrame" NavigationUIVisibility="Hidden" JournalOwnership="OwnsJournal">
JournalOwnership="OwnsJournal" saved my day
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.