xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.87k stars 870 forks source link

DateTimeUpDown : spinner background color is gray on Windows 8 #886

Open xceedsoftware opened 7 years ago

xceedsoftware commented 7 years ago

iliesaya[CodePlex]
Hi,

I'm using the NuGet package Extended WPF Toolkit (2.3)

Here is my DateTimeUpDown under Windows 7 :

And the same under Windows 8 :

My first attempt was to include the PresentationFramework.Aero.dll as an embedded resource and add it to the ResourceDictionary in my App.xaml

ltResourceDictionary Source=quot/PresentationFramework.Aero;component/themes/Aero.NormalColor.xamlquot/gt but the spinner still have this gray background.

Any idea ?

Thanks !

xceedsoftware commented 7 years ago

BoucherS[CodePlex]
Hi,

Something could be overriding the style. Try a new project, include Xceed.Wpf.Toolkit.dll. Add a DateTimeUpDown with the style as in the example above.

If it works, something could be overriding in ResourceDictionaryAE.xaml or MahApps.Metro.

xceedsoftware commented 7 years ago

iliesaya[CodePlex]
Thank you for your answer,

this code doesn't change anything in my project, Neither in Windows 7 nor in Windows 8 .

Is there a chance that something is overriding this style ? I don't have anything with the key 'RepeatButton' nor 'SpinnerButtonStyleKey' in my ResourceDictionaryAE.xaml , but I am using MahApps.Metro .

xceedsoftware commented 7 years ago

BoucherS[CodePlex]
Hi,

To change the Background color of the ButtonSpinners, try this : xctk:DateTimeUpDown Value=2015/2/20 xctk:DateTimeUpDown.Resources Style x:Key={ComponentResourceKey TypeInTargetAssembly={x:Type themes:ResourceKeys}, ResourceId=SpinnerButtonStyleKey} TargetType=RepeatButton Setter Property=Background Value=Red / /Style /xctk:DateTimeUpDown.Resources /xctk:DateTimeUpDown where themes points to : xmlns:themes=clr-namespace:Xceed.Wpf.Toolkit.Themes;assembly=Xceed.Wpf.Toolkit