private void Back2DashBoard(object sender, RoutedEventArgs e) { var win = new DashBoard(); var currentWindow = Window.GetWindow(this); currentWindow.Close(); //collabsed the Window win.Show(); }
private void Back2DashBoard(object sender, RoutedEventArgs e) { var win = new DashBoard(); win.WindowStartupLocation = this.WindowStartupLocation; this.Close(); //collabsed the Window win.Show(); }