OfficeNavigationBar.QueryPeekFormContent Event
Allows you to provide a content for the Peek Form.
Namespace: DevExpress.XtraBars.Navigation
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.
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.