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

Removing Context Menu

1 Answer 54 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 07 Dec 2012, 03:04 PM
Hi,

I define in my App.xaml this Style to remove the Context Menu from all Panes.

<Style TargetType="{x:Type telerik:RadPane}">
        <Setter Property="ContextMenuTemplate"
                Value="{x:Null}" />
    </Style>

My Panes, which are define in other csprojects and will be loaded by unity still have a context menu.

Can anybody help me with this situation.

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 12 Dec 2012, 09:35 AM
Hello Mark,

If you are loading Panes from other csproj files you will need also to set the style for the Panes in those projects App.xaml. For example if you are using panes from "Project 2" in "Project 1" you will need to add the style in the both projects App.xaml. Please note that if you are using different class name for the Panes (telerik:RadPane) you would need to different style for them also, for example :

<Style TargetType="{x:Type local:MyCustomPane}">
        <Setter Property="ContextMenuTemplate"
                Value="{x:Null}" />
 </Style>

Hope this will help.


Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Mark
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or