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

Closing a pane that has CanUserClose set to false

1 Answer 27 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 15 Feb 2010, 02:20 PM
I have set my RadePane to CanUserClose to false.
The 'x' in the top right of the pane used to close the pane is still there and when clicked I get an unhandled exception.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 17 Feb 2010, 03:57 PM
Hello Graham,

Thank you for contacting us.

I can assume that you want to remove the "x" button of the ToolWindow, because when using the CanUserClose property of the Pane, its "x" button is removed automatically.
You can achieve that by creating a custom theme for the Docking control. Attached you will find a sample running project in which a custom theme is created and the "x" button is removed. Please mind for the "NOTE:" comments which indicate the place where changes have been made.

If you have further questions please feel free to contact us again.

Regards,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Graham
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or