ItemsControl.OnItemsSourceChanged(IEnumerable, IEnumerable) 方法

定义

ItemsSource 属性更改时调用。

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 属性的旧值。

newValue
IEnumerable

ItemsSource 属性的新值。

适用于