// This event is called and then unhooked. private void ChainInto_Page_Loaded(object sender, RoutedEventArgs e) { SmartPage page = (SmartPage)sender; page.Loaded -= ChainInto_Page_Loaded; page.InternalPageOpened(); if (ViewModel.IsActivated) { page.InternalActivate(); } }
private void FrameData_FrameActivatedEvent() { Update_ActivationRectangle_Color(); if (ViewModel.SelectedTab != null) { SmartPage topmost_page = ViewModel.SelectedTab.TopMost(); if (topmost_page != null) { topmost_page.InternalActivate(); } } }