Add a event IsOpenChanged to Flyout