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

using theme with custom style

4 Answers 24 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Abdulhameed
Top achievements
Rank 1
Abdulhameed asked on 03 May 2011, 06:21 AM
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?

4 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 06 May 2011, 06:57 AM
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
0
Pana
Telerik team
answered on 06 May 2011, 07:04 AM
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
0
Abdulhameed
Top achievements
Rank 1
answered on 11 May 2011, 10:35 AM


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.
0
Accepted
Pana
Telerik team
answered on 11 May 2011, 10:44 AM
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
Tags
Menu
Asked by
Abdulhameed
Top achievements
Rank 1
Answers by
Pana
Telerik team
Abdulhameed
Top achievements
Rank 1
Share this question
or