Skip to main content
All docs
V24.2

BlazorChatMessage.Content Property

Returns the message content.

Namespace: DevExpress.AIIntegration.Blazor.Chat

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

NuGet Package: DevExpress.AIIntegration.Blazor.Chat

Declaration

public string Content { get; }

Property Value

Type Description
String

The message content.

Remarks

Use the Content property to get the text content of the message.

You can use this property to add the message content in the MessageTemplate or MessageContentTemplate.

<DxAIChat CssClass="demo-chat">
    <MessageContentTemplate>
        <div class="demo-chat-content">
            @context.Content
        </div>
    </MessageContentTemplate>
</DxAIChat>
 .demo-chat {
    width: 100%;
    height: 400px;
}
     .demo-chat .demo-chat-content {
        font-style: italic;
    }

AI chat with customized messages

Run Demo: AI Chat - Rich Formatted Response View Example: AI Chat for Blazor - How to add DxAIChat component in Blazor, MAUI, WPF, and WinForms applications

See Also