Bar

BarSplitButtonItem.ActAsDropDown Property

Gets or sets whether the Down Arrow button is visually merged with the main button and the associated dropdown BarSplitButtonItem.PopupControl is invoked on clicking this merged button. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public bool ActAsDropDown { get; set; }
Public Property ActAsDropDown As Boolean

Property Value

Type Description
Boolean

true, if the Down Arrow button is visually merged with the main button and the associated dropdown BarSplitButtonItem.PopupControl is invoked on clicking this merged button; otherwise, false. The default is false.

Remarks

If the ActAsDropDown option is set to false, the Down Arrow button is visually separated from the main button. The dropdown control (BarSplitButtonItem.PopupControl) is opened on clicking this Down Arrow button. A click on the main button fires the ItemClick event (BarItem.ItemClick and BarManager.ItemClick) and raises the BarItem.Command.

BarSplitButton-ActAsDropdown-False.png

If the ActAsDropDown option is set to true, the Down Arrow button is visually merged with the main button and they act as one. A click on the merged button opens the associated dropdown control, fires the ItemClick events and raises the associated command.

BarSplitButton-ActAsDropdown-True.png

See Also