Back to Devexpress

AlertButtonCollection.PinButton Property

windowsforms-devexpress-dot-xtrabars-dot-alerter-dot-alertbuttoncollection-07fbb937.md

latest2.1 KB
Original Source

AlertButtonCollection.PinButton Property

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

Declaration

csharp
public AlertButton PinButton { get; }
vb
Public ReadOnly Property PinButton As AlertButton

Property Value

TypeDescription
AlertButton

An AlertButton object that contains corresponding settings.

|

Example

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.

csharp
using DevExpress.XtraBars.Alerter;

private void alertControl1_FormLoad(object sender, AlertFormLoadEventArgs e) {
    e.Buttons.PinButton.SetDown(true);
}
vb
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

AlertButtonCollection Class

AlertButtonCollection Members

DevExpress.XtraBars.Alerter Namespace