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

[Solved] Editing RadPanelGroup style

2 Answers 76 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ângelo Moreira
Top achievements
Rank 1
Ângelo Moreira asked on 12 Sep 2011, 03:13 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 13 Sep 2011, 10:04 AM
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 >>
0
Ângelo Moreira
Top achievements
Rank 1
answered on 13 Sep 2011, 10:33 AM
Thanks, it works!
Tags
Docking
Asked by
Ângelo Moreira
Top achievements
Rank 1
Answers by
Dani
Telerik team
Ângelo Moreira
Top achievements
Rank 1
Share this question
or