Skip to main content
All docs
V26.1
  • AIChatControl.UserMessageBackground Property

    Gets or sets the background brush for user messages. This is a dependency property.

    Namespace: DevExpress.AIIntegration.Wpf.Chat

    Assembly: DevExpress.AIIntegration.Wpf.Chat.v26.1.dll

    NuGet Package: DevExpress.AIIntegration.Wpf.Chat

    Declaration

    public Brush UserMessageBackground { get; set; }

    Property Value

    Type Description
    Brush

    A Brush that paints the background of user messages.

    Remarks

    Use the following properties to specify the background color for user and assistant messages:

    • UserMessageBackground – specifies the background color for user messages.
    • AssistantMessageBackground – specifies the background color for assistant messages.

    Example

    The following example sets the background color of user messages:

    <dxaichat:AIChatControl x:Name="aiChatControl"
                            UserMessageBackground="#FF7AB8FF"
                            AssistantMessageBackground="#FFB8E6C1">
    </dxaichat:AIChatControl>
    

    User and Assistant Message Background - WPF AIChatControl, DevExpress

    Refer to the following help topic for additional information: AI Chat Control

    See Also