Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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.

Razor
<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