Skip to main content
A newer version of this page is available. .

DxWindow.Scrollable Property

Specifies whether the vertical scroll bar appears in the Window if its content exceeds the Window’s boundaries.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public bool Scrollable { get; set; }

Property Value

Type Description
Boolean

true if the scroll bar can appear; otherwise, false.

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 scroll bar.

Blazor Window Scroll Bars

You can set the Scrollable property to false to disable the scroll bar. 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