コード例 #1
0
        private void Back2DashBoard(object sender, RoutedEventArgs e)
        {
            var win = new DashBoard();

            var currentWindow = Window.GetWindow(this);


            currentWindow.Close();
            //collabsed the Window



            win.Show();
        }
コード例 #2
0
        private void Back2DashBoard(object sender, RoutedEventArgs e)
        {
            var win = new DashBoard();

            win.WindowStartupLocation = this.WindowStartupLocation;


            this.Close();
            //collabsed the Window



            win.Show();
        }