1using System.Collections.ObjectModel;
2using System.Windows.Input;
3using CommunityToolkit.Mvvm.ComponentModel;
4using CommunityToolkit.Mvvm.Input;
48 public ObservableCollection<IWorkspaceSettingViewModel>
Settings {
get; }
60 Settings =
new ObservableCollection<IWorkspaceSettingViewModel>(settings);
82 setting.PropertyChanged += (s, e) =>
84 switch (e.PropertyName)
A group of WorkspaceSetting<T> objects.
bool HasDefaultValue
True if all setting values in this group are the default value.
WorkspaceSettingsGroupViewModel(WorkspaceSettingsGroup settingsGroup, string groupName, IEnumerable< IWorkspaceSettingViewModel > settings)
Constructor for the WorkspaceSettingsGroupViewModel
WorkspaceSettingsGroup SettingsGroup
WorkspaceSettingsGroup that is managed by this view model
ObservableCollection< IWorkspaceSettingViewModel > Settings
List with all IWorkspaceSettingViewModel instances belonging to this group.
ICommand ResetCommand
Command to set all setting values in this group back to the snapshot value.
ICommand SetToDefaultCommand
Command to set all setting values in this group back to the default value.
string GroupName
Name of the group.
bool HasChanged
True, if any setting value in this group is not the snapshot value.
Interface for the workspace setting view model.
bool HasChanged
True, if the setting value is not the snapshot value.
bool HasDefaultValue
True if the setting value is the default value.
ICommand SetToDefaultCommand
Command to set the setting value back to the default value.
ICommand ResetCommand
Command to set the setting value back to the snapshot value.