Visual.OnVisualParentChanged Method (DependencyObject)
Called when the parent of the visual object is changed.
Assembly: PresentationCore (in PresentationCore.dll)
abstract OnVisualParentChanged : oldParent:DependencyObject -> unit override OnVisualParentChanged : oldParent:DependencyObject -> unit
A class that derives from Visual can choose to override this method.
There is no "VisualParentChanged" event provided that reports this change to instances. Therefore, you must override this method to handle notification scenarios and provide an instance version of the notification if that is part of your scenario.
Available since 3.0