Help - my app dies on menu item click

3 posts, 1 answers
  1. felix
    felix avatar
    16 posts
    Member since:
    Nov 2010

    Posted 08 Dec 2011 Link to this post

    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!

  2. Answer
    Dani avatar
    848 posts

    Posted 12 Dec 2011 Link to this post

    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.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
  4. felix
    felix avatar
    16 posts
    Member since:
    Nov 2010

    Posted 15 Dec 2011 Link to this post

    I see, explicit only. Thanks!
Back to Top