Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How can I close the active window?

$
0
0

How can I close the active window? I don't want to close the entire app, just the window called "ImagesGrid.xaml".

private void Closebutton(object sender,RoutedEventArgs e)
{

this.close();

}

I've tried it like this, but the method cannot be called.. I get this error

"Cannot reolsve symbol close"


Viewing all articles
Browse latest Browse all 18858

Trending Articles