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

Hiding the ToolWindow's close button

2 Answers 118 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Pascal GUERY
Top achievements
Rank 1
Pascal GUERY asked on 16 Jan 2014, 07:49 PM
Hi everyone,

I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.

I use a RadDocking control in the main window.
PaneGroups's TabStripPlacement property is set to Dock.Top.
I have set up conditionnal docking to prevent a ToolWindow to contain more than one Pane.

2 close buttons are displayed for a floating Pane : 1 to close the ToolWindow and 1 to close the Pane which also closes the ToolWindow.
I want to hide the ToolWindow's close button circled in red on the attached picture 1.png.
I have read documentation about styling and theming the ToolWindow.
I think my goal can be achieved by creating a theme but I am not sure what I should do since I use the SummerTheme theme to set the StyleManager.ApplicationTheme property.

Can you please describe a way to achieve my goal ?
Thank you in advance for your help

2 Answers, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 21 Jan 2014, 08:50 AM
Hello Pascal,

You need to modify the control template of ToolWindowStyle in order to remove the close button.
Keep in mind that you will need to edit all resources for ToolWindow for the Summer theme as you use StyleManager theming mechanism. The summer theme resources can be found on your RadControls installation folder, find the Themes.Implicit folder inside and select the Summer folder.

The approach is demonstrated in the attached project.
I hope this information will be helpful.

Regards,
Masha
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Pascal GUERY
Top achievements
Rank 1
answered on 21 Jan 2014, 05:02 PM
Thank you a lot for your rich answer.
Tags
Docking
Asked by
Pascal GUERY
Top achievements
Rank 1
Answers by
Masha
Telerik team
Pascal GUERY
Top achievements
Rank 1
Share this question
or