Named Brushes

Thread is closed for posting
3 posts, 0 answers
  1. Enrico
    Enrico avatar
    14 posts
    Member since:
    Mar 2011

    Posted 17 Mar 2015 Link to this post


    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?

  2. Enrico
    Enrico avatar
    14 posts
    Member since:
    Mar 2011

    Posted 17 Mar 2015 Link to this post

    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?
  3. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 19 Mar 2015 Link to this post

    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.

    Rosy Topchiyska

    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.

Back to Top