Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > Help - my app dies on menu item click

Answered Help - my app dies on menu item click

Feed from this thread
  • felix avatar

    Posted on Dec 8, 2011 (permalink)

    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

    Reply

  • Answer Dani Dani admin's avatar

    Posted on Dec 12, 2011 (permalink)

    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 >>

    Reply

  • felix avatar

    Posted on Dec 15, 2011 (permalink)

    I see, explicit only. Thanks!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > Help - my app dies on menu item click
Related resources for "Help - my app dies on menu item click"

Silverlight Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]