diff --git a/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml b/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml
index 0410455db8..09b0002309 100644
--- a/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml
+++ b/src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml
@@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:p="clr-namespace:ColorPicker.Properties"
+ xmlns:p="clr-namespace:ColorPicker.Properties" xmlns:ui="http://schemas.modernwpf.com/2019"
mc:Ignorable="d">
+ FontFamily="Segoe MDL2 Assets">
+
+
+
+
diff --git a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
index 6d93a42951..290961800f 100644
--- a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
+++ b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
@@ -8,9 +8,9 @@
xmlns:ui="http://schemas.modernwpf.com/2019"
mc:Ignorable="d"
TabIndex="3"
+ AutomationProperties.Name="{x:Static p:Resources.Color_Palette}"
FocusManager.IsFocusScope="True"
- KeyboardNavigation.TabNavigation="Once"
- >
+ KeyboardNavigation.TabNavigation="Once">
diff --git a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml.cs b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml.cs
index f12c11a776..0ebb473d60 100644
--- a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml.cs
+++ b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml.cs
@@ -6,6 +6,7 @@ using System;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Windows;
+using System.Windows.Automation.Peers;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
@@ -41,6 +42,11 @@ namespace ColorPicker.Controls
UpdateHueGradient(1, 1);
}
+ protected override AutomationPeer OnCreateAutomationPeer()
+ {
+ return new ColorPickerAutomationPeer(this);
+ }
+
public Color SelectedColor
{
get { return (Color)GetValue(SelectedColorProperty); }
@@ -372,4 +378,19 @@ namespace ColorPicker.Controls
(sender as System.Windows.Controls.TextBox).SelectAll();
}
}
+
+#pragma warning disable SA1402 // File may only contain a single type
+ public class ColorPickerAutomationPeer : UserControlAutomationPeer
+#pragma warning restore SA1402 // File may only contain a single type
+ {
+ public ColorPickerAutomationPeer(ColorPickerControl owner)
+ : base(owner)
+ {
+ }
+
+ protected override string GetLocalizedControlTypeCore()
+ {
+ return ColorPicker.Properties.Resources.Color_Picker_Control;
+ }
+ }
}
diff --git a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
index fa5992c62f..201fc332c6 100644
--- a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
+++ b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
@@ -78,6 +78,42 @@ namespace ColorPicker.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Color code.
+ ///
+ public static string Color_Code {
+ get {
+ return ResourceManager.GetString("Color_Code", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Color history.
+ ///
+ public static string Color_History {
+ get {
+ return ResourceManager.GetString("Color_History", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Color palette.
+ ///
+ public static string Color_Palette {
+ get {
+ return ResourceManager.GetString("Color_Palette", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Color picker control.
+ ///
+ public static string Color_Picker_Control {
+ get {
+ return ResourceManager.GetString("Color_Picker_Control", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Copied to clipboard.
///
@@ -105,6 +141,24 @@ namespace ColorPicker.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Color dark 1.
+ ///
+ public static string Darker_color {
+ get {
+ return ResourceManager.GetString("Darker_color", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Color dark 2.
+ ///
+ public static string Darkest_color {
+ get {
+ return ResourceManager.GetString("Darkest_color", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Green value.
///
@@ -132,6 +186,24 @@ namespace ColorPicker.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Color light 1.
+ ///
+ public static string Lighter_color {
+ get {
+ return ResourceManager.GetString("Lighter_color", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Color light 2.
+ ///
+ public static string Lightest_color {
+ get {
+ return ResourceManager.GetString("Lightest color", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Press the Color Picker icon to capture a color from your screen..
///
diff --git a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
index fb9e9aeb3e..b6bfbb34b8 100644
--- a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
+++ b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
@@ -364,4 +364,28 @@
Select color
+
+ Color code
+
+
+ Color history
+
+
+ Color palette
+
+
+ Color picker control
+
+
+ Color dark 1
+
+
+ Color dark 2
+
+
+ Color light 1
+
+
+ Color light 2
+
\ No newline at end of file
diff --git a/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml b/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml
index ccb4e07498..c9b0cd83a4 100644
--- a/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml
+++ b/src/modules/colorPicker/ColorPickerUI/Views/ColorEditorView.xaml
@@ -25,6 +25,7 @@
Padding="0"
TabIndex="2"
Width="64"
+ AutomationProperties.Name="{x:Static p:Resources.Color_History}"
HorizontalAlignment="Center"
ui:FocusVisualHelper.UseSystemFocusVisuals="True"
ItemsSource="{Binding ColorsHistory}"
@@ -96,13 +97,16 @@
+ AutomationProperties.Name="{x:Static p:Resources.Pick_color}">
+
+
+
+
@@ -115,7 +119,7 @@