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

Toolwindow and header context menu

1 Answer 250 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Cyrus
Top achievements
Rank 1
Cyrus asked on 09 Oct 2015, 07:29 PM

I'm working at the begging of a largish application and we really like the RadDocking functionality to provide some MDI type functionality to our users.

One issue that I'm having is updating the context menu of the tool window, like I've done for the RadPane.  I've attached the RadPane context menu image and I would like the to make the tool window header context menu match the radpane context menu.

 Another way of stating the proboem, I'm trying to remove the AutoHide and Hide options for the ToolWindow Header Context menu.  I've tried modifying the ToolWindowStyle in my Telerik.Windows.Controls.Docking.xaml and removing the Border element that is present.  But that didn't work.  Any help or pointers would help me tremendously.

 I'm on version 2015.3.930.45 and using implicit styles.

 Thanks,

Cyrus

 

1 Answer, 1 is accepted

Sort by
0
Cyrus
Top achievements
Rank 1
answered on 13 Oct 2015, 08:38 PM

So I was able to figure out my issue.  Originally, to style the Rad Panes I was using embedded styles in the user control.  When the rad pane is pulled out into a tool window, it's styles are pulled from higher up in the visual tree

- http://www.telerik.com/forums/floating-radpane-events.

- http://www.telerik.com/forums/radpane-mvvm-floating-issue

 

When I edited the implicit themes and removed my items from the context menu, the tool window picked up those changes.

 

 

Tags
Docking
Asked by
Cyrus
Top achievements
Rank 1
Answers by
Cyrus
Top achievements
Rank 1
Share this question
or