Added an event for CustomDialog (IsOpenChanged)

A convenient event which is fired when `IsOpen` property changed. I also updated the test app to show the event.