windowsforms-devexpress-dot-xtrabars-dot-alerter-dot-alertbuttoncollection-07fbb937.md
Provides access to the settings of the Pin Button, used to pin an alert window.
Namespace : DevExpress.XtraBars.Alerter
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public AlertButton PinButton { get; }
Public ReadOnly Property PinButton As AlertButton
| Type | Description |
|---|---|
| AlertButton |
An AlertButton object that contains corresponding settings.
|
The following example shows how to pin an alert window when it’s displayed. The AlertControl.FormLoad event is handled to perform window customization. To pin the window, the AlertButton.SetDown method is called for the AlertButtonCollection.PinButton.
using DevExpress.XtraBars.Alerter;
private void alertControl1_FormLoad(object sender, AlertFormLoadEventArgs e) {
e.Buttons.PinButton.SetDown(true);
}
Imports DevExpress.XtraBars.Alerter
Private Sub AlertControl1_FormLoad(ByVal sender As System.Object, ByVal e As AlertFormLoadEventArgs) _
Handles AlertControl1.FormLoad
e.Buttons.PinButton.SetDown(True)
End Sub
See Also