Edit

Share via


DataGridCellsPanel.OnItemsChanged(Object, ItemsChangedEventArgs) Method

Definition

Updates the visible cells when an item in the Items collection has changed.

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)

Parameters

sender
Object

The object that raised the ItemsChanged event.

args
ItemsChangedEventArgs

The data for the event.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnItemsChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnItemsChanged(Object, ItemsChangedEventArgs) in a derived class, make sure that you call the base class' OnItemsChanged(Object, ItemsChangedEventArgs) method so that registered delegates receive the event.

Applies to