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

Help - my app dies on menu item click

2 Answers 18 Views
Menu
This is a migrated thread and some comments may be shown as answers.
felix
Top achievements
Rank 1
felix asked on 08 Dec 2011, 05:50 PM
Hi there,

I've been struggling with this all day, my custom menu crashes the whole app (whitescreen) when you click on a menu item - weirdly, this seems random and takes up to 5-10 clicks, but it always dies. I think it might have something to do with the icon, as when I take them out it doesn't happen.

Any ideas gratefully received, You can download the project here, mainpage.xaml has all the problem xaml in.

Thanks in advance!

Felix

2 Answers, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 12 Dec 2011, 03:20 PM
Hi Felix,

Unfortunately implicit styles in Silverlight have some limitations. In order for your custom style to get applied correctly, please use it explicitly as a static resource. You can apply it as an ItemContainerStyle.

Please, note that  when using ItemContainerStyle willget applied only to the top-level items when used with static menu items. In that case, if you want sub items to have the same style you will need to  anually set the ItemContainerStyle property of their parents.

I hope this will help solve your issue.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
felix
Top achievements
Rank 1
answered on 15 Dec 2011, 01:44 PM
I see, explicit only. Thanks!
Tags
Menu
Asked by
felix
Top achievements
Rank 1
Answers by
Dani
Telerik team
felix
Top achievements
Rank 1
Share this question
or