diff --git a/src/Files.App/Filesystem/ListedItem.cs b/src/Files.App/Filesystem/ListedItem.cs
index 64a51ac5de6a..f2a1be329de5 100644
--- a/src/Files.App/Filesystem/ListedItem.cs
+++ b/src/Files.App/Filesystem/ListedItem.cs
@@ -132,6 +132,7 @@ public string[] FileTags
{
var dbInstance = FileTagsHelper.GetDbInstance();
dbInstance.SetTags(ItemPath, FileFRN, value);
+ HasTags = !FileTags.IsEmpty();
FileTagsHelper.WriteFileTag(ItemPath, value);
OnPropertyChanged(nameof(FileTagsUI));
}
@@ -157,6 +158,13 @@ public double Opacity
set => SetProperty(ref opacity, value);
}
+ private bool hasTags;
+ public bool HasTags
+ {
+ get => hasTags;
+ set => SetProperty(ref hasTags, value);
+ }
+
private CloudDriveSyncStatusUI syncStatusUI = new();
public CloudDriveSyncStatusUI SyncStatusUI
{
diff --git a/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml b/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
index f6eb0f7beca5..4cb3aa59ac6f 100644
--- a/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
+++ b/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
@@ -7,6 +7,7 @@
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
xmlns:converters1="using:Files.App.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:filetags="using:Files.Backend.ViewModels.FileTags"
xmlns:helpers="using:Files.App.Helpers"
xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:icore="using:Microsoft.Xaml.Interactions.Core"
@@ -17,6 +18,7 @@
xmlns:tui="using:CommunityToolkit.WinUI.UI"
xmlns:uc="using:Files.App.UserControls"
xmlns:vc="using:Files.App.ValueConverters"
+ xmlns:winui="using:ABI.Microsoft.UI.Xaml.Controls"
x:Name="PageRoot"
NavigationCacheMode="Enabled"
mc:Ignorable="d">
@@ -676,32 +678,42 @@
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Visibility="{Binding ColumnsViewModel.TagColumn.Visibility, ElementName=PageRoot, Mode=OneWay}">
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+