Back to Devexpress

BarBaseButtonItem.Down Property

windowsforms-devexpress-dot-xtrabars-dot-barbasebuttonitem-99244941.md

latest4.3 KB
Original Source

BarBaseButtonItem.Down Property

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

Declaration

csharp
[DefaultValue(false)]
public virtual bool Down { get; set; }
vb
<DefaultValue(False)>
Public Overridable Property Down As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the button item is pressed down; otherwise, false.

|

Remarks

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

csharp
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    barButtonItem2.Down = false;
    var report = new MasterReport();

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L405

csharp
this.btnRecurrence.Down = Controller.IsRecurrentAppointment;
}

reporting-winforms-master-detail-subreport/VB/dxSampleMasterDetailSubreport/Form1.vb#L11

vb
Private Sub BarButtonItem1_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem1.ItemClick
    BarButtonItem2.Down = False
    Dim report As New MasterReport()

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L445

vb
Me.btnRecurrence.Down = Controller.IsRecurrentAppointment
End Sub

See Also

AllowAllUp

GroupIndex

BarBaseButtonItem Class

BarBaseButtonItem Members

DevExpress.XtraBars Namespace