Back to Devexpress

DxWindow.Scrollable Property

blazor-devexpress-dot-blazor-dot-dxwindow-cfc828cf.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
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.

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

DxWindow Class

DxWindow Members

DevExpress.Blazor Namespace