DxSizableComponentBase.SizeMode Property
Specifies the size of a dialog’s inner elements. Also affects a dialog’s size and content.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public SizeMode? SizeMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Nullable<SizeMode> | null | The size mode. If the property is not specified (the value is |
Available values:
Name | Description |
---|---|
Small | Small size. |
Medium | Medium size. |
Large | Large size. |
Remarks
Use the SizeMode
property to specify the size mode for dialogs: DropDown, Flyout, Popup, and Window. The following code snippet applies the Large
mode to Popup:
<div @onclick="@(() => PopupVisible = true)">
<p>CLICK TO SHOW A POP-UP WINDOW</p>
</div>
<DxPopup @bind-Visible="@PopupVisible"
SizeMode="SizeMode.Large"
HeaderText="Header"
BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel
nisi blandit tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor,
imperdiet mauris. Fusce id purus magna.">
</DxPopup>
@code {
bool PopupVisible { get; set; } = false;
}
For more information, refer to Size Modes.
See Also