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
Hope this is useful for you:
PresentationSource.FromVisual(window) == null;