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.1.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.