diff --git a/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml.cs b/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml.cs index 5a64b54c77..4da43589b2 100644 --- a/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml.cs +++ b/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml.cs @@ -4,6 +4,7 @@ using System; using System.Windows; +using System.Windows.Automation.Peers; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; @@ -90,6 +91,20 @@ namespace ColorPicker.Controls resize.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseInOut }; ColorCopiedNotificationBorder.BeginAnimation(Border.OpacityProperty, opacityAppear); ColorCopiedNotificationBorder.BeginAnimation(Border.HeightProperty, resize); + + var clipboardNotification = ((Decorator)ColorCopiedNotificationBorder).Child; + if (clipboardNotification == null) + { + return; + } + + var peer = UIElementAutomationPeer.FromElement(clipboardNotification); + if (peer == null) + { + peer = UIElementAutomationPeer.CreatePeerForElement(clipboardNotification); + } + + peer.RaiseAutomationEvent(AutomationEvents.MenuOpened); } private void HideCopiedIndicator() diff --git a/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml b/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml index f269327d6b..ccb4e07498 100644 --- a/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml +++ b/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml @@ -173,7 +173,9 @@ + VerticalAlignment="Center" + AutomationProperties.LiveSetting="Assertive" + AutomationProperties.Name="{x:Static p:Resources.Copied_to_clipboard}">