本文整理汇总了C#中INavigationManager类的典型用法代码示例。如果您正苦于以下问题:C# INavigationManager类的具体用法?C# INavigationManager怎么用?C# INavigationManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
INavigationManager类属于命名空间,在下文中一共展示了INavigationManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AppXViewModel
public AppXViewModel(INavigationManager navigation)
{
_navigation = navigation;
Groups = new ObservableCollection<IGroup> { new AppXHeaderGroup() };
GoBack = new DelegateCommand(() => _navigation.GoBack());
Load();
}
示例2: UserNavigationManager
public UserNavigationManager(INavigationManager navigationManager, IFeatureDependencyContext featureDependencyContext)
{
_navigationManager = navigationManager;
_featureDependencyContext = featureDependencyContext;
PermissionChecker = NullPermissionChecker.Instance;
AbpSession = NullAbpSession.Instance;
}
示例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);
});
}
示例4: MenuAppService
public MenuAppService(INavigationManager navigationManager, MenuManager menuManager, IRepository<Menu> menuRepository, IUnitOfWorkManager unitOfWorkManager)
{
_menuRepository = menuRepository;
_unitOfWorkManager = unitOfWorkManager;
_menuManager = menuManager;
_navigationManager = navigationManager;
}
示例5: FolderSelectorViewModel
public FolderSelectorViewModel(INavigationManager navigationManager, IFileRepository fileRepository)
{
_navigationManager = navigationManager;
_fileRepository = fileRepository;
_goToNextStepCommand = new DelegateCommand(d => GoToNextStep(), d => CanGoToNextStep());
_cancelCommand = new DelegateCommand(d => Cancel());
}
示例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());
}
示例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
};
}
示例8: MenuFilter
public MenuFilter(INavigationManager navigationManager,
IWorkContextAccessor workContextAccessor,
IShapeFactory shapeFactory) {
_navigationManager = navigationManager;
_workContextAccessor = workContextAccessor;
_shapeFactory = shapeFactory;
}
示例9: ShareSourceManager
// *** Constructors ***
public ShareSourceManager(INavigationManager navigationManager)
{
if (navigationManager == null)
throw new ArgumentNullException(nameof(navigationManager));
_navigationManager = navigationManager;
navigationManager.NavigationStack.NavigatedTo += NavigationManager_NavigatedTo;
}
示例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);
}
示例11: AdminNavigationAdminController
public AdminNavigationAdminController(IOrchardServices services, IShapeFactory shapeFactory, INavigationManager navigationManager, IRepository<AdminMenuItemRecord> navigationRecords)
{
Services = services;
Shape = shapeFactory;
T = NullLocalizer.Instance;
_navigationManager = navigationManager;
_navigationRecords = navigationRecords;
}
示例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();
}
示例13: NavigationController
public NavigationController(IMenuService menuService,
IOrchardServices orchardServices,
INavigationManager navigationManager) {
Services = orchardServices;
_menuService = menuService;
_navigationManager = navigationManager;
T = NullLocalizer.Instance;
}
示例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)));
}
示例15: LaunchActivationHandler
// *** Constructors ***
public LaunchActivationHandler(IActivationManager activationManager, INavigationManager navigationManager)
{
this.navigationManager = navigationManager;
// Register with the activation manager
activationManager.Register(this);
}