Editing RadPanelGroup style

3 posts, 1 answers
  1. Ângelo Moreira
    Ângelo Moreira avatar
    11 posts
    Member since:
    Jan 2010

    Posted 12 Sep 2011 Link to this post

    Hey, i was trying to edit the style of the RadPanelGroup to remove the DropDown menu, since I don’t want to give my users such options.

    So, with Microsoft Expression Blend 4 I made a copy of the RadPanelGroup template to edit its style (RadPanelGroup -> Edit Template -> Edit a copy…)

    Then, inside this Style I navigate to the HeaderElement and created a new copy of the Style Template (HeaderElement -> Edit Template -> Edit a copy…)

    After that I started having these errors:

    The resource “ButtonIconBackground_Disabled” could not be resolved.

    The resource “ButtonIconForeground_MouseOver” could not be resolved.

    The resource “ButtonIconBackground_MouseOver” could not be resolved.

    (…)

    So, what’s the best way to resolve this error? Or the best way to remove the dropdown option of the RadPanelGroup?

  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 13 Sep 2011 Link to this post

    Hello Ângelo,

    If you need to hide the drop down menu, which is actually a context menu, you do not need to alter the control template of the RadPaneGroup. You can simply set the ContextMenuTemplate property of the RadPane to null:

    <telerikDocking:RadPane Header="Pane 1" ContextMenuTemplate="{x:Null}"/>

    I hope this helps.


    Kind regards,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Ângelo Moreira
    Ângelo Moreira avatar
    11 posts
    Member since:
    Jan 2010

    Posted 13 Sep 2011 Link to this post

    Thanks, it works!
Back to Top