{"id":4683,"date":"2026-12-02T10:18:28","date_gmt":"2026-12-02T15:18:28","guid":{"rendered":"https:\/\/xceed.com\/?p=4683"},"modified":"2026-12-02T10:18:52","modified_gmt":"2026-12-02T15:18:52","slug":"how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol","status":"publish","type":"post","link":"https:\/\/xceed.com\/es\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/","title":{"rendered":"How to Add a Chat Interface to WPF Apps with ChatControl"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4683\" class=\"elementor elementor-4683\" wpc-filter-elementor-widget=\"1\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b8260e2 e-flex e-con-boxed e-con e-parent\" data-id=\"b8260e2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec4a77e elementor-widget elementor-widget-html\" data-id=\"ec4a77e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;\">\n  <p style=\"margin:0;line-height:1.7;\">A chat interface in WPF needs more than a ListBox and a TextBox. You also need a message model that updates while replies stream in, a send command, sensible auto-scroll, virtualization and thread-safe collection updates. A dedicated chat control, such as ChatControl in Xceed Toolkit Plus for WPF, handles the presentation layer, so most of your own code lives in the view model; confirm its availability and exact classes in the Toolkit Plus documentation. This tutorial installs the Xceed.Products.Wpf.Toolkit.Full NuGet package and builds an MVVM chat view model in plain C#. It then explains how to bind that view model to ChatControl and covers performance tips, offline licensing and the 45-day free trial.<\/p>\n<\/div>\n\n<p>Users now expect conversation-style UI in desktop software. Support consoles, internal AI assistants and field-service tools all ask for a chat panel next to the data. A <strong>chat interface WPF<\/strong> teams can maintain over time, however, takes more work than the mockups suggest.<\/p>\n\n<p>A convincing chat panel needs message bubbles aligned by sender, timestamps and a multi-line input box. It also needs auto-scroll that leaves alone a user who is reading older messages, plus replies that grow word by word as a language model streams them. Each piece is small on its own. Together, they can take days of templating and edge-case fixes.<\/p>\n\n<p>This tutorial builds that work around ChatControl in Xceed Toolkit Plus for WPF; the Toolkit Plus documentation at doc.xceed.com is the place to confirm availability and exact class names. First, you write the conversation logic as a plain C# view model. Next, you connect it to the control. As a result, the UI layer stays thin and you can unit-test the chat logic.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Why a chat interface in WPF is harder than it looks<\/h2>\n\n<p>Most teams start with built-in controls. A ListBox with a custom DataTemplate shows the messages, while a TextBox and a Button handle input. That prototype takes an afternoon to build. Problems start once real conversations flow through it.<\/p>\n\n<h3>Common problems with a ListBox-based chat<\/h3>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 24px;border-radius:12px;margin:24px 0;\">\n  <ul style=\"padding-left:22px;margin:0;\">\n    <li style=\"margin-bottom:12px;\"><strong>Scroll behavior.<\/strong> ListBox has no \"stick to bottom\" mode. Developers often call <span style=\"font-family:monospace;background:transparent;\">ScrollIntoView<\/span> on every collection change. That pulls the viewport away from users who scrolled up to reread something.<\/li>\n    <li style=\"margin-bottom:12px;\"><strong>Streaming text.<\/strong> A reply that updates dozens of times per second triggers layout every time. In a long list, that text measurement can stall the UI thread.<\/li>\n    <li style=\"margin-bottom:12px;\"><strong>Threading.<\/strong> An <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.collections.objectmodel.observablecollection-1\">ObservableCollection&lt;T&gt;<\/a> raises change notifications on the thread that modifies it. WPF throws a NotSupportedException when a background thread changes a bound collection without synchronization.<\/li>\n    <li style=\"margin-bottom:12px;\"><strong>Sender-specific templates.<\/strong> Aligning your messages right and incoming messages left requires a DataTemplateSelector or a stack of triggers.<\/li>\n    <li><strong>Keyboard conventions.<\/strong> Users expect Enter to send and Shift+Enter to add a new line. A default TextBox does neither out of the box.<\/li>\n  <\/ul>\n<\/div>\n\n<p>None of these problems is exotic. Still, each one adds code that has nothing to do with your actual product. For that reason, a dedicated chat control pays off quickly.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">What ChatControl adds to the WPF Toolkit<\/h2>\n\n<p>The name <strong>Extended WPF Toolkit<\/strong> often appears in search results, so the editions are worth separating first. The Extended WPF Toolkit is the community edition, a separate product with its own <a href=\"https:\/\/github.com\/xceedsoftware\/wpftoolkit\">GitHub repository<\/a>. In contrast, <a href=\"https:\/\/xceed.com\/products\/wpf\/toolkit-plus-for-wpf\/\">Xceed Toolkit Plus for WPF<\/a> is the commercial edition. It ships under a per-developer subscription and includes additional controls. Check the release notes on the product page to confirm which version includes ChatControl.<\/p>\n\n<p>The ChatControl-related classes target the presentation layer of a conversation. Specifically, they cover showing a list of messages, telling senders apart and accepting new input. Meanwhile, your application keeps ownership of the data and of the logic that produces replies. That split matches MVVM well, because the control binds to a collection you already control.<\/p>\n\n<h3>How this tutorial handles the API<\/h3>\n\n<p>This article keeps Xceed-specific calls out of the code samples on purpose. Class names, properties and template parts can change between releases. The official <a href=\"https:\/\/doc.xceed.com\">Xceed documentation<\/a> is therefore the source of truth for exact ChatControl signatures. All of the C# below uses standard .NET and WPF types, so it compiles on its own and works with any chat surface.<\/p>\n\n<p>Other WPF suites also include conversational UI components. Telerik UI for WPF, DevExpress WPF and Syncfusion Essential Studio for WPF each offer one. Teams that already standardize on one of those suites will often find a chat component that matches their existing themes. Toolkit Plus suits teams that already use Xceed controls, such as DataGrid for WPF, and want one vendor for their WPF UI.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Step 1: Install the WPF Toolkit package<\/h2>\n\n<p>Start with a WPF project targeting .NET 8 or later. Then add the <a href=\"https:\/\/www.nuget.org\/packages\/Xceed.Products.Wpf.Toolkit.Full\">Xceed.Products.Wpf.Toolkit.Full<\/a> package from NuGet. The current release of this <strong>WPF Toolkit<\/strong> package is v5.2, and its root namespace is <span style=\"font-family:monospace;background:transparent;\">Xceed.Wpf.Toolkit<\/span>.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">Install via NuGet<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>dotnet add package Xceed.Products.Wpf.Toolkit.Full<\/div>\n  <\/div>\n<\/div>\n\n<p>Next, apply your license key. Toolkit Plus reads the key from code at startup, usually in <span style=\"font-family:monospace;background:transparent;\">App.xaml.cs<\/span> before any window opens. The check runs entirely offline, with no activation server and no phone-home. The Toolkit Plus documentation lists the exact licenser property for your version. During evaluation, you can request a key through the <a href=\"https:\/\/trial.xceed.com\">45-day free trial<\/a>, which needs no credit card.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Step 2: Build the message model and view model<\/h2>\n\n<p>A chat UI is only as good as the data behind it. Therefore, start with a message class that raises change notifications on <span style=\"font-family:monospace;background:transparent;\">Text<\/span>. Streaming replies depend on this, since the same message object grows as tokens arrive.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">ChatMessage.cs<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>using System;<\/div>\n    <div>using System.ComponentModel;<\/div>\n    <div>using System.Runtime.CompilerServices;<\/div>\n    <div>&nbsp;<\/div>\n    <div>namespace ChatDemo;<\/div>\n    <div>&nbsp;<\/div>\n    <div>public sealed class ChatMessage : INotifyPropertyChanged<\/div>\n    <div>{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private string _text = string.Empty;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public string Author { get; init; } = string.Empty;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public bool IsFromCurrentUser { get; init; }<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public DateTime Timestamp { get; init; } = DateTime.Now;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public string Text<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get =&gt; _text;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (_text == value) return;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_text = value;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OnPropertyChanged();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public event PropertyChangedEventHandler? PropertyChanged;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private void OnPropertyChanged([CallerMemberName] string? name = null)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));<\/div>\n    <div>}<\/div>\n  <\/div>\n<\/div>\n\n<h3>Add an async send command<\/h3>\n\n<p>The send action calls a remote service, so it needs an async command. The small class below also disables itself while a reply is still streaming. That way, users cannot fire a second prompt mid-answer.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">AsyncRelayCommand.cs<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>using System;<\/div>\n    <div>using System.Threading.Tasks;<\/div>\n    <div>using System.Windows.Input;<\/div>\n    <div>&nbsp;<\/div>\n    <div>namespace ChatDemo;<\/div>\n    <div>&nbsp;<\/div>\n    <div>public sealed class AsyncRelayCommand : ICommand<\/div>\n    <div>{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private readonly Func&lt;Task&gt; _execute;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private readonly Func&lt;bool&gt; _canExecute;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private bool _isRunning;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public AsyncRelayCommand(Func&lt;Task&gt; execute, Func&lt;bool&gt; canExecute)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_execute = execute;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_canExecute = canExecute;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public event EventHandler? CanExecuteChanged<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add =&gt; CommandManager.RequerySuggested += value;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remove =&gt; CommandManager.RequerySuggested -= value;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public bool CanExecute(object? parameter) =&gt; !_isRunning &amp;&amp; _canExecute();<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public async void Execute(object? parameter)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_isRunning = true;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandManager.InvalidateRequerySuggested();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;await _execute();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;finally<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_isRunning = false;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandManager.InvalidateRequerySuggested();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>}<\/div>\n  <\/div>\n<\/div>\n\n<h3>Write the chat view model<\/h3>\n\n<p>The view model owns three things: the message collection, the draft text and the send command. In addition, it holds a stub that streams a fake reply. Later, you replace that stub with your real model or chat service.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">ChatViewModel.cs<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>using System.Collections.Generic;<\/div>\n    <div>using System.Collections.ObjectModel;<\/div>\n    <div>using System.ComponentModel;<\/div>\n    <div>using System.Runtime.CompilerServices;<\/div>\n    <div>using System.Threading.Tasks;<\/div>\n    <div>using System.Windows.Input;<\/div>\n    <div>&nbsp;<\/div>\n    <div>namespace ChatDemo;<\/div>\n    <div>&nbsp;<\/div>\n    <div>public sealed class ChatViewModel : INotifyPropertyChanged<\/div>\n    <div>{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private string _draft = string.Empty;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public ChatViewModel()<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendCommand = new AsyncRelayCommand(SendAsync, () =&gt; !string.IsNullOrWhiteSpace(Draft));<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public ObservableCollection&lt;ChatMessage&gt; Messages { get; } = new();<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public string Draft<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get =&gt; _draft;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set { _draft = value; OnPropertyChanged(); }<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public ICommand SendCommand { get; }<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private async Task SendAsync()<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string prompt = Draft.Trim();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draft = string.Empty;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messages.Add(new ChatMessage { Author = \"You\", IsFromCurrentUser = true, Text = prompt });<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var reply = new ChatMessage { Author = \"Assistant\" };<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messages.Add(reply);<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/ The await resumes on the UI thread, so updating Text here is safe.<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;await foreach (string token in GetReplyTokensAsync(prompt))<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reply.Text += token;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;\/\/ Replace this stub with a call to your model or chat service.<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private static async IAsyncEnumerable&lt;string&gt; GetReplyTokensAsync(string prompt)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach (string word in $\"You said: {prompt}\".Split(' '))<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;await Task.Delay(80);<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yield return word + \" \";<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public event PropertyChangedEventHandler? PropertyChanged;<\/div>\n    <div>&nbsp;<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;private void OnPropertyChanged([CallerMemberName] string? name = null)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));<\/div>\n    <div>}<\/div>\n  <\/div>\n<\/div>\n\n<p>Notice that SendAsync adds the empty reply before streaming starts. As a result, the UI shows the assistant's message bubble right away, and the text fills in as tokens arrive. This pattern gives users immediate feedback, even when the first token takes a second or two.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Step 3: Connect the view model to ChatControl<\/h2>\n\n<p>First, assign the view model as the window's DataContext. This part is standard WPF and does not depend on any Xceed API.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">MainWindow.xaml.cs<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>using System.Windows;<\/div>\n    <div>&nbsp;<\/div>\n    <div>namespace ChatDemo;<\/div>\n    <div>&nbsp;<\/div>\n    <div>public partial class MainWindow : Window<\/div>\n    <div>{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;public MainWindow()<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InitializeComponent();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DataContext = new ChatViewModel();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>}<\/div>\n  <\/div>\n<\/div>\n\n<p>Next, open MainWindow.xaml, declare the Toolkit Plus XAML namespace and place the <strong>ChatControl<\/strong> in your layout. Then bind the control's message source to Messages. Map sender, text and timestamp to the matching ChatMessage properties. Finally, route message submission to SendCommand. If the control exposes a command property, bind to it directly. If it raises an event instead, forward that event to the command from code-behind or with a behavior.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;padding:18px 20px;margin:18px 0;border-radius:12px;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">API Reference<\/h3>\n  <p style=\"margin:0;line-height:1.6;\">The exact XAML namespace URI, element name and property names appear in the Toolkit Plus API reference on <a href=\"https:\/\/doc.xceed.com\">doc.xceed.com<\/a>. Use those names exactly as documented for your installed version.<\/p>\n<\/div>\n\n<p>A chat panel bound to an MVVM view model, with the assistant reply streaming in.<\/p>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Performance tips for a chat interface in WPF<\/h2>\n\n<p>A working chat panel is only the first milestone. The tips below keep a <strong>chat interface WPF<\/strong> users rely on responsive under real traffic.<\/p>\n\n<h3>Batch streaming updates<\/h3>\n\n<p>Language models can emit tokens faster than the eye can read them. Each change to Text triggers a binding update and a layout pass. Instead of updating per token, buffer tokens and flush roughly every 50 milliseconds. The following loop replaces the await foreach block in SendAsync. It also needs using System.Diagnostics; and using System.Text;.<\/p>\n\n<div style=\"background:linear-gradient(135deg,#fff4ec 0%,#fffaf7 100%);border-left:6px solid #f26522;border-radius:12px;padding:18px 20px;margin:18px 0;box-shadow:0 8px 24px rgba(242,101,34,0.10);\">\n  <h3 style=\"margin:0 0 10px;color:#f26522;font-weight:800;\">Buffer streaming tokens<\/h3>\n  <div style=\"background:transparent;color:#f26522;border:none;box-shadow:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.95em;line-height:1.8;overflow-x:auto;white-space:nowrap;\">\n    <div>var buffer = new StringBuilder();<\/div>\n    <div>var stopwatch = Stopwatch.StartNew();<\/div>\n    <div>&nbsp;<\/div>\n    <div>await foreach (string token in GetReplyTokensAsync(prompt))<\/div>\n    <div>{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;buffer.Append(token);<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;if (stopwatch.ElapsedMilliseconds &gt;= 50)<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;{<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reply.Text += buffer.ToString();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buffer.Clear();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stopwatch.Restart();<\/div>\n    <div>&nbsp;&nbsp;&nbsp;&nbsp;}<\/div>\n    <div>}<\/div>\n    <div>&nbsp;<\/div>\n    <div>\/\/ Flush whatever remains after the stream ends.<\/div>\n    <div>reply.Text += buffer.ToString();<\/div>\n  <\/div>\n<\/div>\n\n<h3>Keep collection changes on the UI thread<\/h3>\n\n<p>The sample above stays safe because each await resumes on the UI thread's synchronization context. However, some SDKs push messages from a background thread through callbacks. In that case, marshal the update with the <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.windows.threading.dispatcher\">WPF Dispatcher<\/a>. Alternatively, register the collection with <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.windows.data.bindingoperations.enablecollectionsynchronization\">BindingOperations.EnableCollectionSynchronization<\/a> and use a shared lock.<\/p>\n\n<h3>Cap the in-memory history<\/h3>\n\n<p>Long-running sessions can accumulate thousands of messages. Even with UI virtualization, every item still costs memory. Therefore, trim the oldest entries once the collection passes a threshold, and persist the full transcript to disk or a database. Similarly, send only a recent window of messages to your model, since context limits apply there too.<\/p>\n\n<h3>Test the view model without the UI<\/h3>\n\n<p>The view model has no reference to ChatControl, so you can unit-test it directly. For example, a test can set Draft, execute SendCommand and assert that Messages contains two entries. Swap the token stub for a fake service, and you can also verify error handling and cancellation.<\/p>\n\n<h3>Plan for offline and regulated deployments<\/h3>\n\n<p>Many chat panels run inside hospitals, banks or factory networks. Xceed licensing fits those environments. The license key lives in code, and there is no online activation, so builds and apps run on air-gapped machines. Xceed components also contain no telemetry and collect no data from end users. Furthermore, redistribution of the Xceed assemblies is royalty-free, with no per-deployment or per-user fees. An active per-developer subscription covers building and shipping; the <a href=\"https:\/\/xceed.com\/license-agreement\/\">license agreement<\/a> has the full terms. For code reviews, a Blueprint subscription provides the full C# source.<\/p>\n\n<div style=\"text-align:center;padding:36px 24px;margin:36px 0;\">\n  <div style=\"background:#fff4ec;border:1px solid #f3d7c9;border-radius:14px;padding:34px 22px;margin:42px 0;text-align:center;\">\n    <h2 style=\"color:#f26522;margin-top:0;\">Try ChatControl in Toolkit Plus<\/h2>\n    <p style=\"font-size:1.15em;line-height:1.6;color:#5b657a;max-width:760px;margin:0 auto 22px auto;\">Add a chat panel to your WPF app with a 45-day free trial, no credit card required.<\/p>\n    <div style=\"display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:18px;\">\n      <a href=\"https:\/\/trial.xceed.com\" style=\"display:inline-block;background:#f26522;color:#ffffff;text-decoration:none;padding:14px 28px;border-radius:10px;font-weight:700;font-size:1em;box-shadow:0 6px 18px rgba(242,101,34,0.18);\">Download Free Trial<\/a>\n      <a href=\"https:\/\/www.nuget.org\/profiles\/xceed\" style=\"display:inline-block;background:#eef1f5;color:#334155;text-decoration:none;padding:14px 28px;border-radius:10px;font-weight:700;font-size:1em;\">View on NuGet<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n<h2 style=\"margin-top:42px;color:#f26522;\">Frequently Asked Questions<\/h2>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;box-shadow:0 6px 18px rgba(242,101,34,0.08);\">\n  <h3 style=\"margin-top:0;color:#222;\">What is ChatControl in Xceed Toolkit Plus for WPF?<\/h3>\n  <p style=\"margin-bottom:0;\">ChatControl is a conversation-style UI component for Xceed Toolkit Plus for WPF. A chat control like this handles the presentation side, such as message lists and input, while your view model supplies the messages and reply logic. The API reference at <a href=\"https:\/\/doc.xceed.com\">doc.xceed.com<\/a> lists the exact classes and members, and the release notes confirm which version includes it.<\/p>\n<\/div>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;\">\n  <h3 style=\"margin-top:0;color:#222;\">Is ChatControl part of the free Extended WPF Toolkit?<\/h3>\n  <p style=\"margin-bottom:0;\">The Extended WPF Toolkit community edition is a separate product from Toolkit Plus for WPF. Toolkit Plus is the commercial edition, licensed per developer through a subscription. Check the release notes on the Toolkit Plus product page to confirm which edition and version include ChatControl.<\/p>\n<\/div>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;\">\n  <h3 style=\"margin-top:0;color:#222;\">Can I connect a WPF chat interface to an AI model?<\/h3>\n  <p style=\"margin-bottom:0;\">Yes. The chat control only displays messages, so any service works behind it. Replace the GetReplyTokensAsync stub with a call to your model's streaming API, then append each chunk to the reply message's Text property.<\/p>\n<\/div>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;box-shadow:0 6px 18px rgba(242,101,34,0.08);\">\n  <h3 style=\"margin-top:0;color:#222;\">Does Toolkit Plus need internet access to validate the license?<\/h3>\n  <p style=\"margin-bottom:0;\">No. You apply the license key in code, and validation happens offline. Xceed uses no online activation, no phone-home and no remote kill-switch, so apps run on fully air-gapped machines.<\/p>\n<\/div>\n\n<div style=\"background:#fff8f4;border:1px solid #f8d7c7;padding:20px 22px;border-radius:12px;margin:24px 0;\">\n  <h3 style=\"margin-top:0;color:#222;\">How do I stop the chat from jumping while users read older messages?<\/h3>\n  <p style=\"margin-bottom:0;\">First, check the ChatControl documentation for built-in scroll behavior. If you need custom logic, track whether the scroll position sits at the bottom. Auto-scroll on new messages only when it does, and show a \"new messages\" indicator otherwise.<\/p>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This tutorial installs Xceed Toolkit Plus for WPF, builds an MVVM chat view model in C#, explains how to connect it to the new ChatControl-related classes, and covers tips for streaming replies and threading.<\/p>","protected":false},"author":12,"featured_media":4689,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[60],"tags":[],"products":[796],"class_list":["post-4683","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","products-toolkit-plus-for-wpf"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v29.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software<\/title>\n<meta name=\"description\" content=\"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xceed.com\/es\/blog\/tutoriales\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software\" \/>\n<meta property=\"og:description\" content=\"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xceed.com\/es\/blog\/tutoriales\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/\" \/>\n<meta property=\"og:site_name\" content=\"Xceed Software\" \/>\n<meta property=\"article:published_time\" content=\"2026-12-02T15:18:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-02T15:18:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Christopher Radford\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Radford\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/\"},\"author\":{\"name\":\"Christopher Radford\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/person\\\/f5c80336ddb6f48ea2693e77d81b29cb\"},\"headline\":\"How to Add a Chat Interface to WPF Apps with ChatControl\",\"datePublished\":\"2026-12-02T15:18:28+00:00\",\"dateModified\":\"2026-12-02T15:18:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/\"},\"wordCount\":2896,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/12.png\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/\",\"url\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/\",\"name\":\"How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/12.png\",\"datePublished\":\"2026-12-02T15:18:28+00:00\",\"dateModified\":\"2026-12-02T15:18:52+00:00\",\"description\":\"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#primaryimage\",\"url\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/12.png\",\"contentUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/12.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/xceed.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add a Chat Interface to WPF Apps with ChatControl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/\",\"name\":\"Xceed Software\",\"description\":\"Provides tools for .NET, Windows Forms, WPF, Silverlight, and ASP.NET developers to create better applications.\",\"publisher\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/xceed.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\",\"name\":\"Xceed Software\",\"alternateName\":\"Xceed Software\",\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/Untitled-design-24.png\",\"contentUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/Untitled-design-24.png\",\"width\":512,\"height\":512,\"caption\":\"Xceed Software\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/person\\\/f5c80336ddb6f48ea2693e77d81b29cb\",\"name\":\"Christopher Radford\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g\",\"caption\":\"Christopher Radford\"},\"sameAs\":[\"http:\\\/\\\/www.localhost:10003\"],\"url\":\"https:\\\/\\\/xceed.com\\\/es\\\/blog\\\/author\\\/radfordc\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software","description":"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xceed.com\/es\/blog\/tutoriales\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/","og_locale":"es_MX","og_type":"article","og_title":"How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software","og_description":"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.","og_url":"https:\/\/xceed.com\/es\/blog\/tutoriales\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/","og_site_name":"Xceed Software","article_published_time":"2026-12-02T15:18:28+00:00","article_modified_time":"2026-12-02T15:18:52+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png","type":"image\/png"}],"author":"Christopher Radford","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Christopher Radford","Est. reading time":"10 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#article","isPartOf":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/"},"author":{"name":"Christopher Radford","@id":"https:\/\/xceed.com\/fr\/#\/schema\/person\/f5c80336ddb6f48ea2693e77d81b29cb"},"headline":"How to Add a Chat Interface to WPF Apps with ChatControl","datePublished":"2026-12-02T15:18:28+00:00","dateModified":"2026-12-02T15:18:52+00:00","mainEntityOfPage":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/"},"wordCount":2896,"commentCount":0,"publisher":{"@id":"https:\/\/xceed.com\/fr\/#organization"},"image":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#primaryimage"},"thumbnailUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png","articleSection":["Tutorials"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/","url":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/","name":"How to Add a Chat Interface to WPF Apps with ChatControl - Xceed Software","isPartOf":{"@id":"https:\/\/xceed.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#primaryimage"},"image":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#primaryimage"},"thumbnailUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png","datePublished":"2026-12-02T15:18:28+00:00","dateModified":"2026-12-02T15:18:52+00:00","description":"Build a chat interface in WPF with ChatControl from Xceed Toolkit Plus for WPF. MVVM setup, streaming replies, threading and performance tips.","breadcrumb":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#primaryimage","url":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png","contentUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/12\/12.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/xceed.com\/blog\/tutorials\/how-to-add-a-chat-interface-to-wpf-apps-with-chatcontrol\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xceed.com\/"},{"@type":"ListItem","position":2,"name":"How to Add a Chat Interface to WPF Apps with ChatControl"}]},{"@type":"WebSite","@id":"https:\/\/xceed.com\/fr\/#website","url":"https:\/\/xceed.com\/fr\/","name":"Xceed Software","description":"Proporciona herramientas para que los desarrolladores de .NET, Windows Forms, WPF, Silverlight y ASP.NET puedan crear mejores aplicaciones.","publisher":{"@id":"https:\/\/xceed.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xceed.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/xceed.com\/fr\/#organization","name":"Xceed Software","alternateName":"Xceed Software","url":"https:\/\/xceed.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/xceed.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/07\/Untitled-design-24.png","contentUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/07\/Untitled-design-24.png","width":512,"height":512,"caption":"Xceed Software"},"image":{"@id":"https:\/\/xceed.com\/fr\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/xceed.com\/fr\/#\/schema\/person\/f5c80336ddb6f48ea2693e77d81b29cb","name":"Christopher Radford","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/646a50aec7dd7187eab0ace3be81c465cdf54ce89b57357657f254b7cb1b996c?s=96&d=mm&r=g","caption":"Christopher Radford"},"sameAs":["http:\/\/www.localhost:10003"],"url":"https:\/\/xceed.com\/es\/blog\/author\/radfordc\/"}]}},"_links":{"self":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/4683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/comments?post=4683"}],"version-history":[{"count":5,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/4683\/revisions"}],"predecessor-version":[{"id":4688,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/4683\/revisions\/4688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/media\/4689"}],"wp:attachment":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/media?parent=4683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/categories?post=4683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/tags?post=4683"},{"taxonomy":"products","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/products?post=4683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}