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

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

1 Answer 47 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 28 Jan 2009, 09:30 PM
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}" />

 

 

 

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 29 Jan 2009, 07:42 AM
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,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Rob
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or