本文整理汇总了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]";
}
示例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;
}
示例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();
}
示例4: MainViewModel
public MainViewModel(INavigationService navigationService, IPlatformEvents platformEvents)
{
_navigationService = navigationService;
_platformEvents = platformEvents;
_platformEvents.BackButtonPressed += BackButtonPressed;
}
示例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));
}
示例6: ProximityViewModel
public ProximityViewModel(INavigationService navigationService, IFavoriteService favoriteService)
: base(navigationService, favoriteService)
{
this.navigationService = navigationService;
this.ProximityProcess = new ProximityProcess();
this.ProximityProcess.PropertyChanged += ProximityProcess_PropertyChanged;
}
示例7: ViewModel
protected ViewModel(INavigationService navigationService)
{
PhoneApplicationService.Current.Deactivated += this.OnDeactivated;
PhoneApplicationService.Current.Activated += this.OnActivated;
this.navigationService = navigationService;
}
示例8: ServiceConfigurationBuilder
public ServiceConfigurationBuilder(INavigationService navigationService, IActionInvokerFactory invokerFactory)
{
_navigationService = navigationService;
_configuration = ServiceConfiguration.CreateSilently(
"My configuration name", "http://baseuri",
_navigationService, invokerFactory);
}
示例9: LoadingPage
public LoadingPage()
{
_navigationService = SimpleIoc.Default.GetInstance<INavigationService>();
InitializeComponent();
this.progressBar.IsIndeterminate = true;
}
示例10: MainViewModel
public MainViewModel(INavigationService navigationService)
{
if (navigationService == null) throw new ArgumentNullException(nameof(navigationService));
_navigationService = navigationService;
ShowMessageCommand = new RelayCommand(ShowMessage);
}
示例11: StarWarsMoviesViewModel
public StarWarsMoviesViewModel(IStarWarsRepository rep, INavigationService nav)
{
repo = rep;
this.nav = nav;
LoadCommands();
}
示例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()
}
};
}
}
示例13: DomainViewModel
public DomainViewModel(ISentenceService sentenceService, INavigationService navigationService)
{
_sentenceService = sentenceService;
_navigationService = navigationService;
LoadDomains();
}
示例14: MainViewModel
public MainViewModel(IRouteRepository routeRepository, INavigationService navigationService)
{
_routeRepository = routeRepository;
_navigationService = navigationService;
this.SearchCommand = new Command (this.SearchAsync);
this.SearchAsync ();
}
示例15: Initialize
public void Initialize( INavigationService navigationService )
{
Container.Bind<IMapService, MapService>();
Container.Bind<IPluginSettings, PluginSettings>();
Messenger.Register<MapSearchRequest>( navigationService.NavigateTo<MainViewModel, MapSearchRequest> );
}