2.3 KiB
2.3 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:24:00.270672+00:00 | zai-org/GLM-5-FP8 | 1 | 95f0f52074d58138 |
Resources
Purpose
This module provides shared XAML resources and constant identifiers for UI transitions and tab control behaviors within the DTS application. It centralizes storyboard naming conventions and provides a centralized tooltip event handling mechanism that integrates with the Prism event aggregation system.
Public Interface
Athena.Resources.ResourceNames (internal static class)
const string EntryStoryboardName = "InTransition"- Constant defining the name used for entry/transition-in storyboard animations.const string ExitStoryboardName = "OutTransition"- Constant defining the name used for exit/transition-out storyboard animations.
DTS.Common.Resources.MainTabControlResource (public partial class)
void ToolTipEventHandler(object sender, System.Windows.Controls.ToolTipEventArgs e)- Handles tooltip events by marking them as handled and publishing aHelpTextEventvia theIEventAggregator. Extracts the event aggregator viaServiceLocator.Current.GetInstance<IEventAggregator>()and publishes aHelpTextEventArgcontaining the sender and event args.
Invariants
ResourceNamesconstants are compile-time constants and cannot be modified at runtime.ToolTipEventHandleralways setse.Handled = truebefore publishing the event.ToolTipEventHandlerassumesServiceLocator.Currentis properly configured andIEventAggregatoris registered.
Dependencies
Depends on:
Microsoft.Practices.ServiceLocation(ServiceLocator)Microsoft.Practices.Prism.Events(IEventAggregator, PubSubEvent)DTS.Common.Events(HelpTextEvent, HelpTextEventArg)System.Windows.Controls(ToolTipEventArgs)
Depended on by: Not determinable from source alone.
Gotchas
- The
ResourceNamesclass is in namespaceAthena.ResourceswhileMainTabControlResourceis inDTS.Common.Resources- this namespace inconsistency may cause confusion when referencing. ToolTipEventHandlerwill throw ifServiceLocator.Currentis null or ifIEventAggregatoris not registered - no null checks are performed.