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

How can I hide the dropdownmenu for a Pane?

2 Answers 97 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sander Verschuren
Top achievements
Rank 1
Sander Verschuren asked on 12 Apr 2010, 03:35 PM
I would like to know how to completely hide the dropdownmenu for a RadPane. I can only find information about the "MenuPane.MenuCommands.Clear();"-way to do it. But this way is obsolete. The other way would be to customize the PaneHeaderTemplate, but I've been strugling with this. I've found several examples on this forums that use a theme in Docking.xaml. But there is just so much code in that file, that I cannot believe this is the way to do it as well.

Could someone please help me with this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 15 Apr 2010, 02:13 PM
Hello Sander,

Thank you for contacting us.

You are right, there are two ways of hiding the Menu. The one with the Commands really is obsolete, now you have to set empty ContextMenuTemplate through XAML or code-behind:

<telerikDocking:RadPane ContextMenuTemplate="{x:Null}" x:Name="myPane" />

or

myPane.ContextMenuTemplate = null;

The other way is to use a custom theme.

If you need further assistance please feel free to contact us again.

Regards,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sander Verschuren
Top achievements
Rank 1
answered on 15 Apr 2010, 02:23 PM
Thank you, that did the trick.
Tags
Docking
Asked by
Sander Verschuren
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Sander Verschuren
Top achievements
Rank 1
Share this question
or