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

Need example of radPane show/hide by menuItem

3 Answers 80 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 30 Nov 2010, 06:03 PM
Hi I implemented the docking controls.
Now I need to implement the "View" menu that will have menuItem for each radPane and allow hide/show of the panes
Basically the View menu should allow open/hide any window/pane
(like windows in the Visual Studio)

Is there any example of an wpf menu (bind or with events) to the radPane(s)?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 02 Dec 2010, 01:29 PM
Hello Felix,

Thank you for contacting us.

How to add more buttons to the Pane's Header you could refer to this help article: http://www.telerik.com/help/wpf/raddocking-how-to-add-buttons-to-the-pane-headers.html
How to customize the already existing menu of the Pane you can find information here: http://www.telerik.com/help/wpf/raddocking-how-to-add-menu-items-to-the-radpanes-menu.html

Hope this information helps. Please let us know if you have additional questions.

Regards,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Accepted
Tom
Top achievements
Rank 1
answered on 02 Dec 2010, 01:34 PM
Hi Felix

You can do this by using a checkable Rad MenuItem, and doing a two-way binding between the MenuItem's checked state, and the IsVisible property of the pane.

Tom Davies
Peavey Digital Research
0
Felix
Top achievements
Rank 1
answered on 02 Dec 2010, 03:21 PM
It needs the "Mode=TwoWay" binding
So it can't be IsVisible
It is working with the IsHidden
But! it's the opposite value, when the pane is hidden the checked state of the menuItem is "Checked"
How to revert it?  (using Converter?)

Thanks

Tags
Docking
Asked by
Felix
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Tom
Top achievements
Rank 1
Felix
Top achievements
Rank 1
Share this question
or