Skip to main content

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

DxButton.SizeMode Property

Specifies button size.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Default Description
Nullable<SizeMode> null

A SizeMode enumeration value.

Available values:

Name Description
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" />

Button - Size modes

For more information, refer to Size Modes.

Run Demo: Button

See Also