Files

34 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- Common/DTS.Common/obj/x86/Debug/Constant/XamlConstants.g.cs
- Common/DTS.Common/obj/x86/Debug/Constant/XamlConstants.g.i.cs
generated_at: "2026-04-17T16:06:29.966598+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "7a7d1b0bdbc47736"
---
# Constant
### Purpose
This module contains auto-generated WPF code-behind for `XamlConstants`, a `ResourceDictionary` implementation. It represents compiled XAML resources defined in `Constant/XamlConstants.xaml`, providing centralized access to XAML-level constants (styles, templates, brushes, etc.) across the application. This is build infrastructure output.
### Public Interface
- **`XamlConstants`** (class) - Partial class extending `System.Windows.ResourceDictionary` and implementing `System.Windows.Markup.IComponentConnector`.
- `void InitializeComponent()` - Loads the XAML resource dictionary from `/DTS.Common;component/constant/xamlconstants.xaml`. Guards against multiple initialization.
- `void IComponentConnector.Connect(int connectionId, object target)` - Explicit interface implementation. Sets `_contentLoaded = true` with no additional connection logic.
### Invariants
- Must be loaded as a `ResourceDictionary` in WPF resource merging scenarios.
- The XAML file at the specified relative URI must be embedded in the `DTS.Common` assembly.
### Dependencies
- **Depends on:** `System.Windows.ResourceDictionary`, `System.Windows.Markup.IComponentConnector`, `Microsoft.Windows.Controls`.
- **Depended on by:** Cannot be determined from generated code alone; likely merged into application or window resources for global constant access.
### Gotchas
- This is auto-generated code. Do not edit manually.
- The presence of `Microsoft.Windows.Controls` using directive suggests the XAML may reference controls from that namespace, but actual resource contents are not visible in generated code.
- Both `.g.cs` and `.g.i.cs` files are identical, indicating intermediate build artifacts.
---