Ejemplo n.º 1
0
        public GenericFileBrowser()
        {
            InitializeComponent();
            base.BaseLayoutContextFlyout     = this.BaseLayoutContextFlyout;
            base.BaseLayoutItemContextFlyout = this.BaseLayoutItemContextFlyout;
            switch (AppSettings.DirectorySortOption)
            {
            case SortOption.Name:
                SortedColumn = nameColumn;
                break;

            case SortOption.DateModified:
                SortedColumn = dateColumn;
                break;

            case SortOption.FileType:
                SortedColumn = typeColumn;
                break;

            case SortOption.Size:
                SortedColumn = sizeColumn;
                break;
            }

            var selectionRectangle = RectangleSelection.Create(AllView, SelectionRectangle, AllView_SelectionChanged);

            selectionRectangle.SelectionStarted += SelectionRectangle_SelectionStarted;
            selectionRectangle.SelectionEnded   += SelectionRectangle_SelectionEnded;
            AllView.PointerCaptureLost          += AllView_ItemPress;
            AppSettings.ThemeModeChanged        += AppSettings_ThemeModeChanged;
        }
Ejemplo n.º 2
0
        public ColumnViewBase() : base()
        {
            this.InitializeComponent();
            CurrentColumn = this;
            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);

            tapDebounceTimer = DispatcherQueue.GetForCurrentThread().CreateTimer();
        }
Ejemplo n.º 3
0
        public GridViewBrowser()
            : base()
        {
            InitializeComponent();
            this.DataContext = this;

            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);

            selectionRectangle.SelectionEnded += SelectionRectangle_SelectionEnded;
        }
Ejemplo n.º 4
0
        public GridViewBrowser()
        {
            InitializeComponent();
            this.DataContext = this;
            base.BaseLayoutContextFlyout = BaseLayoutContextFlyout;
            base.BaseLayoutItemContextFlyout = BaseLayoutItemContextFlyout;

            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);
            selectionRectangle.SelectionEnded += SelectionRectangle_SelectionEnded;
        }
Ejemplo n.º 5
0
        public GenericFileBrowser2()
            : base()
        {
            InitializeComponent();
            this.DataContext = this;

            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);

            selectionRectangle.SelectionEnded += SelectionRectangle_SelectionEnded;
            renameDoubleClickTimer             = DispatcherQueue.GetForCurrentThread().CreateTimer();
        }
Ejemplo n.º 6
0
        public ColumnViewBrowser() : base()
        {
            this.InitializeComponent();
            ColumnViewBrowser1                      = this;
            ColumnViewBase.ItemInvoked             += ColumnViewBase_ItemInvoked;
            ColumnViewBase.UnFocusPreviousListView += ColumnViewBase_UnFocusPreviousListView;
            ColumnViewBase.DismissColumn           += ColumnViewBase_DismissColumn;
            //this.DataContext = this;
            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);

            tapDebounceTimer = DispatcherQueue.GetForCurrentThread().CreateTimer();
        }
Ejemplo n.º 7
0
        public GridViewBrowser()
        {
            this.InitializeComponent();
            base.BaseLayoutContextFlyout     = this.BaseLayoutContextFlyout;
            base.BaseLayoutItemContextFlyout = this.BaseLayoutItemContextFlyout;

            var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);

            selectionRectangle.SelectionEnded         += SelectionRectangle_SelectionEnded;
            App.AppSettings.LayoutModeChangeRequested += AppSettings_LayoutModeChangeRequested;

            SetItemTemplate(); // Set ItemTemplate
        }
Ejemplo n.º 8
0
        public GenericFileBrowser()
            : base()
        {
            InitializeComponent();

            var selectionRectangle = RectangleSelection.Create(AllView, SelectionRectangle, AllView_SelectionChanged);

            selectionRectangle.SelectionStarted += SelectionRectangle_SelectionStarted;
            selectionRectangle.SelectionEnded   += SelectionRectangle_SelectionEnded;
            AllView.PointerCaptureLost          += AllView_ItemPress;

            tapDebounceTimer = DispatcherQueue.GetForCurrentThread().CreateTimer();
        }
Ejemplo n.º 9
0
        public GenericFileBrowser()
        {
            InitializeComponent();
            base.BaseLayoutContextFlyout     = BaseLayoutContextFlyout;
            base.BaseLayoutItemContextFlyout = BaseLayoutItemContextFlyout;

            tapDebounceTimer = new DispatcherTimer();

            var selectionRectangle = RectangleSelection.Create(AllView, SelectionRectangle, AllView_SelectionChanged);

            selectionRectangle.SelectionStarted += SelectionRectangle_SelectionStarted;
            selectionRectangle.SelectionEnded   += SelectionRectangle_SelectionEnded;
            AllView.PointerCaptureLost          += AllView_ItemPress;
        }
 public ColumnViewBase() : base()
 {
     this.InitializeComponent();
     CurrentColumn = this;
     var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);
 }
 public ColumnViewBrowser() : base()
 {
     this.InitializeComponent();
     //this.DataContext = this;
     var selectionRectangle = RectangleSelection.Create(FileList, SelectionRectangle, FileList_SelectionChanged);
 }