共用方式為


VirtualizingPanel.OnItemsChanged(Object, ItemsChangedEventArgs) 方法

定義

當此 Items 中與 ItemsControl 關聯的 Panel 集合變更時呼叫。

protected:
 virtual void OnItemsChanged(System::Object ^ sender, System::Windows::Controls::Primitives::ItemsChangedEventArgs ^ args);
protected virtual void OnItemsChanged (object sender, System.Windows.Controls.Primitives.ItemsChangedEventArgs args);
override this.OnItemsChanged : obj * System.Windows.Controls.Primitives.ItemsChangedEventArgs -> unit
abstract member OnItemsChanged : obj * System.Windows.Controls.Primitives.ItemsChangedEventArgs -> unit
override this.OnItemsChanged : obj * System.Windows.Controls.Primitives.ItemsChangedEventArgs -> unit
Protected Overridable Sub OnItemsChanged (sender As Object, args As ItemsChangedEventArgs)

參數

sender
Object

引發事件的 Object

args
ItemsChangedEventArgs

提供 ItemsChanged 事件的資料。

適用於