diff --git a/source/ColorPickerDemo/ColorPickerDemo.csproj b/source/ColorPickerDemo/ColorPickerDemo.csproj index 05be32f..64b4d37 100644 --- a/source/ColorPickerDemo/ColorPickerDemo.csproj +++ b/source/ColorPickerDemo/ColorPickerDemo.csproj @@ -34,8 +34,8 @@ 4 - - ..\packages\Dirkster.NumericUpDownLib.1.0.3\lib\net4\NumericUpDownLib.dll + + ..\packages\Dirkster.NumericUpDownLib.1.1.0\lib\net4\NumericUpDownLib.dll diff --git a/source/ColorPickerDemo/packages.config b/source/ColorPickerDemo/packages.config index 9a38585..f949c25 100644 --- a/source/ColorPickerDemo/packages.config +++ b/source/ColorPickerDemo/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/source/ColorPickerLib/ColorPickerLib.csproj b/source/ColorPickerLib/ColorPickerLib.csproj index 35e7a34..29f62b2 100644 --- a/source/ColorPickerLib/ColorPickerLib.csproj +++ b/source/ColorPickerLib/ColorPickerLib.csproj @@ -33,8 +33,8 @@ 4 - - ..\packages\Dirkster.NumericUpDownLib.1.0.3\lib\net4\NumericUpDownLib.dll + + ..\packages\Dirkster.NumericUpDownLib.1.1.0\lib\net4\NumericUpDownLib.dll diff --git a/source/ColorPickerLib/Controls/ColorCanvas.xaml b/source/ColorPickerLib/Controls/ColorCanvas.xaml index c58b185..9b6fdd2 100644 --- a/source/ColorPickerLib/Controls/ColorCanvas.xaml +++ b/source/ColorPickerLib/Controls/ColorCanvas.xaml @@ -258,17 +258,22 @@ @@ -326,10 +331,11 @@ Value="{Binding R, RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" HorizontalAlignment="Stretch" MinValue="0" - MaxValue="255" /> + MaxValue="255" + IsReadOnly="False" + /> @@ -349,11 +355,14 @@ Margin="3,6,3,6" Value="{Binding G, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" /> + + MaxValue="255" + IsReadOnly="False" + /> + MaxValue="255" + IsReadOnly="False" + /> diff --git a/source/ColorPickerLib/Controls/ColorCanvasTextBoxStyle.xaml b/source/ColorPickerLib/Controls/ColorCanvasTextBoxStyle.xaml index 3f61669..20feaf3 100644 --- a/source/ColorPickerLib/Controls/ColorCanvasTextBoxStyle.xaml +++ b/source/ColorPickerLib/Controls/ColorCanvasTextBoxStyle.xaml @@ -5,19 +5,14 @@ - + + diff --git a/source/ColorPickerLib/Properties/AssemblyInfo.cs b/source/ColorPickerLib/Properties/AssemblyInfo.cs index 55464e8..6122f1f 100644 --- a/source/ColorPickerLib/Properties/AssemblyInfo.cs +++ b/source/ColorPickerLib/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyVersion("1.3.0.0")] +[assembly: AssemblyFileVersion("1.3.0.0")] diff --git a/source/ColorPickerLib/Themes/DarkBrushs.xaml b/source/ColorPickerLib/Themes/DarkBrushs.xaml index 0a56532..18efeba 100644 --- a/source/ColorPickerLib/Themes/DarkBrushs.xaml +++ b/source/ColorPickerLib/Themes/DarkBrushs.xaml @@ -1,61 +1,71 @@  + xmlns:reskeys="clr-namespace:ColorPickerLib.Themes"> - + #1ba1e2 + + + + - - - - - - - - + x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type reskeys:ResourceKeys}, ResourceId=ButtonMouseOverBackgroundKey}"/> @@ -94,7 +104,7 @@ @@ -112,13 +122,13 @@ - - - @@ -132,22 +142,23 @@ Offset="1" /> - - - - + @@ -186,4 +200,9 @@ + + diff --git a/source/ColorPickerLib/Themes/Generic/Brushes.xaml b/source/ColorPickerLib/Themes/Generic/Brushes.xaml index 4626188..06ef615 100644 --- a/source/ColorPickerLib/Themes/Generic/Brushes.xaml +++ b/source/ColorPickerLib/Themes/Generic/Brushes.xaml @@ -223,7 +223,10 @@ - + @@ -259,4 +262,9 @@ + + diff --git a/source/ColorPickerLib/Themes/Generic/Common.xaml b/source/ColorPickerLib/Themes/Generic/Common.xaml index 23a3320..cbd25bd 100644 --- a/source/ColorPickerLib/Themes/Generic/Common.xaml +++ b/source/ColorPickerLib/Themes/Generic/Common.xaml @@ -101,7 +101,10 @@ - + diff --git a/source/ColorPickerLib/Themes/LightBrushs.xaml b/source/ColorPickerLib/Themes/LightBrushs.xaml index 8dc4aff..3a168ff 100644 --- a/source/ColorPickerLib/Themes/LightBrushs.xaml +++ b/source/ColorPickerLib/Themes/LightBrushs.xaml @@ -1,20 +1,29 @@  + xmlns:reskeys="clr-namespace:ColorPickerLib.Themes"> + + + #1ba1e2 + + - - - - - @@ -34,7 +43,7 @@ - @@ -50,14 +59,14 @@ - - - @@ -67,7 +76,7 @@ Offset="1" /> @@ -79,10 +88,10 @@ @@ -93,14 +102,14 @@ @@ -113,22 +122,22 @@ - - - - - @@ -139,13 +148,13 @@ - - + @@ -184,4 +196,9 @@ + + diff --git a/source/ColorPickerLib/Themes/ResourceKeys.cs b/source/ColorPickerLib/Themes/ResourceKeys.cs index ede771e..cda5bc8 100644 --- a/source/ColorPickerLib/Themes/ResourceKeys.cs +++ b/source/ColorPickerLib/Themes/ResourceKeys.cs @@ -4,6 +4,20 @@ public static class ResourceKeys { + #region Accent Keys + /// + /// Accent Color Key - This Color key is used to accent elements in the UI + /// (e.g.: Color of Activated Normal Window Frame, ResizeGrip, Focus or MouseOver input elements) + /// + public static readonly ComponentResourceKey ControlAccentColorKey = new ComponentResourceKey(typeof(ResourceKeys), "ControlAccentColorKey"); + + /// + /// Accent Brush Key - This Brush key is used to accent elements in the UI + /// (e.g.: Color of Activated Normal Window Frame, ResizeGrip, Focus or MouseOver input elements) + /// + public static readonly ComponentResourceKey ControlAccentBrushKey = new ComponentResourceKey(typeof(ResourceKeys), "ControlAccentBrushKey"); + #endregion Accent Keys + #region Brush Keys public static readonly ComponentResourceKey ControlNormalBackgroundKey = new ComponentResourceKey(typeof(ResourceKeys), "ControlNormalBackgroundKey"); @@ -42,5 +56,15 @@ public static class ResourceKeys public static readonly ComponentResourceKey SpinButtonCornerRadiusKey = new ComponentResourceKey(typeof(ResourceKeys), "SpinButtonCornerRadiusKey"); public static readonly ComponentResourceKey SpinnerButtonStyleKey = new ComponentResourceKey(typeof(ResourceKeys), "SpinnerButtonStyleKey"); + + /// + /// Styles the border of a PopUp Control when it is open. + /// + public static readonly ComponentResourceKey PopUpOpenBorderBrushKey = new ComponentResourceKey(typeof(ResourceKeys), "PopUpOpenBorderBrushKey"); + + /// + /// Styles the border of a PopUp Control when it is open. + /// + public static readonly ComponentResourceKey VerticalSLideThumbMouseOverBrushKey = new ComponentResourceKey(typeof(ResourceKeys), "VerticalSLideThumbMouseOverBrushKey"); } } diff --git a/source/ColorPickerLib/packages.config b/source/ColorPickerLib/packages.config index 20eb4b9..8c2a064 100644 --- a/source/ColorPickerLib/packages.config +++ b/source/ColorPickerLib/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/source/MLibTest/ThemedDemo/BindToMLib/ColorPickerLib/DarkLightBrushs.xaml b/source/MLibTest/ThemedDemo/BindToMLib/ColorPickerLib/DarkLightBrushs.xaml new file mode 100644 index 0000000..7dabd73 --- /dev/null +++ b/source/MLibTest/ThemedDemo/BindToMLib/ColorPickerLib/DarkLightBrushs.xaml @@ -0,0 +1,28 @@ + + + + #FF1888b8 + + + + + + + + + \ No newline at end of file diff --git a/source/MLibTest/ThemedDemo/BindToMLib/NumericUpDownLib/DarkLightBrushs.xaml b/source/MLibTest/ThemedDemo/BindToMLib/NumericUpDownLib/DarkLightBrushs.xaml new file mode 100644 index 0000000..b083aab --- /dev/null +++ b/source/MLibTest/ThemedDemo/BindToMLib/NumericUpDownLib/DarkLightBrushs.xaml @@ -0,0 +1,26 @@ + + + + #FF1888b8 + + + + + + + + + \ No newline at end of file diff --git a/source/MLibTest/ThemedDemo/Demos/ViewModels/DemoViewModel.cs b/source/MLibTest/ThemedDemo/Demos/ViewModels/DemoViewModel.cs index 64fc1d3..b0be17c 100644 --- a/source/MLibTest/ThemedDemo/Demos/ViewModels/DemoViewModel.cs +++ b/source/MLibTest/ThemedDemo/Demos/ViewModels/DemoViewModel.cs @@ -2,6 +2,9 @@ { using System.Windows.Media; + /// + /// This viewmodel controls all aspects of the themed control demo in this test application. + /// public class DemoViewModel : ThemedDemo.ViewModels.Base.ViewModelBase { #region private fields diff --git a/source/MLibTest/ThemedDemo/ThemedDemo.csproj b/source/MLibTest/ThemedDemo/ThemedDemo.csproj index fbb33a8..da2c555 100644 --- a/source/MLibTest/ThemedDemo/ThemedDemo.csproj +++ b/source/MLibTest/ThemedDemo/ThemedDemo.csproj @@ -89,8 +89,8 @@ ..\..\packages\Dirkster.MWindowLib.1.0.4.2\lib\net452\MWindowLib.dll - - ..\..\packages\Dirkster.NumericUpDownLib.1.0.3\lib\net4\NumericUpDownLib.dll + + ..\..\packages\Dirkster.NumericUpDownLib.1.1.0\lib\net4\NumericUpDownLib.dll @@ -128,6 +128,14 @@ + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + MSBuild:Compile Designer @@ -177,6 +185,10 @@ {6fb67ef1-8867-4c75-8c5d-3952a85c27da} ColorPickerDemoLib + + {e64ce47c-10a6-490e-b1b1-84f00fd6c1d2} + ColorPickerLib + {252126d1-e1d9-49c3-910b-fcf2266265ef} ServiceLocator diff --git a/source/MLibTest/ThemedDemo/ViewModels/AppLifeCycleViewModel.cs b/source/MLibTest/ThemedDemo/ViewModels/AppLifeCycleViewModel.cs index 311c7bd..7648f7e 100644 --- a/source/MLibTest/ThemedDemo/ViewModels/AppLifeCycleViewModel.cs +++ b/source/MLibTest/ThemedDemo/ViewModels/AppLifeCycleViewModel.cs @@ -132,7 +132,10 @@ private void CreateDefaultsSettings(ISettingsManager settings ,new Uri("/NumericUpDownLib;component/Themes/DarkBrushs.xaml", UriKind.RelativeOrAbsolute) ,new Uri("/MWindowLib;component/Themes/DarkTheme.xaml", UriKind.RelativeOrAbsolute) + + ,new Uri("/ThemedDemo;component/BindToMLib/NumericUpDownLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) ,new Uri("/ThemedDemo;component/BindToMLib/MWindowLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) + ,new Uri("/ThemedDemo;component/BindToMLib/ColorPickerLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) }, settings.Themes); } @@ -149,7 +152,10 @@ private void CreateDefaultsSettings(ISettingsManager settings ,new Uri("/NumericUpDownLib;component/Themes/LightBrushs.xaml", UriKind.RelativeOrAbsolute) ,new Uri("/MWindowLib;component/Themes/LightTheme.xaml", UriKind.RelativeOrAbsolute) + + ,new Uri("/ThemedDemo;component/BindToMLib/NumericUpDownLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) ,new Uri("/ThemedDemo;component/BindToMLib/MWindowLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) + ,new Uri("/ThemedDemo;component/BindToMLib/ColorPickerLib/DarkLightBrushs.xaml", UriKind.RelativeOrAbsolute) }, settings.Themes); } diff --git a/source/MLibTest/ThemedDemo/packages.config b/source/MLibTest/ThemedDemo/packages.config index b37cd61..c78ec68 100644 --- a/source/MLibTest/ThemedDemo/packages.config +++ b/source/MLibTest/ThemedDemo/packages.config @@ -2,7 +2,7 @@ - + \ No newline at end of file