当前位置: 首页>>代码示例>>C#>>正文


C# INavigationService类代码示例

本文整理汇总了C#中INavigationService的典型用法代码示例。如果您正苦于以下问题:C# INavigationService类的具体用法?C# INavigationService怎么用?C# INavigationService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


INavigationService类属于命名空间,在下文中一共展示了INavigationService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoginViewModel

 public LoginViewModel(RegistrationService registrationService, INavigationService navigationService)
 {
     _registrationService = registrationService;
     _navigationService = navigationService;
     _registrationService.AuthorizationFinished += OnAuthorizationFinished;
     UserName = "[email protected]";
 }
开发者ID:rawman,项目名称:Walleet,代码行数:7,代码来源:LoginViewModel.cs

示例2: StopSelectionViewModel

 public StopSelectionViewModel(IUnitOfWork unitOfWork, AppUse appUse, INavigationService navigationService)
     : base(appUse, ApplicationPage.StopSelection, unitOfWork, navigationService)
 {
     this.timerSearch = new DispatcherTimer();
     this.timerSearch.Interval = new TimeSpan(0, 0, 1);
     this.timerSearch.Tick += TimerTickSearch;
 }
开发者ID:CodeObsessed,项目名称:drumbleapp,代码行数:7,代码来源:StopSelectionViewModel.cs

示例3: MainViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        /// <param name="televisionService">An instance of television data service.</param>
        /// <param name="navigationService">An instance of application navigation service.</param>
        public MainViewModel(ITelevisionService televisionService, INavigationService navigationService)
        {
            this.televisionService = televisionService;
            this.navigationService = navigationService;

            this.InitializeCommands();
        }
开发者ID:jankratochvilcz,项目名称:DoesItStillAir,代码行数:12,代码来源:MainViewModel.cs

示例4: MainViewModel

        public MainViewModel(INavigationService navigationService, IPlatformEvents platformEvents)
        {
            _navigationService = navigationService;
            _platformEvents = platformEvents;

            _platformEvents.BackButtonPressed += BackButtonPressed;
        }
开发者ID:Yanpix,项目名称:FinanceManager,代码行数:7,代码来源:MainViewModel.cs

示例5: EntityListPageViewModel

  public EntityListPageViewModel(IEntityRepository entityRepository, INavigationService navService, IEventAggregator eventAggregator) {
      _entityRepository = entityRepository;
      _navService = navService;
      _eventAggregator = eventAggregator;
      NavCommand = new DelegateCommand<Entity>(OnNavCommand);
      EntityDetailNavCommand = new DelegateCommand(() => _navService.Navigate("EntityDetail", 0));
 }
开发者ID:ronlemire2,项目名称:PrismRT-CodeGen,代码行数:7,代码来源:EntityListPageViewModel.cs

示例6: ProximityViewModel

 public ProximityViewModel(INavigationService navigationService, IFavoriteService favoriteService)
     : base(navigationService, favoriteService)
 {
     this.navigationService = navigationService;
     this.ProximityProcess = new ProximityProcess();
     this.ProximityProcess.PropertyChanged += ProximityProcess_PropertyChanged;
 }
开发者ID:Frannsoft,项目名称:dnd35encyclopedia,代码行数:7,代码来源:ProximityViewModel.cs

示例7: ViewModel

        protected ViewModel(INavigationService navigationService)
        {
            PhoneApplicationService.Current.Deactivated += this.OnDeactivated;
            PhoneApplicationService.Current.Activated += this.OnActivated;

            this.navigationService = navigationService;
        }
开发者ID:piredman,项目名称:MobileMilk,代码行数:7,代码来源:ViewModel.cs

示例8: ServiceConfigurationBuilder

 public ServiceConfigurationBuilder(INavigationService navigationService, IActionInvokerFactory invokerFactory)
 {
     _navigationService = navigationService;
     _configuration = ServiceConfiguration.CreateSilently(
         "My configuration name", "http://baseuri",
         _navigationService, invokerFactory);
 }
开发者ID:johanclasson,项目名称:Rester,代码行数:7,代码来源:ServiceConfigurationBuilder.cs

示例9: LoadingPage

        public LoadingPage()
        {
            _navigationService = SimpleIoc.Default.GetInstance<INavigationService>();

            InitializeComponent();
            this.progressBar.IsIndeterminate = true;
        }
开发者ID:ncksol,项目名称:MetroLepra,代码行数:7,代码来源:LoadingPage.xaml.cs

示例10: MainViewModel

        public MainViewModel(INavigationService navigationService)
        {
            if (navigationService == null) throw new ArgumentNullException(nameof(navigationService));
            _navigationService = navigationService;

            ShowMessageCommand = new RelayCommand(ShowMessage);
        }
开发者ID:HouseOfTheFuture,项目名称:Mobile-App,代码行数:7,代码来源:MainViewModel.cs

示例11: StarWarsMoviesViewModel

 public StarWarsMoviesViewModel(IStarWarsRepository rep, INavigationService nav)
 {
     repo = rep;
     this.nav = nav;
     
     LoadCommands();
 }
开发者ID:JonasHansen16,项目名称:StarwarsUWP,代码行数:7,代码来源:StarWarsMoviesViewModel.cs

示例12: SaveChanges_ViewModel

        public SaveChanges_ViewModel(ILogger Logger_, INavigationService NavigationService_)
        {
            if (!IsInDesignMode)
            {
                Logger = Logger_;
                NavigationService = NavigationService_;
                CommandDispatcher = new MvxCommand<string>(CmdDispatcher);
            }

            if (IsInDesignMode)
            {
                LearningItem li1 = new LearningItem { Name = "Mazzy" };
                LearningItem li2 = new LearningItem { Name = "Futurama" };

                Changes = new ObservableCollection<Entity>
                {
                    new Entity {
                        HardReference = li1,
                        Obj = new WeakReference<Base>(li1),
                        Order = 1,
                        State = Entity.EntityState.Added,
                        Type = li1.GetType()
                    },
                    new Entity {
                        HardReference = li2,
                        Obj = new WeakReference<Base>(li2),
                        Order = 2,
                        State = Entity.EntityState.Added,
                        Type = li1.GetType()
                    }
                };
            }

        }
开发者ID:vlkam,项目名称:OpenLearningPlayer,代码行数:34,代码来源:SaveChanges_ViewModel.cs

示例13: DomainViewModel

        public DomainViewModel(ISentenceService sentenceService, INavigationService navigationService)
        {
            _sentenceService = sentenceService;
            _navigationService = navigationService;

            LoadDomains();
        }
开发者ID:pwroblewski,项目名称:SentenceGame,代码行数:7,代码来源:DomainViewModel.cs

示例14: MainViewModel

		public MainViewModel(IRouteRepository routeRepository, INavigationService navigationService)
		{
			_routeRepository = routeRepository;
			_navigationService = navigationService;
			this.SearchCommand = new Command (this.SearchAsync);
			this.SearchAsync ();
		}			
开发者ID:rodrigowirth,项目名称:floripabus,代码行数:7,代码来源:MainViewModel.cs

示例15: Initialize

        public void Initialize( INavigationService navigationService )
        {
            Container.Bind<IMapService, MapService>();
            Container.Bind<IPluginSettings, PluginSettings>();

            Messenger.Register<MapSearchRequest>( navigationService.NavigateTo<MainViewModel, MapSearchRequest> );
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:7,代码来源:Plugin.cs


注:本文中的INavigationService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。