2.6 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
2026-04-17T15:50:13.365274+00:00 | zai-org/GLM-5-FP8 | 1 | 5917449308f31e2b |
Documentation: DTS.Viewer Main View Components
1. Purpose
This module contains the main view components for the DTS Viewer application, implementing a WPF-based visualization and export system. It provides multiple view variants (standard, lite, export, and viewer modes) that serve as UI shells for chart/graph visualization and PDF export functionality. The views follow a code-behind pattern with XAML partial classes, integrating with Prism's event aggregation system for loosely-coupled communication between components.
2. Public Interface
MainView
Signature: public partial class MainView : IMainView
Constructor:
MainView()— Initializes the component viaInitializeComponent().
Behavior: Minimal code-behind for the main window view. Serves as a shell container; actual behavior is defined in XAML and associated ViewModel.
ViewerShellView
Signature: public partial class ViewerShellView : IViewerShellView
Constructor:
ViewerShellView()— Initializes the component viaInitializeComponent().
Behavior: Shell view for the viewer mode. Minimal code-behind; behavior defined in XAML.
MainViewLite
Signature: public partial class MainViewLite : IMainViewerView
Constructor:
MainViewLite()— Initializes the component viaInitializeComponent().
Behavior: Lightweight variant of the main viewer view. Inherits from UserControl.
ExportMainView
Signature: public partial class ExportMainView : IExportMainView
Constructor:
ExportMainView()— Initializes the component viaInitializeComponent().
Behavior: View for export mode. Minimal code-behind.
ViewerMainView
Signature: public partial class ViewerMainView : IViewerMainView
Constructor:
ViewerMainView()— Initializes the component viaInitializeComponent().
Behavior: Main view for viewer mode. Contains commented-out code for AvalonDock layout serialization/deserialization (referencing DockManager, XmlLayoutSerializer,