コード例 #1
0
        private void projectBtnClick(object sender, RoutedEventArgs e)
        {
            ProjectsPage page     = new ProjectsPage();
            var          myWindow = Window.GetWindow(this);

            page.Show();
            myWindow.Close();
        }
コード例 #2
0
        public void BackToProjects()
        {
            ProjectsPage page     = new ProjectsPage();
            var          myWindow = Window.GetWindow(this);

            myWindow.Visibility = Visibility.Collapsed;
            page.Show();
            myWindow.Close();
        }