ItemsControl.OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate) 方法

定义

ItemsPanel 属性更改时调用。Invoked when the ItemsPanel property changes.

protected:
 virtual void OnItemsPanelChanged(System::Windows::Controls::ItemsPanelTemplate ^ oldItemsPanel, System::Windows::Controls::ItemsPanelTemplate ^ newItemsPanel);
protected virtual void OnItemsPanelChanged (System.Windows.Controls.ItemsPanelTemplate oldItemsPanel, System.Windows.Controls.ItemsPanelTemplate newItemsPanel);
abstract member OnItemsPanelChanged : System.Windows.Controls.ItemsPanelTemplate * System.Windows.Controls.ItemsPanelTemplate -> unit
override this.OnItemsPanelChanged : System.Windows.Controls.ItemsPanelTemplate * System.Windows.Controls.ItemsPanelTemplate -> unit
Protected Overridable Sub OnItemsPanelChanged (oldItemsPanel As ItemsPanelTemplate, newItemsPanel As ItemsPanelTemplate)

参数

oldItemsPanel
ItemsPanelTemplate

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

newItemsPanel
ItemsPanelTemplate

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

适用于