Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TimeEdit.QueryCloseUp Event

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.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