1.0 KiB
1.0 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:13:40.918650+00:00 | zai-org/GLM-5-FP8 | 1 | 02157f0db2bb8b54 |
RegionAdapters
Purpose
This module provides a custom Prism Region Adapter for StackPanel controls, enabling the Prism region management system to dynamically add and remove UI elements within a StackPanel. It bridges the gap between Prism's region architecture and WPF's StackPanel container, allowing views to be composed dynamically at runtime.
Public Interface
-
StackPanelRegionAdapter(IRegionBehaviorFactory regionBehaviorFactory)(Constructor)- Initializes the adapter with the specified
IRegionBehaviorFactory. Required by the baseRegionAdapterBase<StackPanel>.
- Initializes the adapter with the specified
-
protected override void Adapt(IRegion region, StackPanel regionTarget)- Subscribes to the
region.Views.CollectionChangedevent and synchronizes theStackPanel.Childrencollection with the region's views. Handles `NotifyCollection
- Subscribes to the