Skip to main content

TimeEdit.QueryCloseUp Event

Occurs when the current TimeEdit attempts to close its pop-up window.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(true)]
[DXCategory("Events")]
[EditorBrowsable(EditorBrowsableState.Always)]
public override event CancelEventHandler QueryCloseUp

Event Data

The QueryCloseUp event's data class is CancelEventArgs. The following properties provide information specific to this event:

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

Remarks

If a TimeEdit‘s control RepositoryItemTimeEdit.TimeEditStyle property equals TimeEditStyle.TouchUI, clicking its action button invokes a pop-up window. End-users can slide through this pop-up to modify the TimeEdit control’s BaseEdit.EditValue.

TimeEdit - TimeEditStyle TouchUI

When a TimeEdit attempts to close its pop-up window, the QueryCloseUp event occurs. Handle it to allow or prohibit closing the pop-up. The following code demonstrates how to prevent a TimeEdit from closing its pop-up window.

private void timeEdit1_Properties_QueryCloseUp(object sender, CancelEventArgs e) {
     if (. . .) e.Cancel = true;
 }

If the QueryCloseUp event was not canceled, the TimeEdit.CloseUp and TimeEdit.Closed events occur.

See Also