Back to Devexpress

DxButton.SizeMode Property

blazor-devexpress-dot-blazor-dot-dxbutton-cf5ccc37.md

latest2.2 KB
Original Source

DxButton.SizeMode Property

Specifies button size.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Nullable<SizeMode>null

A SizeMode enumeration value.

|

Available values:

NameDescription
Small

Small size.

| | Medium |

Medium size.

| | Large |

Large size.

|

Remarks

Use the SizeMode property to specify a button size. The following size modes are supported:

|

Size mode

|

Description

| | --- | --- | |

Not specified (NULL)

|

A button inherits its size from the parent component. For example, if button is located within the Data Grid’s Edit Form, display template or pager, button’s size is controlled by the InnerComponentSizeMode property.
If the parent component’s size mode is not specified or you use a stand-alone button, button’s size is specified by the SizeMode global option.

| |

Large

|

A button size is large.

| |

Medium

|

A button size is medium.

| |

Small

|

A button size is small.

|

The following code snippet applies different size modes to Button components.

razor
<DxButton Text="Small" SizeMode="SizeMode.Small" />

<DxButton Text="Medium" SizeMode="SizeMode.Medium" />

<DxButton Text="Large" SizeMode="SizeMode.Large" />

For additional information, refer to Size Modes.

Run Demo: Button

See Also

DxButton Class

DxButton Members

DevExpress.Blazor Namespace