From b8fcb4d10d6186497756dd69d3efb00a7adcfd83 Mon Sep 17 00:00:00 2001 From: Thorsten Jung Date: Sun, 20 Oct 2024 18:46:42 +0200 Subject: [PATCH 1/5] Update package `JetBrains.Annotations` --- src/electrifier/Views/ShellPage.xaml | 4 ++-- src/electrifier/electrifier.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/electrifier/Views/ShellPage.xaml b/src/electrifier/Views/ShellPage.xaml index e64a262b..27858a5a 100644 --- a/src/electrifier/Views/ShellPage.xaml +++ b/src/electrifier/Views/ShellPage.xaml @@ -46,7 +46,7 @@ @@ -59,7 +59,7 @@ + VerticalAlignment="Stretch" /> diff --git a/src/electrifier/electrifier.csproj b/src/electrifier/electrifier.csproj index a242476a..676322d9 100644 --- a/src/electrifier/electrifier.csproj +++ b/src/electrifier/electrifier.csproj @@ -51,7 +51,7 @@ - + From 72c67872c1150c9fb3e9181837bc73e2940fdc40 Mon Sep 17 00:00:00 2001 From: Thorsten Jung Date: Mon, 21 Oct 2024 16:11:25 +0200 Subject: [PATCH 2/5] Cleanup --- .../Controls/Vanara/ExplorerBrowser.xaml | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/electrifier/Controls/Vanara/ExplorerBrowser.xaml b/src/electrifier/Controls/Vanara/ExplorerBrowser.xaml index c5b09820..b1b6abc0 100644 --- a/src/electrifier/Controls/Vanara/ExplorerBrowser.xaml +++ b/src/electrifier/Controls/Vanara/ExplorerBrowser.xaml @@ -199,7 +199,6 @@ - @@ -233,26 +232,6 @@ - Date: Mon, 21 Oct 2024 16:43:45 +0200 Subject: [PATCH 3/5] In `FileManagerPage`, remove second `ExplorerBrowser` pane temporary --- src/electrifier/Views/FileManagerPage.xaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/electrifier/Views/FileManagerPage.xaml b/src/electrifier/Views/FileManagerPage.xaml index c332d310..cbb7005d 100644 --- a/src/electrifier/Views/FileManagerPage.xaml +++ b/src/electrifier/Views/FileManagerPage.xaml @@ -173,10 +173,6 @@ - - - - - - - From 996ff0ab0203551f0370d0d5534c75ce96217151 Mon Sep 17 00:00:00 2001 From: Thorsten Jung Date: Mon, 21 Oct 2024 19:05:58 +0200 Subject: [PATCH 4/5] Add `Tags` Menu to `FileManagerPage` --- .../Controls/Vanara/ExplorerBrowserItem.cs | 17 +-- src/electrifier/Views/FileManagerPage.xaml | 140 +++++++++++------- 2 files changed, 91 insertions(+), 66 deletions(-) diff --git a/src/electrifier/Controls/Vanara/ExplorerBrowserItem.cs b/src/electrifier/Controls/Vanara/ExplorerBrowserItem.cs index 9c3f9db9..b398152a 100644 --- a/src/electrifier/Controls/Vanara/ExplorerBrowserItem.cs +++ b/src/electrifier/Controls/Vanara/ExplorerBrowserItem.cs @@ -29,11 +29,11 @@ private bool TransparentHiddenFiles set; } } + public SoftwareBitmapSource? BitmapSource { get; set; } - /// Gets the set of Children as an . + /// Get the current set of s as . public List? Children; - - /// Gets the DisplayName. + /// Get the DisplayName. public string DisplayName { get; @@ -61,10 +61,7 @@ public bool HasUnrealizedChildren return false; } } - public bool IsExpanded - { - get; set; - } + public bool IsExpanded { get; set; } public bool IsFolder => ShellItem.IsFolder; public bool IsLink => ShellItem.IsLink; public bool IsSelected @@ -76,9 +73,6 @@ public ShellItem ShellItem get; } - public SoftwareBitmapSource? BitmapSource { get; set; } - - public ExplorerBrowserItem(ShellItem? shItem, bool isSeparator = false) { ShellItem = new ShellItem(shItem.PIDL); @@ -86,9 +80,6 @@ public ExplorerBrowserItem(ShellItem? shItem, bool isSeparator = false) IsExpanded = false; // todo: If IsSelected, add overlay of opened folder icon to TreeView optionally IsSelected = false; - - // todo: Use Debug-Levels as property - //Debug.Print($"ExplorerBrowserItem <{GetDebuggerDisplay()}> created."); } public event PropertyChangedEventHandler? PropertyChanged; diff --git a/src/electrifier/Views/FileManagerPage.xaml b/src/electrifier/Views/FileManagerPage.xaml index cbb7005d..5d15dd5d 100644 --- a/src/electrifier/Views/FileManagerPage.xaml +++ b/src/electrifier/Views/FileManagerPage.xaml @@ -28,9 +28,11 @@ + Label="Folder" + IsEnabled="False" /> + Label="Shortcut" + IsEnabled="False" /> @@ -55,18 +57,6 @@ - - - -