New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public class IsCheckedChangingEventArgs : EventArgs

Inheritance: objectEventArgsIsCheckedChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the IsCheckedChangingEventArgs class.

C#
public IsCheckedChangingEventArgs(bool? oldValue, bool? newValue)
Parameters:oldValuebool?

The current checked state value before the change.

newValuebool?

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

Properties

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

C#
public bool Cancel { get; set; }
Property Value:

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

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

C#
public bool? NewValue { get; }
Property Value:

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

Gets the current checked state value before the change.

C#
public bool? OldValue { get; }
Property Value:

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