Can someone please tell me how I can close a window from a button within a user control?
I created the window in code and added a user control to the content which has an exit button. Within the click event I would like to issue something like myWindow.Close() but I don't see myWindow presented to me by intellisense.
Thank you.
I created the window in code and added a user control to the content which has an exit button. Within the click event I would like to issue something like myWindow.Close() but I don't see myWindow presented to me by intellisense.
Thank you.