Skip to content

Replace remaining BlazorChatMessage.Content usages with Text in samples and README - #17

Merged
anastasiakiseleva merged 2 commits into
anastasiakiseleva-patch-1from
copilot/anastasiakiseleva-patch-1
Sep 14, 2026
Merged

anastasiakiseleva merged 2 commits into
anastasiakiseleva-patch-1from
copilot/anastasiakiseleva-patch-1

Conversation

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

This PR completes the migration away from obsolete BlazorChatMessage.Content in the Blazor chat examples by updating the remaining template usages and aligned README snippets. It keeps unrelated Content APIs (for example MessageSentEventArgs.Content) untouched.

  • Source example updates

    • Chat-CustomMessage.razor: @context.Content → @context.Text
    • Chat-Markdown.razor: @ToHtml(context.Content) → @ToHtml(context.Text)
  • README snippet alignment

    • Updated the custom message snippet to use @context.Text
    • Updated the markdown response snippet to use @ToHtml(context.Text)
  • Scope guardrails

    • No changes to unrelated Content usages such as:
      • args.Content (MessageSentEventArgs.Content)
      • ContentFormat and documentation links referencing other APIs
<div class="my-chat-content">
    @ToHtml(context.Text)
</div>

Co-authored-by: anastasiakiseleva <67680216+anastasiakiseleva@users.noreply.github.com>
Comment thread README.md Outdated
@anastasiakiseleva
anastasiakiseleva marked this pull request as ready for review September 14, 2026 10:40
@anastasiakiseleva
anastasiakiseleva merged commit c39636c into 26.1.3+ Sep 14, 2026
2 checks passed
@anastasiakiseleva
anastasiakiseleva deleted the copilot/anastasiakiseleva-patch-1 branch September 14, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants