public BreadcrumbCommandManager(IBreadcrumbViewModel bvm, IEventAggregator events, params IExportCommandBindings[] additionalBindingExportSource) : base(additionalBindingExportSource) { _bvm = bvm; InitCommandManager(); }
protected override void setupScriptCommands(dynamic commandDictionary) { commandDictionary.ToggleBreadcrumb = new SimpleScriptCommand("ToggleBreadcrumb", pd => { IBreadcrumbViewModel bread = pd["Breadcrumb"] as IBreadcrumbViewModel; bread.EnableBreadcrumb = !bread.EnableBreadcrumb; return(ResultCommand.NoError); }); }
public BreadcrumbItemViewModel(IEventAggregator events, IBreadcrumbViewModel rootModel, IEntryModel curDirModel, IBreadcrumbItemViewModel parentModel) : base(curDirModel) { _events = events; _rootModel = rootModel; Entries = new EntriesHelper <IBreadcrumbItemViewModel>(loadEntriesTask); Selection = new TreeSelector <IBreadcrumbItemViewModel, IEntryModel>(curDirModel, this, parentModel == null ? rootModel.Selection : parentModel.Selection, Entries); }