I used PreviewClose event, but it seemd not to reach my demand.I also tried RadWindow.Confirm() method in PreviewClose event,but the RadWindow was already be hidden before i clicked OK or Cancl button .
This can be a little tricky but actually the PreviewClose is the right event. You can set Cancel=false to prevent the window from closing if the close is not initiated by a Confirm reply. Refer to the following code:
And in XAML:
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