共用方式為


VirtualizingStackPanel.OnItemsChanged(Object, ItemsChangedEventArgs) 方法

定義

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

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

參數

sender
Object

引發事件的 Object

args
ItemsChangedEventArgs

提供 ItemsChanged 事件的資料。

適用於