windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-windowsuibuttonpanel-3f17e61b.md
Enables you to provide content for a Peek Form.
Namespace : DevExpress.XtraBars.Docking2010
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Layout")]
public event QueryPeekFormContentEventHandler QueryPeekFormContent
<DXCategory("Layout")>
Public Event QueryPeekFormContent As QueryPeekFormContentEventHandler
The QueryPeekFormContent event's data class is DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs.
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.
private void windowsUIButtonPanel1_QueryPeekFormContent(object sender, DevExpress.XtraBars.Docking2010.QueryPeekFormContentEventArgs e) {
e.Control = windowsUIButtonPanel2;
windowsUIButtonPanel2.Visible = true;
}
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