@@ -121,6 +121,14 @@ public ImageSource? FolderThumbnailImageSource
121121 private set => SetProperty(ref _FolderThumbnailImageSource, value);
122122 }
123123
124+ private BitmapImage? _SearchIconBitmapImage;
125+ public BitmapImage? SearchIconBitmapImage
126+ {
127+ get => _SearchIconBitmapImage;
128+ private set => SetProperty(ref _SearchIconBitmapImage, value);
129+ }
130+
131+
124132 public bool ShowFilterHeader =>
125133 UserSettingsService.GeneralSettingsService.ShowFilterHeader &&
126134 WorkingDirectory != "Home" &&
@@ -739,7 +747,26 @@ public void CancelExtendedPropertiesLoadingForItem(ListedItem item)
739747 itemLoadQueue.TryUpdate(item.ItemPath, true, false);
740748 }
741749
742- private bool IsSearchResults { get; set; }
750+ private bool _isSearchResults;
751+ public bool IsSearchResults
752+ {
753+ get => _isSearchResults;
754+ set
755+ {
756+ if (SetProperty(ref _isSearchResults, value))
757+ {
758+ if (!value)
759+ SearchHeaderTitle = string.Empty;
760+ }
761+ }
762+ }
763+
764+ private string? _searchHeaderTitle;
765+ public string? SearchHeaderTitle
766+ {
767+ get => _searchHeaderTitle;
768+ set => SetProperty(ref _searchHeaderTitle, value);
769+ }
743770
744771 public void UpdateEmptyTextType()
745772 {
@@ -2692,6 +2719,13 @@ public async Task SearchAsync(FolderSearch search)
26922719 await ApplyFilesAndFoldersChangesAsync();
26932720 EmptyTextType = EmptyTextType.None;
26942721
2722+ SearchHeaderTitle = !string.IsNullOrEmpty(search.Query)
2723+ ? string.Format(Strings.SearchResultsFor.GetLocalizedResource(), search.Query)
2724+ : string.Empty;
2725+
2726+ if (SearchIconBitmapImage is null)
2727+ SearchIconBitmapImage ??= await UIHelpers.GetSearchIconResource();
2728+
26952729 ItemLoadStatusChanged?.Invoke(this, new ItemLoadStatusChangedEventArgs() { Status = ItemLoadStatusChangedEventArgs.ItemLoadStatus.InProgress });
26962730
26972731 var results = new List<ListedItem>();
0 commit comments