Back to Devexpress

OfficeNavigationBar.ShowPeekForm(NavigationBarItem) Method

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-officenavigationbar-dot-showpeekform-x28-devexpress-dot-xtrabars-dot-navigation-dot-navigationbaritem-x29.md

latest2.7 KB
Original Source

OfficeNavigationBar.ShowPeekForm(NavigationBarItem) Method

Displays the Peek Form for the specified item.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void ShowPeekForm(
    NavigationBarItem item
)
vb
Public Sub ShowPeekForm(
    item As NavigationBarItem
)

Parameters

NameTypeDescription
itemNavigationBarItem

An OfficeNavigationBar.Items collection item for which the Peek Form needs to be displayed.

|

Remarks

A Peek Form is a popup that allows you to display a custom content for an OfficeNavigationBar control item being hovered over. The form’s content needs to be provided via the OfficeNavigationBar.QueryPeekFormContent event. If no content is provided, the Peek Form is not displayed.

By default, the Peek Form is displayed after a short delay (OfficeNavigationBar.PeekFormShowDelay) on hovering items. The ShowPeekForm method allows you to manually display the Peek Form for individual items, even if they are not being hovered over at the moment.

See OfficeNavigationBar.ShowPeekFormOnItemHover to learn more.

See Also

HidePeekForm()

ShowPeekFormOnItemHover

QueryPeekFormContent

OfficeNavigationBar Class

OfficeNavigationBar Members

DevExpress.XtraBars.Navigation Namespace