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

WindowsUIButtonPanel.QueryPeekFormContent Event

Enables you to provide content for a Peek Form.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Layout")]
public event QueryPeekFormContentEventHandler QueryPeekFormContent

#Event Data

The QueryPeekFormContent event's data class is DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs.

#Remarks

The WindowsUIButtonPanel allows you to show Peek Forms for its buttons. The Peek Form can be shown manually by calling the WindowsUIButtonPanel.ShowPeekForm method or automatically if the WindowsUIButtonPanel.PeekFormOptions.ShowOnItemHover property is set to true.

To provide content for the Peek Form, assign the content to the event’s e.Control parameter. This property accepts any System.Windows.Forms.Control object. If no content is specified, the Peek Form is not displayed.

private void windowsUIButtonPanel1_QueryPeekFormContent(object sender, DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs e) {
    e.Control = windowsUIButtonPanel2;
    windowsUIButtonPanel2.Visible = true;
}

Peek Form

See Also