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

DxAIChat.EmptyMessageAreaTemplate Property

Specifies the template used to display the message area if there are no message bubbles.

Namespace: DevExpress.AIIntegration.Blazor.Chat

Assembly: DevExpress.AIIntegration.Blazor.Chat.v24.2.dll

NuGet Package: DevExpress.AIIntegration.Blazor.Chat

#Declaration

C#
[Parameter]
public RenderFragment EmptyMessageAreaTemplate { get; set; }

#Property Value

Type Description
RenderFragment

The empty message area template.

#Remarks

Define the EmptyDataAreaTemplate to customize content displayed in the empty message area.

<DxAIChat CssClass="demo-chat">
    <EmptyMessageAreaTemplate>
        <div class="demo-chat-ui-description">
            AI Assistant is ready to answer your questions.
        </div>
    </EmptyMessageAreaTemplate>
</DxAIChat>
.demo-chat {
    width: 100%;
    height: 400px;
}
     .demo-chat .demo-chat-ui-description {
        font-weight: bold;
        font-size: 20px;
        text-align: center;
    }

AI chat with empty message area template

Run Demo: AI Chat - Customize Empty Message Area
View Example: AI Chat for Blazor - How to add DxAIChat component in Blazor, MAUI, WPF, and WinForms applications

See Also