Hiding the ToolWindow's close button

3 posts, 1 answers
  1. Pascal GUERY
    Pascal GUERY avatar
    40 posts
    Member since:
    Apr 2010

    Posted 16 Jan 2014 Link to this post

    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. Answer
    Masha avatar
    355 posts

    Posted 21 Jan 2014 Link to this post

    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.

    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 >>
  3. Pascal GUERY
    Pascal GUERY avatar
    40 posts
    Member since:
    Apr 2010

    Posted 21 Jan 2014 Link to this post

    Thank you a lot for your rich answer.
Back to Top