I\'m working on an application that displays some child windows which can either be closed by the user or are automatically closed. While debugging some exceptions that wer
If you derive from the Window class, you can do this:
public bool IsClosed { get; private set; } protected override void OnClosed(EventArgs e) { base.OnClosed(e); IsClosed = true; }
It has an advantage over registering for the Closed event - no need to un-register the callback.