从我可以告诉的,CanClose或TryClose不会诀窍.
public class Shellviewmodel : Screen { public override void CanClose(Action<bool> callback) { //if(some logic...) callback(false); // will cancel close } }