You could use the PreviewClose
events of the Docking
control. We decided to put the events to the Docking control as it is easer to handle events at the element which is not moved/changed during the application lifetime.
We decided to not remove the panes by default, because it is easier to remove them if you need to instead of inserting them back if you want to leave them in the Docking
control. We are planning to add property to the RadDocking control for this.
Here is an example how to achieve this:
DependencyProperty RemovePanesWhenClosedProperty =
OnRemovePanesWhenClosedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
var newValue = (
var dock = d
dock.PreviewClose += dock_PreviewClose;
dock.PreviewClose -= dock_PreviewClose;
sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
Having this attached property you just need to set it to the Docking control:
Hope this helps.
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