using theme with custom style

5 posts, 1 answers
  1. Abdulhameed
    Abdulhameed avatar
    27 posts
    Member since:
    Jul 2010

    Posted 03 May 2011 Link to this post

    I am trying to add a tingle to each top level menu item (similar to Menu Customization in demo).
    However I would like to fill the tingle with the foreground color so it changes when I select a new theme.

    How to achieve this?
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 06 May 2011 Link to this post

    Hi Abdulhameed,

    ▲►▼◄ Game On

    Kind regards,
    Pana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Pana
    Admin
    Pana avatar
    748 posts

    Posted 06 May 2011 Link to this post

    Hi,

    If you want it to change both on states (like Highlighted) and from an outside property the best solution would be to edit the RadMenu's ControlTemplate and bind the Fill of a Path with your shape to the Foreground property. Than animate it or some other visual element over it in the VisualStateManager.

    Other solution is to find a Font that has suitable characters, embed it in you project and use the symbols from it in a TextBlock. I believe the arrows in the previous post should be available in the default Silverlight yet you may see just blank rectangles there.

    The styles for the RadMenu can be found in the installation packages. On my computer they are located here:

    C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2011 SP1\Themes\OfficeBlack\Themes\Office\Black\Menu.xaml

    You can copy the styles in your project, merge the resource dictionary in app.xaml and modify the control templates.

    Regards,
    Pana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Abdulhameed
    Abdulhameed avatar
    27 posts
    Member since:
    Jul 2010

    Posted 11 May 2011 Link to this post



    I have a control in my page that allows users to change the Theme.

    So I wont the user to select the theme and in the same time customize the menu.
  6. Answer
    Pana
    Admin
    Pana avatar
    748 posts

    Posted 11 May 2011 Link to this post

    Hello,

    Check the attached project. The arrows are part of the text and change with the Foreground.

    Best wishes,
    Pana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner