예제 #1
0
        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);
            }
        }
예제 #2
0
 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));
     }
 }
예제 #3
0
 public virtual void OnNavigatedTo(PageNavigationDirection direction, params object[] parameters)
 {
 }
예제 #4
0
 public override void OnNavigatedTo(PageNavigationDirection direction, params object[] parameters)
 {
     base.OnNavigatedTo(direction, parameters);
     LoadMedia();
 }