本文整理汇总了C#中INavigationService类的典型用法代码示例。如果您正苦于以下问题:C# INavigationService类的具体用法?C# INavigationService怎么用?C# INavigationService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
INavigationService类属于命名空间,在下文中一共展示了INavigationService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: MainMenuViewModel
public MainMenuViewModel()
{
Groups = new BindableCollection<MenuGroup>();
if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
{
_running = IoC.Get<RunExperimentViewModel>();
_runThresholdTest = IoC.Get<RunThresholdTestViewModel>();
_permutations = IoC.Get<PermutationViewModel>();
_nbsmConfig = IoC.Get<NBSmConfigViewModel>();
_eventAggregator = IoC.Get<IEventAggregator>();
_navService = IoC.Get<INavigationService>();
_regionService = IoC.Get<IRegionService>();
_subjectService = IoC.Get<ISubjectDataService>();
_subjectFilterService = IoC.Get<ISubjectFilterService>();
_computeService = IoC.Get<IComputeService>();
var regionsVM = IoC.Get<RegionsViewModel>();
Groups.Add(new MenuGroup { Title = "Source", Items = { regionsVM, IoC.Get<SubjectsViewModel>(), IoC.Get<GroupsViewModel>() } });
Groups.Add(new MenuGroup { Title = "Config", Items = { _permutations, _nbsmConfig } });
Groups.Add(new MenuGroup { Title = "Compute", Items = { _runThresholdTest, _running } });
Groups.Add(new MenuGroup { Title = "Global", Items = { IoC.Get<GlobalStrengthViewModel>() } });
Groups.Add(new MenuGroup { Title = "Component", Items = { IoC.Get<IntermodalViewModel>(), IoC.Get<IntraSummaryViewModel>()/*, new MenuItem { Title = "Associations" },*/ } });
Groups.Add(new MenuGroup { Title = "Nodal", Items = { IoC.Get<NodalStrengthDataTypeViewModel>() } });
Groups.Add(new MenuGroup { Title = "Edge", Items = { IoC.Get<EdgeSignificanceViewModel>() } });
}
}
开发者ID:digitalnelson,项目名称:BrainGraph,代码行数:29,代码来源:MainMenuViewModel.cs
示例17: RegisterViewModel
public RegisterViewModel(INavigationService navigationService)
{
this.User = new User();
this.navigationService = navigationService;
this.dataService = SimpleIoc.Default.GetInstance<IDataService>();
this.BackCommand = new RelayCommand<string>((s) =>
{
this.navigationService.GoBack();
});
this.RegisterCommand = new RelayCommand(async() =>
{
if (this.User.Password == this.User.RepeatedPassword)
{
await dataService.CreateUser(this.User.Username, this.User.Password, this.User.Email);
//if registration is faild
if (((App)App.Current).AuthenticatedUser != null && ((App)App.Current).AuthenticatedUser.IsAuthenticated)
{
this.navigationService.Navigate(ViewsType.Groups);
}
}
else
{
new MessageDialog("Двете пароли не съвпадат").ShowAsync();
}
});
}
开发者ID:naturalna,项目名称:TopTen,代码行数:29,代码来源:RegisterViewModel.cs
示例18: SalesModule
public SalesModule(IEventAggregator eventAggregator, INavigationService navigationService, IUnityContainer container, IRegionManager regionManager)
{
_container = container;
_regionManager = regionManager;
_navigationService = navigationService;
_eventAggregator = eventAggregator;
}
开发者ID:cstrahan,项目名称:openpos,代码行数:7,代码来源:SalesModule.cs
示例19: NavigationItemViewModel
public NavigationItemViewModel(NavigationDescriptor descriptor, string regionName)
{
_navigationDescriptor = descriptor;
RegionName = regionName;
_navigationService = ServiceLocator.Current.GetInstance<INavigationService>();
_navigationService.NavigationStart += OnNavigationStart;
}
开发者ID:Kendry06,项目名称:Gymnastika,代码行数:7,代码来源:NavigationItemViewModel.cs
示例20: GuideViewModel
/// <summary>
/// Initializes a new instance of the GuideViewModel class.
/// </summary>
public GuideViewModel(INavigationService navigationService, IConnectionManager connectionManager)
: base(navigationService, connectionManager)
{
if (IsInDesignMode)
{
SelectedChannel = new ChannelInfoDto
{
Name = "BBC One",
Number = "1"
};
Programmes = new ObservableCollection<BaseItemDto>
{
new BaseItemDto
{
StartDate = new DateTime(2014, 1, 16, 6, 0, 0),
Name = "Breakfast News",
EpisodeTitle = "16/01/2013",
Overview = "The latest news, sport, business and weather from the BBC's Breakfast Team"
},
new BaseItemDto
{
StartDate = new DateTime(2014, 1, 16, 9, 15, 0),
Name = "Wanted Down Under",
EpisodeTitle = "Series 8, Davidson Family",
Overview = "A mum and son want to move toAustralia, but can they presaude the rest of the family?"
}
};
}
}
开发者ID:gep13,项目名称:Emby.WindowsPhone,代码行数:33,代码来源:GuideViewModel.cs
注:本文中的INavigationService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论