Class
SchedulerDialogClosingEventArgs

Contains state information about the dialog that is going to be closed. This event argument class allows applications to intercept dialog closing events, access the dialog result, and optionally cancel the closing operation for validation purposes.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class SchedulerDialogClosingEventArgs : SchedulerDialogEventArgs

Inheritance: objectSchedulerDialogEventArgsSchedulerDialogClosingEventArgs

Inherited Members SchedulerDialogEventArgs.DialogType

Constructors

SchedulerDialogClosingEventArgs(SchedulerDialogType, bool?)

Initializes a new instance of the SchedulerDialogClosingEventArgs class.

Declaration

cs-api-definition
public SchedulerDialogClosingEventArgs(SchedulerDialogType dialogType, bool? dialogResult)

Parameters

dialogType

SchedulerDialogType

dialogResult

bool?

Properties

Cancel

Gets or sets a value indicating whether the dialog should be closed. When set to true, the dialog closing is cancelled and the dialog remains open. This allows applications to perform validation and prevent closing if data is invalid.

Declaration

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

Property Value

bool

DialogResult

Gets the DialogResult when closing the dialog. This property indicates how the user interacted with the dialog before it was closed. The value is null when the dialog is closed by the close button of the SchedulerDialog, false when Cancel option is pressed, and true when the dialog is accepted (OK/Save pressed).

Declaration

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

Property Value

bool?