ItemsControl.OnItemsSourceChanged(IEnumerable, IEnumerable) 方法

定义

ItemsSource 属性更改时调用。Called when the ItemsSource property changes.

protected:
 virtual void OnItemsSourceChanged(System::Collections::IEnumerable ^ oldValue, System::Collections::IEnumerable ^ newValue);
protected virtual void OnItemsSourceChanged (System.Collections.IEnumerable oldValue, System.Collections.IEnumerable newValue);
abstract member OnItemsSourceChanged : System.Collections.IEnumerable * System.Collections.IEnumerable -> unit
override this.OnItemsSourceChanged : System.Collections.IEnumerable * System.Collections.IEnumerable -> unit
Protected Overridable Sub OnItemsSourceChanged (oldValue As IEnumerable, newValue As IEnumerable)

参数

oldValue
IEnumerable

ItemsSource 属性的旧值。Old value of the ItemsSource property.

newValue
IEnumerable

ItemsSource 属性的新值。New value of the ItemsSource property.

适用于