devexpress-wpf-ai-chat-control

devexpress-wpf-ai-chat-control is a skill for Claude Code from DevExpress/agent-skills. It costs 238 tokens per session (5,634 once invoked), scanned A, original, MIT.

A guide to embedding a Copilot-style AI chat interface in a WPF application. It connects the DevExpress chat control to an AI service through a common chat-client interface.

In plain words
What is it for?
Use it to install and place the chat control, connect Azure OpenAI, OpenAI, Ollama, or Semantic Kernel, and handle or restrict messages before they are sent.
Why use it?
It removes the need to build basic chat presentation features yourself, such as streamed replies, Markdown messages, file attachments, prompt suggestions, and saved history.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the dx-wpf plugin — 18 skills shipped together

Good fit Use it to install and place the chat control, connect Azure OpenAI, OpenAI, Ollama, or Semantic Kernel, and handle or restrict messages before they are sent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DevExpress/agent-skills --skill devexpress-wpf-ai-chat-control
Clone the repo
git clone --depth 1 https://github.com/DevExpress/agent-skills

Made for: Claude Code.

Or install dx-wpf, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devexpress-wpf-ai-chat-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control/github.svg)](https://agentmods.dev/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control)
Your own site
<a href="https://agentmods.dev/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control"><img src="https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devexpress-wpf-ai-chat-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control"><img src="https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-wpf-ai-chat-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 238 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00238 $0.05634
Opus 5.5 $0.00095 $0.02254
Sonnet 5.5 $0.00048 $0.01127
Haiku 4.5 $0.00024 $0.00563

Measured 3d ago against content hash 1ac4002f5e4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

devexpress-wpf-ai-chat-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dx-wpf/skills/devexpress-wpf-ai-chat-control/SKILL.md · 432 lines

How it starts

The opening of the file, as written. The whole thing — 432 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DevExpress WPF AI Chat Control

AIChatControl embeds a ready-made, Copilot-style chat interface in your WPF app. The conversation flow (user messages, streaming assistant responses, Markdown rendering, file attachments, prompt suggestions, history) is built in — you supply an IChatClient (Azure OpenAI / OpenAI / Ollama / Semantic Kernel) and drop the control on a ThemedWindow. Under the hood it hosts the DevExpress Blazor DxAIChat component inside a BlazorWebView.

This skill covers project setup, installing the NuGet, registering an AI client, placing the control, and the basic features (streaming, Markdown, file upload, prompt suggestions, history, manual message handling).

When to Use This Skill

Use this skill when you need to:

  • Embed an interactive AI chat (Copilot-style) in a WPF app
  • Connect to Azure OpenAI / OpenAI / Ollama / Semantic Kernel via IChatClient
  • Stream assistant responses as they're generated
  • Render Markdown / code blocks in chat messages
  • Let users attach files (PDF / images / text) to chat messages
  • Persist and reload chat history (SaveMessages / LoadMessages)
  • Manually intercept messages (MessageSending) — for guard rails, side channels, custom AI calls
  • Display multiple chat surfaces with different AI services (ChatClientServiceKey)

Critical Prerequisites

Requirement Notes
.NET 8.0 or newer The control is not available on .NET Framework or .NET 6 / 7
Microsoft.NET.Sdk.Razor project SDK Must change <Project Sdk="Microsoft.NET.Sdk"> → <Project Sdk="Microsoft.NET.Sdk.Razor">
WebView2 runtime Bundled with Windows 11; ship the installer for older Windows / Server
dx:ThemedWindow host All official samples use ThemedWindow; design-time rendering not supported
A registered IChatClient AIExtensionsContainerDesktop.Default.RegisterChatClient(...) at startup

No design-time rendering: the chat surface only renders at runtime. Don't expect to see it in the XAML designer.

Read the full file on GitHub · 432 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 432 lines · 238 tokens per session scan A 1ac4002f5e4e

Subscribe to this mod's changes

devexpress-wpf-ai-chat-control is a skill published in the GitHub repository DevExpress/agent-skills (66 stars, last pushed 4d ago), licensed MIT. It adds 238 tokens to every session and 5,634 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.