blazor-devexpress-dot-blazor-dot-dxbuttongroup-e4f9b7a3.md
Specifies the size of the Button Group component and its items.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(null)]
[Parameter]
public SizeMode? SizeMode { get; set; }
| Type | Default | Description |
|---|---|---|
| Nullable<SizeMode> | null |
The size mode. If the property is not specified (the value is null), the size is determined by the SizeMode global option.
|
Available values:
| Name | Description |
|---|---|
| Small |
Small size.
| | Medium |
Medium size.
| | Large |
Large size.
|
The SizeMode property allows you to apply different size modes to the <DxButtonGroup> component and its items.
<DxButtonGroup SizeMode="SizeMode.Small"
RenderStyle="ButtonRenderStyle.Secondary">
<Items>
<DxButtonGroupItem Text="Admin" />
<DxButtonGroupItem Text="Editor" />
<DxButtonGroupItem Text="Guest" />
</Items>
</DxButtonGroup>
<DxButtonGroup SizeMode="SizeMode.Medium"
RenderStyle="ButtonRenderStyle.Secondary">
<Items>
<DxButtonGroupItem Text="Admin" />
<DxButtonGroupItem Text="Editor" />
<DxButtonGroupItem Text="Guest" />
</Items>
</DxButtonGroup>
<DxButtonGroup SizeMode="SizeMode.Large"
RenderStyle="ButtonRenderStyle.Secondary">
<Items>
<DxButtonGroupItem Text="Admin" />
<DxButtonGroupItem Text="Editor" />
<DxButtonGroupItem Text="Guest" />
</Items>
</DxButtonGroup>
See Also