DxWindow.Scrollable Property
Specifies whether the vertical scrollbar appears in the Window if its content exceeds the Window’s boundaries.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool Scrollable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
The Window’s height changes to fit its content. When the height is restricted and the content exceeds the window’s boundaries, the control displays a vertical scrollbar.
You can set the Scrollable
property to false
to disable the scrollbar. Note that this property is also not in effect if you use the BodyTemplate.
<DxButton RenderStyle="ButtonRenderStyle.Secondary"
Click="() => WindowVisible = !WindowVisible">SHOW A WINDOW</DxButton>
<DxWindow @bind-Visible=WindowVisible
ShowHeader=false
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."
Width="220"
Height="150"
Scrollable="false">
</DxWindow>
@code {
bool WindowVisible { get; set; } = false;
}
See Also