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

Applying "Transparent" theme to Customization Example

6 Answers 147 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Harminder Riarh
Top achievements
Rank 1
Harminder Riarh asked on 14 Jul 2011, 05:04 PM
If I apply telerik:StyleManager.Theme="Transparent" to the Customization example(http://demos.telerik.com/silverlight/#Menu/Customization), no menus are shown. Could you please suggest how I could fix this?

6 Answers, 1 is accepted

Sort by
0
Harminder Riarh
Top achievements
Rank 1
answered on 16 Jul 2011, 01:26 AM
Can someone from Telerik reply to this?
0
Ivo
Telerik team
answered on 18 Jul 2011, 07:44 AM
Hi Harminder ,

Applying a theme to the Customization example overrides the styles already set into the resources and breaks them. If you want to make menus transparent I would suggest you editing the styles into the resources, not applying a theme. Another option is to remove setting the Style property first from the Menu definition:

<telerik:RadMenu Grid.Row="1" Style="{StaticResource MenuStyle}" ItemsSource="{StaticResource MenuItemsSource}" ItemTemplate="{StaticResource MenuItemTemplate}" ItemContainerStyleSelector="{StaticResource MenuItemStyleSelector}" />

This will allow of the Transparent theme to be applied.

Hope this helps.

Regards,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Harminder Riarh
Top achievements
Rank 1
answered on 18 Jul 2011, 02:42 PM
Hi Ivo,

If you are saying I should do following, it does not work:

<telerik:RadMenu Grid.Row="1" telerik:StyleManager.Theme="Transparent" ItemsSource="{StaticResource MenuItemsSource}" ItemTemplate="{StaticResource MenuItemTemplate}" ItemContainerStyleSelector="{StaticResource MenuItemStyleSelector}" />

It gives me teh same problem, namely no menus are shown.

I don't just want to make teh menus transparent. I want to acheive the look found in http://demos.telerik.com/silverlight/#Menu/Theming when the theme is set to transaparent. So, setting the background color of individual controls in the styles does not help.
Do you have anything else in mind? Please provide working sample code.


0
Ivo
Telerik team
answered on 21 Jul 2011, 02:55 PM
Hello Harminder Riarh,

I am sorry I mislead you with my previous answer. It will not work if you remove the Style="{StaticResource MenuStyle}". The only way to achieve the look from the transparent theme in this case is to edit all the styles and colors applied to the customization example. The easiest way to make the colors transperant is to change the first two digits of the color value to begin with 99 - #123456 to #99123456, #12345678 to #99345678 etc.

Hope this helps.

Greetings,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Harminder Riarh
Top achievements
Rank 1
answered on 21 Jul 2011, 10:50 PM
Ivo,

I don't just want to make the menus transparent. I want to acheive the look found in http://demos.telerik.com/silverlight/#Menu/Theming when the theme is set to transaparent. So, setting the background color of individual controls in the styles does not help.
Do you have anything else in mind? Please provide working sample code.
0
Pana
Telerik team
answered on 25 Jul 2011, 06:31 AM
Hello,

You can not achieve the same look and feel with the transparent theme. It is a customization example that shows how the RadMenu could be styled. You could style the menu too if you have good XAML knowledge and base the styles on the Transparent theme RadMenu styles.

Best wishes,
Pana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Menu
Asked by
Harminder Riarh
Top achievements
Rank 1
Answers by
Harminder Riarh
Top achievements
Rank 1
Ivo
Telerik team
Pana
Telerik team
Share this question
or