RadMenu - What is the difference between a HeaderTemplateKey and ItemTemplateKey?

2 posts, 1 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 28 Jan 2009 Link to this post

    I am just starting out trying to style the RadMenu and I have come across 2 properties that are similiary named.  What is the difference between these two properties when applied to RadMenuItem?



    Setter Property="TopLevelHeaderTemplateKey" Value="{StaticResource TopLevelHeaderTemplate}" />




    Setter Property="TopLevelItemTemplateKey" Value="{StaticResource TopLevelItemTemplate}" />


    In my tests, it seems that  "TopLevelHeaderTemplateKey" is the one being used but the other must have a use I haven't discovered yet.
  2. Answer
    Hristo avatar
    832 posts

    Posted 29 Jan 2009 Link to this post

    Hello Rob,

    They are almost identical. The only difference is that in TopLevelHeaderTemplateKey there is a Popup control that holds the ItemsPresenter (which is responsible for populating the Items in all ItemsControl descendants).

    Sincerely yours,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top