private void AppExit_Click(object sender, RoutedEventArgs e) { NavigationWindow.GetWindow(this).Close(); }