New to Telerik UI for WPFStart a free 30-day trial

Represents event data for CollectionChanging event.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class CollectionChangingEventArgs : EventArgs

Inheritance: objectEventArgsCollectionChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the CollectionChangingEventArgs class.

C#
public CollectionChangingEventArgs(CollectionChangeAction action, int index, object item)
Parameters:actionCollectionChangeAction

The action.

indexint

The index.

itemobject

The item.

Initializes a new instance of the CollectionChangingEventArgs class.

C#
public CollectionChangingEventArgs(CollectionChangeAction action)
Parameters:actionCollectionChangeAction

The action.

Properties

Gets or sets the collection change action.

C#
public CollectionChangeAction Action { get; set; }
Property Value:

The action.

Set this to true to cancel the changes.

C#
public bool Cancel { get; set; }

Gets or sets the index.

C#
public int Index { get; set; }
Property Value:

The index.

Gets or sets the item.

C#
public object Item { get; set; }
Property Value:

The item.