blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-dxaichat-e68cc30d.md
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.v25.2.dll
NuGet Package : DevExpress.AIIntegration.Blazor.Chat
[Parameter]
public RenderFragment EmptyMessageAreaTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment |
The empty message area template.
|
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;
}
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