Пример #1
0
 public BreadcrumbCommandManager(IBreadcrumbViewModel bvm, IEventAggregator events,
                                 params IExportCommandBindings[] additionalBindingExportSource)
     : base(additionalBindingExportSource)
 {
     _bvm = bvm;
     InitCommandManager();
 }
Пример #2
0
 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);
     });
 }
Пример #3
0
        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);
        }