Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to make a button open window in wpf

private void Button_Click(object sender, RoutedEventArgs e)
{
    window2 win2 = new window2();
    win2.Show();
    this.Close();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #button #open #window #wpf
ADD COMMENT
Topic
Name
3+6 =