Original Post
Hi guys!
I'm creating a template in my App.xaml.
I'd like all the windows in my application to
have the same layout, with rounded edges, the
same logo in the top left corner, and a close
button top right.
I've gotten all this in place, however...
now I need some code that tracks the button
click event back to the window where the
close button was clicked, and closes that
particular window.
I've tried tracking the parent objects of the
sender object, but they just refer to the objects
that are in the template.
Thanks guys!
Any help is apprechiated :)
I'm creating a template in my App.xaml.
I'd like all the windows in my application to
have the same layout, with rounded edges, the
same logo in the top left corner, and a close
button top right.
I've gotten all this in place, however...
now I need some code that tracks the button
click event back to the window where the
close button was clicked, and closes that
particular window.
I've tried tracking the parent objects of the
sender object, but they just refer to the objects
that are in the template.
Thanks guys!
Any help is apprechiated :)