public void GoBackOrForward(Type type, PageNavigationDirection direction, object data = null) { if (direction == PageNavigationDirection.Forward && CanGoForward) { GoForward(); } else if (direction == PageNavigationDirection.Backward && CanGoBack) { GoBack(); } else { Page page; if (data == null) { page = Activator.CreateInstance(type) as Page; } else { page = Activator.CreateInstance(type, data) as Page; } Navigate(page); } }
public override void OnNavigatedTo(PageNavigationDirection direction, params object[] parameters) { base.OnNavigatedTo(direction, parameters); if (direction == PageNavigationDirection.Forward) { _editMode = EditModeProvider.GetFrom(parameters); _media = _editMode.Load(); OnPropertyChanged(nameof(MediaTitle)); } }
public virtual void OnNavigatedTo(PageNavigationDirection direction, params object[] parameters) { }
public override void OnNavigatedTo(PageNavigationDirection direction, params object[] parameters) { base.OnNavigatedTo(direction, parameters); LoadMedia(); }