diff --git a/src/Files.App/GlobalUsings.cs b/src/Files.App/GlobalUsings.cs index 560ce999783a8..961232b5ca104 100644 --- a/src/Files.App/GlobalUsings.cs +++ b/src/Files.App/GlobalUsings.cs @@ -50,7 +50,7 @@ global using global::Files.App.Services; global using global::Files.App.UserControls; global using global::Files.App.UserControls.TabBar; -global using global::Files.App.UserControls.ViewModels.Widgets; +global using global::Files.App.UserControls.Widgets; global using global::Files.App.ViewModels; global using global::Files.App.ViewModels.UserControls; global using global::Files.App.ViewModels.UserControls.Widgets; diff --git a/src/Files.App/UserControls/Widgets/BaseWidgetViewModel.cs b/src/Files.App/ViewModels/UserControls/Widgets/BaseWidgetViewModel.cs similarity index 100% rename from src/Files.App/UserControls/Widgets/BaseWidgetViewModel.cs rename to src/Files.App/ViewModels/UserControls/Widgets/BaseWidgetViewModel.cs diff --git a/src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs b/src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs index cb1eb73189934..2947e1e74a01c 100644 --- a/src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs +++ b/src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs @@ -3,7 +3,11 @@ namespace Files.App.ViewModels.UserControls.Widgets { + /// + /// Represents view model of . + /// public class DrivesWidgetViewModel { + public ObservableCollection Items { get; } = []; } } diff --git a/src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs b/src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs index 9c719bb5073b6..54115d890003f 100644 --- a/src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs +++ b/src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs @@ -3,8 +3,11 @@ using Files.Shared.Utils; -namespace Files.App.UserControls.ViewModels.Widgets +namespace Files.App.ViewModels.UserControls.Widgets { + /// + /// Represents view model of . + /// public sealed partial class FileTagsWidgetViewModel : ObservableObject, IAsyncInitialize { // Dependency injections @@ -17,14 +20,13 @@ public sealed partial class FileTagsWidgetViewModel : ObservableObject, IAsyncIn // Properties - public ObservableCollection Containers { get; } + public ObservableCollection Containers { get; } = []; // Constructor public FileTagsWidgetViewModel(Func openAction) { _openAction = openAction; - Containers = new(); } // Methods diff --git a/src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs b/src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs index 0e9b7ec55457b..6c173d7889bfc 100644 --- a/src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs +++ b/src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs @@ -3,7 +3,11 @@ namespace Files.App.ViewModels.UserControls.Widgets { + /// + /// Represents view model of . + /// public class QuickAccessWidgetViewModel { + public ObservableCollection Items { get; } = []; } } diff --git a/src/Files.App/ViewModels/UserControls/Widgets/RecentFilesWidgetViewModel.cs b/src/Files.App/ViewModels/UserControls/Widgets/RecentFilesWidgetViewModel.cs index 4937b032bafc1..11257d0cba6db 100644 --- a/src/Files.App/ViewModels/UserControls/Widgets/RecentFilesWidgetViewModel.cs +++ b/src/Files.App/ViewModels/UserControls/Widgets/RecentFilesWidgetViewModel.cs @@ -3,7 +3,11 @@ namespace Files.App.ViewModels.UserControls.Widgets { + /// + /// Represents view model of . + /// public class RecentFilesWidgetViewModel { + public ObservableCollection Items { get; } = []; } }