2.5 KiB
2.5 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:07:30.415930+00:00 | zai-org/GLM-5-FP8 | 1 | e97fdb071f87771a |
View
Purpose
This module defines base classes for views in a WPF/Prism application. BaseWindow and BaseView provide common properties (IsDirty, HeaderInfo) that delegate to their respective DataContext interfaces, enabling consistent dirty-tracking and header display across windows and user controls.
Public Interface
BaseWindow (extends Window, implements IBaseWindow)
public bool IsDirty { get; }— ReturnstrueifDataContextimplementsIBaseWindowModelandbaseWindowModel.IsDirtyistrue; otherwise returnsfalse.public string HeaderInfo { get; }— ReturnsiHeaderInfoProvider.HeaderInfoifDataContextimplementsIHeaderInfoProvider<string>; otherwise returnsstring.Empty.
BaseView (extends UserControl, implements IBaseView)
public bool IsDirty { get; }— ReturnstrueifDataContextimplementsIBaseViewModelandbaseViewModel.IsDirtyistrue; otherwise returnsfalse.public string HeaderInfo { get; }— ReturnsheaderInfoProvider.HeaderInfoifDataContextimplementsIHeaderInfoProvider<string>; otherwise returnsstring.Empty.
Invariants
- Both
IsDirtyandHeaderInfoproperties are read-only getters with no setters. - If
DataContextisnull, both properties return default values (falseforIsDirty,string.EmptyforHeaderInfo). BaseWindow.IsDirtychecks forIBaseWindowModel;BaseView.IsDirtychecks forIBaseViewModel— these are different interfaces.
Dependencies
- Depends on:
System.Windows(Window),System.Windows.Controls(UserControl),DTS.Common.Base(interfacesIBaseWindow,IBaseView,IBaseWindowModel,IBaseViewModel,IHeaderInfoProvider<string>— inferred from usage). - Depended on by: Unclear from source alone—likely used as base classes for specific views/windows throughout the application.
Gotchas
- Interface mismatch:
BaseWindow.IsDirtychecks forIBaseWindowModelwhileBaseView.IsDirtychecks forIBaseViewModel. If a DataContext implements the wrong interface for the container type,IsDirtywill incorrectly returnfalse. - Namespace directive: Source includes
// ReSharper disable once CheckNamespacesuggesting the file location may not match the declared namespaceDTS.Common.Base.