Is there a way to perhaps force an update of the colors?
9 Answers, 1 is accepted
Regards.
Yes, I'm making use of implicit styles.
Hello Hans,
We had similar reports of such behavior depending on particular environment.
Below are our suggestions that should fix it on your end:
1. If you set a default value for AccentColor, do this before InitializeComponent()
Office2013Palette.Palette.AccentColor = Colors.Red;
InitializeComponent();
2. In order to avoid such problems with setting the AccentColor run-time, try to merge the Office2013ResourceDictionary with all keys for its resources before all other resource dictionaries as shown below:
<
telerik:Office2013ResourceDictionary
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"
/>
Please try these and let us know whether your issue is resolved.
Regards,
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Regards.
The first one is not applicable when customizing the colors run-time, it could be applicable if there are issues initially. However none of these are mandatory. Most of the cases such customizations apply without any problems. But as I mentioned before, on some specific environments (such as .Net 4.0 Framework on windows server 2003) the same behavior was reproduced locally and that is why I suggested the second one as possible solution.
Merging
<
telerik:Office2013ResourceDictionary
/>
Regards,
Sia
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I had exactly the same problem as Hans and so I followed all your advices and the colors are now updating dynamically when I select a color.
However, I still have two little problems in my RadRibbonView :
- The mouse focus color of each RadRibbonTab headers stays the same as the previous one ;
- The mouse focus color of each Checkboxes stays the same as the previous one.
I have really no idea what could be the solution for this because when I restart my application, all the colors are corresponding to the new one selected before.
Thank you very much in advance for your help !
Regards,
Benjamin.
The quickest resolution of your problem will be if it is possible to send us a small application reproducing your scenario. It is very important how you merge the needed dictionaries - in code or not - and their order also.
If this is not possible, please let me know:
- which is the version of telerik assemblies that you use?
- which is the theme that you apply?
Despite that I have checked our styles for the MS Checkbox and it seems that it should work as expected in all four themes with dynamic colors - Windows8, Windows8Touch, Office2013 and VisualStudio2013. Since you said that runtime it does not apply, but initially it works as expected, it seems to me that it is related to some specifics in your application. Also I am not sure which is the focus state in RadTabControl that does not change, because as checked locally such is not implemented at all. If sending a sample application is a difficult task, a screen-shot or video will help me a lot in giving you an adequate advice.
Regards,
Sia
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.