fix #110, detach window event handlers in OnVisualParentChanged()