windowsforms-devexpress-dot-xtrabars-dot-barbasebuttonitem-99244941.md
Gets or sets a value indicating whether the button item is pressed down.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(false)]
public virtual bool Down { get; set; }
<DefaultValue(False)>
Public Overridable Property Down As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the button item is pressed down; otherwise, false.
|
If the Down property is set to true the button item is pressed. Otherwise it’s in the normal (elevated) state.
For BarButtonItem and BarLargeButtonItem objects the Down property is in effect if their BarButtonItem.ButtonStyle property is set to BarButtonStyle.Check.
If the BarBaseButtonItem.AllowAllUp property is set to true clicking the item within the group sets the item’s Down property to true and the Down property of the rest of the group’s items to false.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Down property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
reporting-winforms-master-detail-subreport/CS/dxSampleMasterDetailSubreport/Form1.cs#L18
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
barButtonItem2.Down = false;
var report = new MasterReport();
this.btnRecurrence.Down = Controller.IsRecurrentAppointment;
}
reporting-winforms-master-detail-subreport/VB/dxSampleMasterDetailSubreport/Form1.vb#L11
Private Sub BarButtonItem1_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem1.ItemClick
BarButtonItem2.Down = False
Dim report As New MasterReport()
Me.btnRecurrence.Down = Controller.IsRecurrentAppointment
End Sub
See Also