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


C# INavigator类代码示例

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


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

示例1: ComponentViewModel

 public ComponentViewModel(string componentId, INavigator navigator, string componentDescription, IEnumerable<string> serviceDescriptions)
 {
     _description = componentDescription;
     if (serviceDescriptions.Any())
         _services += "–o " + string.Join(", ", serviceDescriptions);
     GoToComponent = new RelayCommand(() => navigator.Navigate<string, ComponentDetailView>(componentId));
 }
开发者ID:mustafatig,项目名称:whitebox,代码行数:7,代码来源:ComponentViewModel.cs

示例2: NuevoGrupoViewModel

 public NuevoGrupoViewModel(INavigator navigator, IServicioDatos servicioDatos, Session session, IPage page) : base(navigator, servicioDatos, session, page)
 {
     _grupo = new GrupoModel();
     CmdAgregar = new Command(Agregar);
     CmdAgregarImagen = new Command(AgregarImagen);
     MessagingCenter.Send(this, "Hola");
 }
开发者ID:FranLsz,项目名称:GestionDeTareasXamarin,代码行数:7,代码来源:NuevoGrupoViewModel.cs

示例3: LoginViewModel

 public LoginViewModel(INavigator navigator, IServicioDatos servicio, Session session) : 
     base(navigator, servicio, session)
 {
     cmdLogin=new Command(IniciarSesion);
     cmdAlta=new Command(NuevoUsuario);
     Titulo = "Blocks Powah!";
 }
开发者ID:alejandrogf,项目名称:xamarin-BlockNotas,代码行数:7,代码来源:LoginViewModel.cs

示例4: OpenSideMenuMenuCommand

 public OpenSideMenuMenuCommand(INavigator navigator, ISessionManager sessionManager,IImageManager imageManager, IApiClient apiClient)
 {
     _sessionManager = sessionManager;
     _imageManager = imageManager;
     _apiClient = apiClient;
     ExecuteCommand = new RelayCommand(arg => navigator.Navigate(Go.To.SideMenu()));
 }
开发者ID:TomGillen,项目名称:MBT,代码行数:7,代码来源:OpenSideMenuCommand.cs

示例5: NuevaTareaViewModel

 public NuevaTareaViewModel(INavigator navigator, IServicioDatos servicioDatos, Session session, IPage page) : base(navigator, servicioDatos, session, page)
 {
     _tarea = new TareaModel();
     CmdAgregar = new Command(Agregar);
     CmdAgregarUbicacion = new Command(AgregarUbicacion);
     CmdAgregarImagen = new Command(AgregarImagen);
 }
开发者ID:FranLsz,项目名称:GestionDeTareasXamarin,代码行数:7,代码来源:NuevaTareaViewModel.cs

示例6: CommandActionsEntryPoint

 public CommandActionsEntryPoint(ICommandManager commandManager, ITheaterApplicationHost appHost, IPresenter presentationManager, IPlaybackManager playbackManager, INavigator navigationService, /*IScreensaverManager screensaverManager,*/ ILogManager logManager, IEventAggregator events)
 {
     _commandManager = commandManager;
     _defaultCommandActionMap = new DefaultCommandActionMap(appHost, presentationManager, playbackManager, navigationService, /*screensaverManager,*/ logManager, events);
 
     _logger = logManager.GetLogger(GetType().Name);
 }
开发者ID:TomGillen,项目名称:MBT,代码行数:7,代码来源:CommandActionsEntryPoint.cs

示例7: PrincipalViewModel

 public PrincipalViewModel(INavigator navigator, 
     IServicioDatos servicio, Session session) : 
     base(navigator, servicio, session)
 {
     var a = "";
    CmdNuevo=new Command(NuevoBloc);
 }
开发者ID:luisgiltajamar,项目名称:BlocNotasCursoXamarin,代码行数:7,代码来源:PrincipalViewModel.cs

示例8: MainPageVM

        public MainPageVM(INavigator nav)
        {
            Navigator = nav;

            NextViewCommand = new Command(async () => await Navigator.PushAsync<SecondPageVM>());
            Message = "This is the first page.";
        }
开发者ID:jaydeboer,项目名称:XamarinFormsAutofacMvvmStarterKit,代码行数:7,代码来源:MainPageVM.cs

示例9: GeneralViewModel

 public GeneralViewModel(INavigator navigator, 
     IServicioMovil servicio,IPage page)
 {
     _navigator = navigator;
     _servicio = servicio;
     _page = page;
 }
开发者ID:cristajamar,项目名称:RedContactos2,代码行数:7,代码来源:GeneralViewModel.cs

示例10: ListPageViewModel

 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, IUnitOfWork<Customer> unitOfWork, ErrorHandler errorHandler)
 {
     _navigator = navigator;
     _unitOfWork = unitOfWork;
     _errorHandler = errorHandler;
     Busy = new BusyWatcher();
 }
开发者ID:ValdimarThor,项目名称:Cocktail,代码行数:8,代码来源:ListPageViewModel.cs

示例11: RootContext

        public RootContext(ITheaterApplicationHost appHost, INavigator navigator, ISessionManager sessionManager, ILogManager logManager) : base(appHost)
        {
            _appHost = appHost;
            _navigator = navigator;
            _sessionManager = sessionManager;
            _logger = logManager.GetLogger("RootContext");

            // create root navigation bindings
            Binder.Bind<LoginPath, LoginContext>();
            Binder.Bind<HomePath, HomeContext>();
            Binder.Bind<SideMenuPath, SideMenuContext>();
            Binder.Bind<FullScreenPlaybackPath, FullScreenPlaybackContext>();

            Binder.Bind<ItemListPath>(async path => {
                var context = appHost.CreateInstance(typeof (ItemListContext)) as ItemListContext;
                context.Parameters = path.Parameter;

                return context;
            });

            Binder.Bind<ItemPath>(async path => {
                var context = appHost.CreateInstance(typeof (ItemDetailsContext)) as ItemDetailsContext;
                context.Item = path.Parameter;

                return context;
            });
        }
开发者ID:TomGillen,项目名称:MBT,代码行数:27,代码来源:RootContext.cs

示例12: GeneralViewModel

 public GeneralViewModel(INavigator navigator, IServicioDatos servicio, Session session, IPage page)
 {
     _navigator = navigator;
     _servicio = servicio;
     _page = page;
     Session = session;
 }
开发者ID:FranLsz,项目名称:RedContactosXamarin,代码行数:7,代码来源:GeneralViewModel.cs

示例13: LoginViewModel

 public LoginViewModel(INavigator navigator, IServicioMovil servicio, IPage page) :
                       base(navigator, servicio, page)
 {
     Usuario = new UsuarioModel();
     cmdLogin = new Command(RunLogin);
     cmdAlta = new Command(RunAlta);
 }
开发者ID:paulLozano90,项目名称:RedContactos,代码行数:7,代码来源:LoginViewModel.cs

示例14: CreateAdditionalApplicationCommand

 public CreateAdditionalApplicationCommand(ConfigurationViewModel viewModel, INavigator navigator)
 {
     Ensure.NotNull(viewModel, "viewModel");
     Ensure.NotNull(navigator, "navigator");
     this.viewModel = viewModel;
     this.navigator = navigator;
 }
开发者ID:neptuo,项目名称:Productivity.SolutionRunner,代码行数:7,代码来源:CreateAdditionalApplicationCommand.cs

示例15: WindowManager

 public WindowManager(INavigator navigator, IInternalPlayerWindowManager internalPlayerWindowManager, ILogManager logManager, ITheaterApplicationHost appHost)
 {
     _navigator = navigator;
     _internalPlayerWindowManager = internalPlayerWindowManager;
     _appHost = appHost;
     _logger = logManager.GetLogger("WindowManager");
 }
开发者ID:TomGillen,项目名称:MBT,代码行数:7,代码来源:Presenter.cs


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