Back to Devexpress

BarButtonItem.RememberLastCommand Property

windowsforms-devexpress-dot-xtrabars-dot-barbuttonitem-d2ee0b84.md

latest2.2 KB
Original Source

BarButtonItem.RememberLastCommand Property

Gets or sets whether the current Split Button should repeat the last selected command from its drop-down when clicked.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool RememberLastCommand { get; set; }
vb
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Property RememberLastCommand As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the current Split Button should repeat the last selected command from its drop-down when clicked; otherwise, false.

|

Remarks

Split Buttons are BarButtonItem objects whose BarButtonItem.ButtonStyle is set to DropDown. End-users can select an action (command) from the Split Button’s drop-down menu. If the RememberLastCommand property equals true , end-users can repeat the last Split Button command without invoking its drop-down. A Split Button also gains the same caption and image as its last command.

To add a Split Button to the current collection, use the BarItems.CreateSplitButton method.

See Also

CreateSplitButton(String, PopupMenu)

ButtonStyle

BarButtonItem Class

BarButtonItem Members

DevExpress.XtraBars Namespace