private void layOutPane_ChildrenCollectionChanged(object sender, EventArgs e) { if (layOutPane.Children.Count == 0) { parent.Window = null; win.Close(); } }
private void Button_Click(object sender, RoutedEventArgs e) { Window.Close(); }