void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) { var args = new NavigatedEventArgs(e); foreach (var handler in _navigatedEventHandlers) { handler(this, args); } CurrentPageType = e.SourcePageType; CurrentPageParam = e.Parameter as String; }
public void RaiseNavigated(object page, object parameter, NavigationMode mode) { var navigatedEventArgs = new NavigatedEventArgs() { Page = page as Page, Parameter = parameter, NavigationMode = mode, PageType = page?.GetType(), }; RaiseNavigated(navigatedEventArgs); }
void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) { CurrentPageType = e.SourcePageType; CurrentPageParam = e.Parameter; var args = new NavigatedEventArgs(e, Content as Page); if (NavigationModeHint != NavigationMode.New) { args.NavigationMode = NavigationModeHint; } NavigationModeHint = NavigationMode.New; foreach (var handler in _navigatedEventHandlers) { handler(this, args); } }
void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) { DebugWrite(); CurrentPageType = e.SourcePageType; CurrentPageParam = SerializationService.Deserialize(e.Parameter?.ToString()); var args = new NavigatedEventArgs(e, Content as Page); if (NavigationModeHint != NavigationMode.New) { args.NavigationMode = NavigationModeHint; } NavigationModeHint = NavigationMode.New; foreach (var handler in _navigatedEventHandlers) { handler(this, args); } }
void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) { DebugWrite(); CurrentPageType = e.SourcePageType; CurrentPageParam = SerializationService.Deserialize(e.Parameter?.ToString()); var args = new NavigatedEventArgs(e, Content as Page); if (NavigationModeHint != NavigationMode.New) args.NavigationMode = NavigationModeHint; NavigationModeHint = NavigationMode.New; foreach (var handler in _navigatedEventHandlers) { handler(this, args); } }
public void RaiseNavigated(NavigatedEventArgs e) { Navigated?.Invoke(this, e); }
public void RaiseNavigated(NavigatedEventArgs e) { Navigated?.Invoke(this, e); // for backwards compat FrameFacadeInternal.RaiseNavigated(e); }
void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) { CurrentPageType = e.SourcePageType; CurrentPageParam = e.Parameter; var args = new NavigatedEventArgs(e, Content as Page); if (NavigationModeHint != NavigationMode.New) args.NavigationMode = NavigationModeHint; NavigationModeHint = NavigationMode.New; foreach (var handler in _navigatedEventHandlers) { handler(this, args); } }
private void UpdateButtons(NavigatedEventArgs e) { UpdateButtons(e.PageType); }