I have a Window class (e.g. public partial class Foo : Window), and when I create the window I sign up for the Closed event as such.
foo = new Foo();
foo.Closed += FooClosed;
public void FooClosed(object sender, System.EventArgs e)
{
}
When someone presses a button inside the foo Window I call this.Close() but my FooClosed doesn't seem to be called.
Am I incorrectly signing up for the event?
Update
By the way, all I'm trying to accomplish is know when foo has been closed so I can set the reference back to null. Is there a better way to accomplish that?
 
     
    