• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# INavigationManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: AppXViewModel

 public AppXViewModel(INavigationManager navigation)
 {
     _navigation = navigation;
     Groups = new ObservableCollection<IGroup> { new AppXHeaderGroup() };
     GoBack = new DelegateCommand(() => _navigation.GoBack());
     Load();
 }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:7,代码来源:AppXViewModel.cs


示例2: UserNavigationManager

 public UserNavigationManager(INavigationManager navigationManager, IFeatureDependencyContext featureDependencyContext)
 {
     _navigationManager = navigationManager;
     _featureDependencyContext = featureDependencyContext;
     PermissionChecker = NullPermissionChecker.Instance;
     AbpSession = NullAbpSession.Instance;
 }
开发者ID:pcell888,项目名称:pcell888.github.io,代码行数:7,代码来源:UserNavigationManager.cs


示例3: TreeVirtualCatalogViewModel

		public TreeVirtualCatalogViewModel(
			IViewModelsFactory<ITreeCategoryViewModel> vmFactory,
			IViewModelsFactory<IVirtualCatalogViewModel> virtualCatalogVmFactory,
			IViewModelsFactory<ICatalogDeleteViewModel> catalogDeleteVmFactory,
			CatalogBase item,
			IRepositoryFactory<ICatalogRepository> repositoryFactory,
			IAuthenticationContext authContext,
			INavigationManager navigationManager)
			: base(repositoryFactory, authContext)
		{
			InnerItem = item;
			_vmFactory = vmFactory;
			_catalogDeleteVmFactory = catalogDeleteVmFactory;
			EmbeddedHierarchyEntry = this;
			ViewTitle = new ViewTitleBase
				{
					SubTitle = "VIRTUAL CATALOG",
					Title = (item != null && !string.IsNullOrEmpty(item.Name)) ? item.Name : ""
				};

			OpenItemCommand = new DelegateCommand(() =>
			{
				if (NavigationData == null)
				{
					var editVM = virtualCatalogVmFactory.GetViewModelInstance(new KeyValuePair<string, object>("item", InnerItem)
						, new KeyValuePair<string, object>("parentTreeVM", this));
					NavigationData = ((IClosable)editVM).NavigationData;
				}
				navigationManager.Navigate(NavigationData);
			});
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:31,代码来源:TreeVirtualCatalogViewModel.cs


示例4: MenuAppService

 public MenuAppService(INavigationManager navigationManager, MenuManager menuManager, IRepository<Menu> menuRepository, IUnitOfWorkManager unitOfWorkManager)
 {
     _menuRepository = menuRepository;
     _unitOfWorkManager = unitOfWorkManager;
     _menuManager = menuManager;
     _navigationManager = navigationManager;
 }
开发者ID:JimDeng,项目名称:identity,代码行数:7,代码来源:MenuAppService.cs


示例5: FolderSelectorViewModel

 public FolderSelectorViewModel(INavigationManager navigationManager, IFileRepository fileRepository)
 {
     _navigationManager = navigationManager;
     _fileRepository = fileRepository;
     _goToNextStepCommand = new DelegateCommand(d => GoToNextStep(), d => CanGoToNextStep());
     _cancelCommand = new DelegateCommand(d => Cancel());
 }
开发者ID:reflectiondm,项目名称:FileWizard,代码行数:7,代码来源:FolderSelectorViewModel.cs


示例6: TreeCatalogViewModel

        public TreeCatalogViewModel(
            IViewModelsFactory<ICatalogViewModel> vmFactory,
            catalogModel.Catalog item,
            IRepositoryFactory<ICatalogRepository> repositoryFactory,
            IAuthenticationContext authContext,
            INavigationManager navigationManager,
            IViewModelsFactory<ICatalogDeleteViewModel> catalogDeleteVmFactory,
            IViewModelsFactory<ITreeCategoryViewModel> treeCategoryVmFactory,
            IDataManagementService exportService)
            : base(repositoryFactory, authContext)
        {
            InnerItem = item;
            EmbeddedHierarchyEntry = this;

            _catalogDeleteVmFactory = catalogDeleteVmFactory;
            _treeCategoryVmFactory = treeCategoryVmFactory;
            _exportService = exportService;

            OpenItemCommand = new DelegateCommand(() =>
            {
                if (NavigationData == null)
                {
                    var editVM = vmFactory.GetViewModelInstance(new KeyValuePair<string, object>("item", InnerItem)
                        , new KeyValuePair<string, object>("parentTreeVM", this));
                    NavigationData = ((IClosable)editVM).NavigationData;
                }
                navigationManager.Navigate(NavigationData);
            });

            ExportItemCommand = new DelegateCommand(() => RaiseExportItemCommand());
        }
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:31,代码来源:TreeCatalogViewModel.cs


示例7: CatalogPromotionViewModel

		public CatalogPromotionViewModel(
			IRepositoryFactory<IAppConfigRepository> appConfigRepositoryFactory,
			IRepositoryFactory<IMarketingRepository> repositoryFactory,
			IRepositoryFactory<ICatalogRepository> catalogRepositoryFactory,
			IRepositoryFactory<IPricelistRepository> pricelistRepositoryFactory,
			IViewModelsFactory<ISearchCategoryViewModel> searchCategoryVmFactory,
			IViewModelsFactory<ISearchItemViewModel> searchItemVmFactory,
			IRepositoryFactory<IShippingRepository> shippingRepositoryFactory,
			IMarketingEntityFactory entityFactory,
			INavigationManager navManager,
			Promotion item)
			: base(appConfigRepositoryFactory, repositoryFactory, entityFactory, navManager, item, false, searchCategoryVmFactory, searchItemVmFactory, shippingRepositoryFactory)
		{
			_catalogRepositoryFactory = catalogRepositoryFactory;
			_pricelistRepositoryFactory = pricelistRepositoryFactory;

			ViewTitle = new ViewTitleBase
				{
                    Title = "Promotion",
					SubTitle =
						(item != null && !string.IsNullOrEmpty(item.Name))
							? item.Name.ToUpper(CultureInfo.InvariantCulture)
							: string.Empty
				};
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:25,代码来源:CatalogPromotionViewModel.cs


示例8: MenuFilter

        public MenuFilter(INavigationManager navigationManager,
            IWorkContextAccessor workContextAccessor,
            IShapeFactory shapeFactory) {

            _navigationManager = navigationManager;
            _workContextAccessor = workContextAccessor;
            _shapeFactory = shapeFactory;
        }
开发者ID:seifipour,项目名称:exams4doctors,代码行数:8,代码来源:MenuFilter.cs


示例9: ShareSourceManager

        // *** Constructors ***

        public ShareSourceManager(INavigationManager navigationManager)
        {
            if (navigationManager == null)
                throw new ArgumentNullException(nameof(navigationManager));

            _navigationManager = navigationManager;
            navigationManager.NavigationStack.NavigatedTo += NavigationManager_NavigatedTo;
        }
开发者ID:deepakpal9046,项目名称:Okra.Core,代码行数:10,代码来源:ShareSourceManager.cs


示例10: DayMonthYearSelectorDemoViewModel

 public DayMonthYearSelectorDemoViewModel(INavigationManager navigationManager)
 {
     _navigationManager = navigationManager;
     MinDate = new DateTime(1988, 6, 12);
     MaxDate = new DateTime(2020, 5, 25);
     SortYearsAscending = true;
     GoBackCommand = new DelegateCommand(navigationManager.GoBack);
 }
开发者ID:aaronpowell,项目名称:Bob,代码行数:8,代码来源:DayMonthYearSelectorDemoViewModel.cs


示例11: AdminNavigationAdminController

 public AdminNavigationAdminController(IOrchardServices services, IShapeFactory shapeFactory, INavigationManager navigationManager, IRepository<AdminMenuItemRecord> navigationRecords)
 {
     Services = services;
     Shape = shapeFactory;
     T = NullLocalizer.Instance;
     _navigationManager = navigationManager;
     _navigationRecords = navigationRecords;
 }
开发者ID:Timbioz,项目名称:SciGitAzure,代码行数:8,代码来源:AdminNavigationAdminController.cs


示例12: MainViewModel

        public MainViewModel(IRootItemsContainer rootItemsContainer, IJuickClient client, INavigationManager navigationManager) {
            this.rootItemsContainer = rootItemsContainer;
            this.client = client;
            this.navigationManager = navigationManager;
            ItemPressCommand = new DelegateCommand<SampleDataGroup>(ItemPress);

            Initialize();
        }
开发者ID:k0st1x,项目名称:JuickW8,代码行数:8,代码来源:MainViewModel.cs


示例13: NavigationController

 public NavigationController(IMenuService menuService,
     IOrchardServices orchardServices,
     INavigationManager navigationManager) {
     Services = orchardServices;
     _menuService = menuService;
     _navigationManager = navigationManager;
     T = NullLocalizer.Instance;
 }
开发者ID:wezmag,项目名称:Coevery,代码行数:8,代码来源:NavigationController.cs


示例14: ChecklistViewModel

        public ChecklistViewModel(INavigationManager  navigation)
        {
            _navigation = navigation;

            GoBack = new DelegateCommand(() => _navigation.GoBack());
            GoToAppX = new DelegateCommand(() => _navigation.NavigateTo("AppX"));
            GoToRequirements = new DelegateCommand(() => Launcher.LaunchUriAsync(new Uri("http://msdn.microsoft.com/en-us/library/windows/apps/hh694083.aspx", UriKind.Absolute)));
        }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:8,代码来源:ChecklistViewModel.cs


示例15: LaunchActivationHandler

        // *** Constructors ***

        public LaunchActivationHandler(IActivationManager activationManager, INavigationManager navigationManager)
        {
            this.navigationManager = navigationManager;

            // Register with the activation manager

            activationManager.Register(this);
        }
开发者ID:Valks,项目名称:Okra,代码行数:10,代码来源:LaunchActivationHandler.cs


示例16: LoginViewModel

		public LoginViewModel(IFlowdockContext context, IAppSettings settings, INavigationManager navigationManager) {
			_context = context.ThrowIfNull("context");
			_settings = settings.ThrowIfNull("storage");
			_navigationManager = navigationManager.ThrowIfNull("navigationManager");

			_loginCommand = new LoginCommand(this, context);
			_loginCommand.LoggedIn += OnLoggedIn;
		}
开发者ID:pratik136,项目名称:Flowdock.NET,代码行数:8,代码来源:LoginViewModel.cs


示例17: AdminMenuFilter

        public AdminMenuFilter(INavigationManager navigationManager,
            ILayoutAccessor layoutAccessor,
            IShapeFactory shapeFactory)
        {

            _navigationManager = navigationManager;
            _layoutAccessor = layoutAccessor;
            _shapeFactory = shapeFactory;
        }
开发者ID:MichaelPetrinolis,项目名称:Orchard2,代码行数:9,代码来源:AdminMenuFilter.cs


示例18: DynamicNavigationManager

 public DynamicNavigationManager(
     IIocResolver iocResolver,
     INavigationManager navigationManager,
     INavigationConfiguration navigationConfiguration)
 {
     _iocResolver = iocResolver;
     _navigationManager = navigationManager;
     _navigationConfiguration = navigationConfiguration;
 }
开发者ID:a9512648,项目名称:JYcms,代码行数:9,代码来源:DynamicNavigationManager.cs


示例19: SearchManager

        // *** Constructors ***

        public SearchManager(INavigationManager navigationManager, IActivationManager activationManager)
        {
            this.navigationManager = navigationManager;

            // Register with the activation manager

            activationManager.Register(this);
            activationManager.Activated += OnActivationManagerActivated;
        }
开发者ID:Valks,项目名称:Okra,代码行数:11,代码来源:SearchManager.cs


示例20: PerspectiveController

 public PerspectiveController(IMenuService menuService,
     IContentManager contentManager,
     IOrchardServices orchardServices,
     INavigationManager navigationManager) {
     _contentManager = contentManager;
     Services = orchardServices;
     _menuService = menuService;
     _navigationManager = navigationManager;
     T = NullLocalizer.Instance;
 }
开发者ID:jgtaveras,项目名称:Coevery,代码行数:10,代码来源:PerspectiveController.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# INavigationService类代码示例发布时间:2022-05-24
下一篇:
C# INavigation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap