ListBoxItem.OnVisualParentChanged(DependencyObject) 方法

定义

在列表框项的可视父级更改时调用。Called when the visual parent of a list box item changes.

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)

参数

oldParent
DependencyObject

Parent 以前的 ListBoxItem 属性。The previous Parent property of the ListBoxItem.

适用于