Class CurrentChangingEventArgs
Arguments for the CurrentChanging event. A collection that supports ICollectionView raises this event whenever the CurrentItem is changing, or when the contents of the collection has been reset. By default, the event is cancelable when CurrentChange is caused by a move current operation and uncancelable when caused by an irreversable collection change operation.
Inheritance
Inherited Members
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public class CurrentChangingEventArgs : EventArgs
Constructors
| Improve this Doc View SourceCurrentChangingEventArgs()
Construct a cancelable CurrentChangingEventArgs that is used to notify listeners when CurrentItem is about to change.
Declaration
public CurrentChangingEventArgs()
CurrentChangingEventArgs(Boolean)
Construct a CurrentChangingEventArgs that is used to notify listeners when CurrentItem is about to change.
Declaration
public CurrentChangingEventArgs(bool isCancelable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isCancelable | if false, setting Cancel to true will cause an InvalidOperationException to be thrown. |
Properties
| Improve this Doc View SourceCancel
When set to true, this event will be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If IsCancelable is False, setting this value to True will cause an InvalidOperationException to be thrown.
IsCancelable
If this event can be canceled. When this is False, setting Cancel to True will cause an InvalidOperationException to be thrown.
Declaration
public bool IsCancelable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |