Skip to main content
All docs
V24.2

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.FooterContentTemplate Property

Specifies a template for content of the window’s footer.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RenderFragment<IPopupElementInfo> FooterContentTemplate { get; set; }

#Property Value

Type Description
RenderFragment<IPopupElementInfo>

The footer content.

#Remarks

Use the FooterTextTemplate property to display any UI render fragment (for instance, formatted text) in the window body’s content area. This template does not affect the default content area rendering (that is, paddings, alignment, etc.)

The FooterContentTemplate accepts an IPopupElementInfo object as the context parameter. You can use the parameter’s CloseCallback property to implement the Close button.

Razor
<DxButton RenderStyle="ButtonRenderStyle.Secondary" 
          Click="() => WindowVisible = !WindowVisible">SHOW A WINDOW</DxButton>
<DxWindow @bind-Visible=WindowVisible
          HeaderText="Edit Contact"
          ShowFooter=true
          Width="500px">
    <BodyContentTemplate Context="Context">
        <DxFormLayout>
            <DxFormLayoutItem Caption="Contact Name:" ColSpanMd="12">
                <DxTextBox Text="Nancy Davolio" />
            </DxFormLayoutItem>
            <DxFormLayoutItem Caption="Birth Date:" ColSpanMd="12">
                <DxDateEdit Date="DateTime.Now.AddYears(-30)" />
            </DxFormLayoutItem>
            <DxFormLayoutItem Caption="Years Worked:" ColSpanMd="12">
                <DxSpinEdit Value="3" />
            </DxFormLayoutItem>
            <DxFormLayoutItem Caption="Email:" ColSpanMd="12">
                <DxTextBox Text="NancyDavolio@sample.com" />
            </DxFormLayoutItem>
        </DxFormLayout>
    </BodyContentTemplate>
    <FooterContentTemplate>
        <DxButton RenderStyle="ButtonRenderStyle.Primary" Text="OK" Click="@context.CloseCallback" />
        <DxButton RenderStyle="ButtonRenderStyle.Secondary" Text="Cancel" Click="@context.CloseCallback" />
    </FooterContentTemplate>
</DxWindow>

@code {
    bool WindowVisible { get; set; } = false;
}

Blazor Window Templates

See Also