Closing a screen and bypassing the CanClose

Topics: Framework Services
Jul 26, 2011 at 1:03 PM

Hi,

I have a situation where i need to force a window /screen conductor to close without hitting the method;

void CanClose(Action<bool> callback)

 

use I can figure out a way round it but was wondering if Caliburn had a way that I've missed.

Regards

David

Coordinator
Jul 26, 2011 at 4:36 PM

You just need to call Deactivate(true) on the Screen. You will need to cast it as IDeactivate in order to do this.

Jul 27, 2011 at 8:30 AM

Cheers Rob.