Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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.BodyText Property

    Specifies text displayed in the Window body.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    [Parameter]
    public string BodyText { get; set; }

    #Property Value

    Type Description
    String

    The body’s text.

    #Remarks

    Use the BodyText and HeaderText properties to specify text displayed in the Window’s body and header. To display text in the Window footer, set the ShowFooter property to true and define the FooterText property. All predefined appearance settings apply to these window elements.

    Razor
    <DxButton RenderStyle="ButtonRenderStyle.Secondary" 
              Click="() => WindowVisible = !WindowVisible">SHOW A WINDOW</DxButton>
    <DxWindow @bind-Visible=WindowVisible
              HeaderText="Header"
              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="max(25vw, 250px)">
    </DxWindow>
    
    @code {
        bool WindowVisible { get; set; } = false;
    }
    

    Blazor Window

    Run Demo: Window - Overview

    You can also use the following properties to customize the body’s content and appearance:

    • BodyCssClass - Specifies the CSS class applied to the body.
    • BodyTemplate - Allows you to customize the entire body. Predefined appearance settings do not apply. This template has the highest priority over the BodyText and BodyCssClass properties.

    For more information about Window customization, refer to the following help topic: Content and Appearance.

    See Also