This is a migrated thread and some comments may be shown as answers.

Named Brushes

2 Answers 49 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Enrico
Top achievements
Rank 1
Enrico asked on 17 Mar 2015, 09:25 AM
Hi,

I am trying to change the colors of the RadialMenu for a Windows 8.1 xaml project. Unfortunately, it is not working.

What I did:
1. added ResourceDictionary "TelerikNamedBrushes.xaml"

2. defined following brushes inside that ResourceDictionary:
     <SolidColorBrush x:Key="TelerikRadialMenuButtonBorderBrush" Color="#FF516987" />
     <SolidColorBrush x:Key="TelerikRadialMenuButtonForegroundBrush" Color="#FF516987" />
     <SolidColorBrush x:Key="TelerikRadialMenuContentMenuBorderBrush" Color="#FF516987" />
     <SolidColorBrush x:Key="TelerikRadialMenuIconForegroundBrush" Color="#FF516987" />
     <SolidColorBrush x:Key="TelerikRadialMenuNavigationButtonBackgroundBrush" Color="#FF516987" />
     <SolidColorBrush x:Key="TelerikRadialMenuNavigationMenuBorderBrush" Color="#FF516987" />

3. Referenced the ResourceDictionary inside App.xaml:
    <controls:UserThemeResources x:Key="MyResources" DarkResourcesPath="ms-appx:///Assets/Styles/TelerikNamedBrushes.xaml" />

4. Set the theme of the control to dark:
    <primitives:RadRadialMenu x:Name="MainRadialMenu" RequestedTheme="Dark">


In the debugger I can see that this control has Dark as value for the RequestedTheme, but it won't use my defined brushes from the ResourceDictionary.
What am I missing?

Cheers,
Enrico

2 Answers, 1 is accepted

Sort by
0
Enrico
Top achievements
Rank 1
answered on 17 Mar 2015, 10:31 AM
To give some additional information.
My specified colors actually do work in the VS designer during design time, but not at runtime. I have not specified these brushes at another position anywhere else in my solution. What could be the reason for this discrepancy between design and runtime?
0
Rosy Topchiyska
Telerik team
answered on 19 Mar 2015, 11:15 AM
Hello Enrico,

Thank you for contacting us.

Unfortunately, I could not reproduce the problem on my side. I have attached a sample application that I created following your steps and everything seems to work as expected. Could you please take a look and see if there are any differences in your setup?

I look forward to your reply.

Regards,
Rosy Topchiyska
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.

 
Tags
RadialMenu
Asked by
Enrico
Top achievements
Rank 1
Answers by
Enrico
Top achievements
Rank 1
Rosy Topchiyska
Telerik team
Share this question
or