Back to Devexpress

WindowsUIButtonPanel.QueryPeekFormContent Event

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-windowsuibuttonpanel-3f17e61b.md

latest3.0 KB
Original Source

WindowsUIButtonPanel.QueryPeekFormContent Event

Enables you to provide content for a Peek Form.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Layout")]
public event QueryPeekFormContentEventHandler QueryPeekFormContent
vb
<DXCategory("Layout")>
Public Event QueryPeekFormContent As QueryPeekFormContentEventHandler

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.

csharp
private void windowsUIButtonPanel1_QueryPeekFormContent(object sender, DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs e) {
    e.Control = windowsUIButtonPanel2;
    windowsUIButtonPanel2.Visible = true;
}
vb
Private Sub windowsUIButtonPanel1_QueryPeekFormContent(ByVal sender As Object, ByVal e As DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs)
    e.Control = windowsUIButtonPanel2
    windowsUIButtonPanel2.Visible = True
End Sub

See Also

ShowPeekForm(IBaseButton, Nullable<BeakPanelBeakLocation>)

WindowsUIButtonPanel Class

WindowsUIButtonPanel Members

DevExpress.XtraBars.Docking2010 Namespace