TimeEdit.QueryPopUp Event
Occurs when the TimeEdit control attempts to open its pop-up window.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[Browsable(true)]
[DXCategory("Events")]
[EditorBrowsable(EditorBrowsableState.Always)]
public override event CancelEventHandler QueryPopUp
Event Data
The QueryPopUp 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 control’s 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.
When a TimeEdit attempts to open its pop-up window, the QueryPopUp event occurs. Handle it to allow or prohibit opening the pop-up. The following code demonstrates how to prevent a TimeEdit from displaying its pop-up window.
private void timeEdit1_Properties_QueryPopUp(object sender, CancelEventArgs e) {
if (. . .) e.Cancel = true;
}
If the QueryPopUp event was not canceled, after the pop-up window is completely opened, the TimeEdit.Popup event occurs. Use the PopupBaseEdit.IsPopupOpen property to get whether the pop-up window is currently displayed.
Attempting to close a TimeEdit control’s pop-up window triggers a similar sequence for the TimeEdit.QueryCloseUp, TimeEdit.CloseUp and TimeEdit.Closed events.