Esempio n. 1
0
        public static void RegisterDragAndDrop <FI, DI, FSI>(this ExplorerViewModel <FI, DI, FSI> explorervm, DirectoryTree2 dtree)
            where FI : FSI
            where DI : FSI
        {
            FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .SetEnableDrag(dtree, true);

            FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .SetEnableDrop(dtree, true);

            RegisterConstructMethod(explorervm);
        }
Esempio n. 2
0
 public static void RegisterConstructMethod <FI, DI, FSI>(ExplorerViewModel <FI, DI, FSI> explorervm)
     where FI : FSI
     where DI : FSI
 {
     if (FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .ConstructItem == null)
     {
         FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .ConstructItem = (str) =>
                                                                             explorervm.Profile.ConstructEntryViewModel(explorervm.Profile.ConstructEntry(str));
     }
 }
Esempio n. 3
0
        public static void RegisterDragAndDrop <FI, DI, FSI>(this ExplorerViewModel <FI, DI, FSI> explorervm, FileList2 fileList)
            where FI : FSI
            where DI : FSI
        {
            FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .SetEnableDrag(fileList, true);

            FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .SetEnableDrop(fileList, true);

            RegisterConstructMethod(explorervm);
        }
Esempio n. 4
0
        public BreadcrumbViewModel(Profile <FI, DI, FSI> profile, ExplorerViewModel <FI, DI, FSI> explrVM)
            : base(profile)
        {
            _explrVM = explrVM;

            //_explrVM.DirectoryChanged += (EventHandler<DirectoryChangedEventArgs<FI, DI, FSI>>)
            //    ((o, e) =>
            //    {

            //    });

            _hierarchy = new ObservableCollection <NavigationItemViewModel <FI, DI, FSI> >();
            setupBackgroundWorker();

            //explrVM.PropertyChanged += (o, e) =>
            //    {
            //        if (e.PropertyName == "CurrentBrowserViewModel")
            //        {

            //        }
            //    };
        }
Esempio n. 5
0
 public static void RegisterDragTemplate <FI, DI, FSI>(this ExplorerViewModel <FI, DI, FSI> explorervm, System.Windows.UIElement control, System.Windows.DataTemplate itemTemplate)
     where FI : FSI
     where DI : FSI
 {
     FileDragDropHelper <EntryViewModel <FI, DI, FSI> > .SetDragItemTemplate(control, itemTemplate);
 }