Back to Devexpress

DxDropDownButtonBase.DropDownToggleVisible Property

blazor-devexpress-dot-blazor-dot-dxdropdownbuttonbase-f5b20d64.md

latest2.6 KB
Original Source

DxDropDownButtonBase.DropDownToggleVisible Property

Specifies whether the drop-down toggle icon is visible.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public bool? DropDownToggleVisible { get; set; }

Property Value

TypeDefaultDescription
Nullable<Boolean>null

true if the toggle icon is visible; otherwise, false.

|

Remarks

Set the DropDownToggleVisible property to false to hide the drop-down toggle icon. The following components implement the DropDownToggleVisible property:

DxDropDownButtonA toggleable button that reveals a drop-down element with a list of commands or custom content.DxSplitButtonA composite control that consists of a primary button and a toggleable secondary button that reveals a drop-down element.DxDropDownButtonItemDefines a drop-down list item. Used in DxDropDownButton or DxSplitButton.

To customize toggle appearance, use the DropDownToggleCssClass property.

Example

The following code snippet hides the drop-down toggle in the DxDropDownButton component:

razor
<DxDropDownButton Text="Blazor Components"
                  RenderStyleMode="ButtonRenderStyleMode.Outline"
                  DropDownToggleVisible="false">
    <Items>
        <DxDropDownButtonItem Text="Documentation"
                              NavigateUrl="https://docs.devexpress.com/Blazor/400725/blazor-components" />
        <DxDropDownButtonItem Text="Demos"
                              NavigateUrl="https://demos.devexpress.com/blazor/" />
    </Items>
</DxDropDownButton>

See Also

DxDropDownButtonBase Class

DxDropDownButtonBase Members

DevExpress.Blazor Namespace