Answers for "wpf button to return to last window"

C#
0

wpf button to return to last window

private void btn_Cancel_Click(object sender, RoutedEventArgs e)
{
    DialogResult = false;
}
Posted by: Guest on June-24-2020
0

wpf button to return to last window

private void Window1_Click(object sender, RoutedEventArgs e)
{
    Hide();
    new Window1().ShowDialog();
    ShowDialog();
}
Posted by: Guest on June-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language