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.