The PreviewClose as any preview event in WPF is designed to trigger before the corresponding event is triggered. In order to cancel the closing of a Pane/PaneGroup in that event all you need to do is handle it by setting the Handled
property of the StateChangeEventArgs
. The next code snippet shows how to cancel the closing in the PreviewClose event:
and the event handler:
sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
Hope this is helpful.
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 >>