Hi,
I am studying C#/WPF. I am trying to create child windows upon click event as follows
However I can not figure out how can I individually name the child windows in order to store them.
my thinking was to generate variable upon click event, but can not generate a variable from inside the method.
Can anybody give me any hints or direct me towards proper resources.
Any help is highly appreciated.
I am studying C#/WPF. I am trying to create child windows upon click event as follows
Child Window:
private void NewWindow(object sender, RoutedEventArgs e)
{
Window newWindow = new Window();
newWindow.Owner = this;
newWindow.Title = "Window 1";
newWindow.ShowInTaskbar = false;
newWindow.Topmost = true;
newWindow.Show();
newWindow.Width = 500;
newWindow.Height = 300;
}
However I can not figure out how can I individually name the child windows in order to store them.
my thinking was to generate variable upon click event, but can not generate a variable from inside the method.
Can anybody give me any hints or direct me towards proper resources.
Any help is highly appreciated.