TreeViewItem::OnVisualParentChanged Method (DependencyObject^)

 

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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public protected:
virtual void OnVisualParentChanged(
	DependencyObject^ oldParent
) override

Parameters

oldParent
Type: System.Windows::DependencyObject^

The previous visual parent.

This implementation updates the TreeView SelectedItem if IsSelected is true.

.NET Framework
Available since 3.0
Return to top
Show: