Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
Boolean

true if the scrollbar 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 scrollbar.

Blazor Window scrollbars

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