Beispiel #1
0
 private void RequestNavigate(string target)
 {
     if (_navigationService.CanNavigate(target))
     {
         _navigationService.RequestNavigate(target);
     }
 }
Beispiel #2
0
 public static void RequestNavigate(
     this IRegionNavigationService navigationService,
     Type targetType,
     NavigationParameters navigationParams = null)
 {
     navigationService.RequestNavigate(targetType.FullName, navigationParams);
 }
 private void NavigateToDetail(SampleOrder order)
 {
     _navigationService.RequestNavigate(PageKeys.ContentGridDetail, new NavigationParameters()
     {
         { "DetailID", order.OrderID }
     });
 }
        void ExecuteModificarProjetoCommand()
        {
            var np = new NavigationParameters();

            np.Add("Id", Selected.Id);
            _navigationService.RequestNavigate(PageKeys.Projeto, np);
        }
Beispiel #5
0
        public void OpenInRightPane(string pageKey, NavigationParameters navigationParameters = null)
        {
            if (_rightPaneNavigationService.CanNavigate(pageKey))
            {
                _rightPaneNavigationService.RequestNavigate(pageKey, navigationParameters);
            }

            _splitView.IsPaneOpen = true;
            PaneOpened?.Invoke(_splitView, EventArgs.Empty);
        }
        private bool RequestNavigate(string target)
        {
            if (_navigationService.CanNavigate(target))
            {
                _navigationService.RequestNavigate(target);
                return(true);
            }

            return(false);
        }
 private void OnLoaded()
 {
     _navigationService = _regionManager.Regions[Regions.Main].NavigationService;
     _navigationService.RequestNavigate(PageKeys.Param_HomeName);
 }
Beispiel #8
0
 private void NavigateToViewB()
 {
     _navigationService.RequestNavigate(typeof(ViewB).FullName);
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public FirstViewModel()
 {
     NextCommand       = new DelegateCommand(() => RegionNavigationService.RequestNavigate(nameof(CallBackView)));
     PopupModalCommand = new DelegateCommand(() => PopupModalWindow());
 }
Beispiel #10
0
 public static void RequestNavigate <T>(
     this IRegionNavigationService navigationService,
     NavigationParameters navigationParams = null)
 {
     navigationService.RequestNavigate(typeof(T), navigationParams);
 }