Exemplo n.º 1
0
 private void PageFrame_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     PageFrame.UpdateContentContext();
 }
Exemplo n.º 2
0
        // The LoadCompleted and DataContextChanged event handlers here are required to update Page's DataContext
        // Due to WPF content isolation, DataContext will not be passed through Frame to Pages automatically
        // (Frame-Page was originally designed to run in restricted environment like Internet Explorer)

        private void PageFrame_LoadCompleted(object sender, NavigationEventArgs e)
        {
            PageFrame.UpdateContentContext();
        }