1.8 KiB
1.8 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:46:49.279114+00:00 | zai-org/GLM-5-FP8 | 1 | 5f572b9f7fac2a33 |
Documentation: UISettingsViewModel
1. Purpose
UISettingsViewModel is a Prism-based view model within the UISettings namespace that serves as the presentation logic handler for UI settings configuration. It implements IUISettingsViewModel and coordinates between its associated view (IUISettingsView) and the broader application infrastructure through Prism's event aggregation and region management. The class provides notification and confirmation dialog capabilities, busy state management, and exposes UI configuration flags for menu and navigation inclusion.
2. Public Interface
Constructor
public UISettingsViewModel(IUISettingsView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)
Initializes the view model, sets the view's DataContext to itself, creates interaction requests, and subscribes to RaiseNotification and BusyIndicatorChangeNotification events.
Properties
| Property | Type | Description |
|---|---|---|
View |
IUISettingsView |
The associated view instance. |
NotificationRequest |
InteractionRequest<Notification> |
Interaction request for displaying notification dialogs. |
ConfirmationRequest |
InteractionRequest<Confirmation> |
Interaction request for displaying confirmation dialogs. |
IsDirty |
bool |
Indicates whether the view model has unsaved changes. Private setter only. |
IsBusy |
bool |
Controls busy indicator state. Bound to BusyIndicatorChangeNotification events. |
IsMenuIncluded |
bool |
Flag indicating whether menu is included. |
| `IsNavigation |