Class
IsCheckedChangingEventArgs

Provides data for the IsCheckedChanging event, which occurs before the IsChecked property changes. This event allows cancellation of the state change.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class IsCheckedChangingEventArgs : EventArgs

Inheritance: objectEventArgsIsCheckedChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

IsCheckedChangingEventArgs(bool?, bool?)

Initializes a new instance of the IsCheckedChangingEventArgs class.

Declaration

cs-api-definition
public IsCheckedChangingEventArgs(bool? oldValue, bool? newValue)

Parameters

oldValue

bool?

The current checked state value before the change.

newValue

bool?

The new checked state value that will be applied if not canceled.

Properties

Cancel

Gets or sets a value indicating whether the event should be canceled.

Declaration

cs-api-definition
public bool Cancel { get; set; }

Property Value

bool

true if the event should be canceled; otherwise, false. The default is false.

NewValue

Gets the new checked state value that will be applied if the event is not canceled.

Declaration

cs-api-definition
public bool? NewValue { get; }

Property Value

bool?

A nullable bool representing the new checked state, or null if indeterminate.

OldValue

Gets the current checked state value before the change.

Declaration

cs-api-definition
public bool? OldValue { get; }

Property Value

bool?

A nullable bool representing the current checked state, or null if indeterminate.