Bewerken

Delen via


TreeViewItem.OnVisualParentChanged(DependencyObject) Method

Definition

Responds to a change in the visual parent of a TreeViewItem.

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 visual parent.

Remarks

This implementation updates the TreeView SelectedItem if IsSelected is true.

Applies to