windowsforms-devexpress-dot-xtrabars-dot-barbuttonitem-d2ee0b84.md
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
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool RememberLastCommand { get; set; }
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Property RememberLastCommand As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the current Split Button should repeat the last selected command from its drop-down when clicked; otherwise, false.
|
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