I suggest calling Show()
to the confirm window if the criteria for pass is false:
// do something
var confirmWindow = sender
confirmWindow.Closed -= OnConfirmClosed;
confirmWindow.Closed += OnConfirmClosed;
I've prepared a sample project demonstrating this approach. Please find it attached.
Hopefully this helps and is suitable for your scenario.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.