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

OfficeNavigationBar.QueryPeekFormContent Event

Allows you to provide a content for the Peek Form.

Namespace: DevExpress.XtraBars.Navigation

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.Navigation.QueryPeekFormContentEventArgs.

#Remarks

A Peek Form is a popup that allows you to display a custom content for an OfficeNavigationBar control’s item when it is hovered over. Content for the Peek Form needs to be provided via the QueryPeekFormContent event.

OfficeNavigationBar-PeekForm

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

The size of the Peek Form can be specified with the OfficeNavigationBar.PeekFormSize property. If this property is set to (0,0), the form’s size will be automatically calculated to fit the form’s content, which is provided via the QueryPeekFormContent event.

See OfficeNavigationBar.ShowPeekFormOnItemHover to learn more.

See Also