Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool RememberLastCommand { get; set; }

#Property Value

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.

#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