Closing a screen and bypassing the CanClose

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


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.



Jul 26, 2011 at 5: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 9:30 AM

Cheers Rob.