You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* COPYRIGHT: See COPYING in the top level directory
3
+
* PROJECT: CommonControls.Converter
4
+
* FILE: ColorToNameConverter.cs
5
+
* PURPOSE: Convert between Color and its name as string (e.g., "Red", "Blue", etc.) for WPF bindings.
6
+
* PROGRAMMER: Peter Geinitz (Wayfarer)
7
+
*/
8
+
9
+
10
+
usingSystem;
11
+
usingSystem.Globalization;
12
+
usingSystem.Windows.Data;
13
+
usingSystem.Windows.Media;
14
+
usingSystem.Linq;
15
+
16
+
namespaceCommonControls.Converters
17
+
{
18
+
/// <summary>
19
+
/// Converter that converts between a Color and its name as a string for WPF bindings. It uses reflection to find the name of the color in System.Windows.Media.Colors when converting from Color to string, and uses ColorConverter to convert from string to Color.
0 commit comments