Edit

Share via


UIElement3D.OnVisualParentChanged(DependencyObject) Method

Definition

Invoked when the parent element of this UIElement3D reports a change to its underlying visual parent.

protected public:
 override void OnVisualParentChanged(System::Windows::DependencyObject ^ oldParent);
protected internal override void OnVisualParentChanged (System.Windows.DependencyObject oldParent);
override this.OnVisualParentChanged : System.Windows.DependencyObject -> unit
Protected Friend Overrides Sub OnVisualParentChanged (oldParent As DependencyObject)

Parameters

oldParent
DependencyObject

The previous parent. This may be provided as null if the DependencyObject did not have a parent element previously.

Notes to Inheritors

If you override this method, always call the base implementation. The default base implementation performs some internal maintenance of reverse-inherited property state. Failing to call the base implementation will invalidate this state.

This method overrides OnVisualParentChanged(DependencyObject). FrameworkElement and Window both also override the UIElement3D implementation of OnVisualParentChanged(DependencyObject), and Window seals it.

Applies to