Show / Hide Table of Contents

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
System.Object
System.EventArgs
CurrentChangingEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public class CurrentChangingEventArgs : EventArgs

Constructors

| Improve this Doc View Source

CurrentChangingEventArgs()

Construct a cancelable CurrentChangingEventArgs that is used to notify listeners when CurrentItem is about to change.

Declaration
public CurrentChangingEventArgs()
| Improve this Doc View Source

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 Source

Cancel

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.

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source