本文整理汇总了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));
}
示例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");
}
示例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!";
}
示例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()));
}
示例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);
}
示例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);
}
示例7: PrincipalViewModel
public PrincipalViewModel(INavigator navigator,
IServicioDatos servicio, Session session) :
base(navigator, servicio, session)
{
var a = "";
CmdNuevo=new Command(NuevoBloc);
}
示例8: MainPageVM
public MainPageVM(INavigator nav)
{
Navigator = nav;
NextViewCommand = new Command(async () => await Navigator.PushAsync<SecondPageVM>());
Message = "This is the first page.";
}
示例9: GeneralViewModel
public GeneralViewModel(INavigator navigator,
IServicioMovil servicio,IPage page)
{
_navigator = navigator;
_servicio = servicio;
_page = page;
}
示例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();
}
示例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;
});
}
示例12: GeneralViewModel
public GeneralViewModel(INavigator navigator, IServicioDatos servicio, Session session, IPage page)
{
_navigator = navigator;
_servicio = servicio;
_page = page;
Session = session;
}
示例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);
}
示例14: CreateAdditionalApplicationCommand
public CreateAdditionalApplicationCommand(ConfigurationViewModel viewModel, INavigator navigator)
{
Ensure.NotNull(viewModel, "viewModel");
Ensure.NotNull(navigator, "navigator");
this.viewModel = viewModel;
this.navigator = navigator;
}
示例15: WindowManager
public WindowManager(INavigator navigator, IInternalPlayerWindowManager internalPlayerWindowManager, ILogManager logManager, ITheaterApplicationHost appHost)
{
_navigator = navigator;
_internalPlayerWindowManager = internalPlayerWindowManager;
_appHost = appHost;
_logger = logManager.GetLogger("WindowManager");
}