How can I hide the dropdownmenu for a Pane?

3 posts, 1 answers
  1. Sander Verschuren
    Sander Verschuren avatar
    2 posts
    Member since:
    Dec 2009

    Posted 12 Apr 2010 Link to this post

    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. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Apr 2010 Link to this post

    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.
  3. Sander Verschuren
    Sander Verschuren avatar
    2 posts
    Member since:
    Dec 2009

    Posted 15 Apr 2010 Link to this post

    Thank you, that did the trick.
Back to Top