Skip to main content

WindowsUIButtonPanel.QueryPeekFormContent Event

Enables you to provide content for a Peek Form.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v24.1.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.ShowPeekFormOnItemHover 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