FieldCure.AssistStudio.Controls.WinUI 0.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FieldCure.AssistStudio.Controls.WinUI --version 0.5.0
                    
NuGet\Install-Package FieldCure.AssistStudio.Controls.WinUI -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FieldCure.AssistStudio.Controls.WinUI" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FieldCure.AssistStudio.Controls.WinUI" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="FieldCure.AssistStudio.Controls.WinUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FieldCure.AssistStudio.Controls.WinUI --version 0.5.0
                    
#r "nuget: FieldCure.AssistStudio.Controls.WinUI, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FieldCure.AssistStudio.Controls.WinUI@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FieldCure.AssistStudio.Controls.WinUI&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=FieldCure.AssistStudio.Controls.WinUI&version=0.5.0
                    
Install as a Cake Tool

FieldCure.AssistStudio.Controls.WinUI

Drop-in AI Chat UI Controls for WinUI 3 — Markdown rendering, streaming, attachments, tool approval, and theming out of the box.

NuGet License: MIT

Features

  • ChatPanel — Complete chat experience: message list, input area, streaming, attachments, preset/profile selectors.
  • WebView2 Rendering — Markdown, syntax highlighting (highlight.js), and LaTeX (KaTeX) rendered in a single WebView2 instance.
  • TemplatedControls — All controls are TemplatedControls with PART_ conventions. Override Generic.xaml to fully customize.
  • Theming — Light, Dark, and System themes. Set Theme="System" to follow the app theme.
  • Localization — Built-in en-US and ko-KR resource strings.
  • Tool Approval — Inline ToolApprovalPanel for user confirmation before tool execution.
  • Multi-TFM — Targets both net8.0-windows10.0.19041.0 and net9.0-windows10.0.19041.0.

Install

dotnet add package FieldCure.AssistStudio.Controls.WinUI

This package depends on FieldCure.AssistStudio.Core which is installed automatically.

Quick Start


<Page xmlns:assist="using:FieldCure.AssistStudio.Controls">

    <assist:ChatPanel x:Name="Chat"
                      Placeholder="Ask anything..."
                      Theme="System" />
</Page>
using FieldCure.AssistStudio.Providers;

// Code-behind — assign a provider
Chat.Provider = new ClaudeProvider(apiKey: "sk-ant-...", modelId: "claude-sonnet-4-20250514");

Controls

ChatPanel

The main control. Provides message list (WebView2), input area, streaming, attachments, presets, and profiles.

<assist:ChatPanel Provider="{x:Bind ViewModel.Provider, Mode=OneWay}"
                  SystemPrompt="You are a helpful assistant."
                  Theme="Dark"
                  Placeholder="Type a message..."
                  AvailablePresets="{x:Bind ViewModel.Presets}"
                  SelectedPreset="{x:Bind ViewModel.CurrentPreset, Mode=TwoWay}" />

Dependency Properties: Provider, SystemPrompt, Theme, Placeholder, AvailablePresets, SelectedPreset, AvailableProfiles, SelectedProfile, MessageFontSize, ShowTitleBar

Events: MessageSent, PresetChanged, FilesDropped, TitleBarRequested

InputContainer

Chat input area — text box, attach button, preset/profile selectors. Used internally by ChatPanel, but can be placed standalone.

AttachmentPreviewBar

Horizontal scrollable bar showing thumbnails of attached files before sending.

ToolApprovalPanel

Inline confirmation panel for tools with RequiresConfirmation = true. Displays tool name, expandable JSON arguments, and Allow/Reject buttons.

Re-templating

<Style TargetType="assist:ChatPanel" BasedOn="{StaticResource DefaultChatPanelStyle}">
    
</Style>

Requirements

Dependency Minimum Version
.NET 8.0
Windows App SDK 1.7
WebView2 Runtime Evergreen
Target Platform Windows 10 1903+ (10.0.19041.0)

License

MIT — Copyright (c) 2026 FieldCure Co., Ltd.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows10.0.19041 is compatible.  net9.0-windows was computed.  net9.0-windows10.0.19041 is compatible.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FieldCure.AssistStudio.Controls.WinUI:

Package Downloads
FieldCure.AssistStudio.Controls.WinUI.Anthropic

WinUI 3 ChatPanel integration for the Anthropic SDK. Provides extension methods to stream Anthropic responses into ChatPanel.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.21.0 38 5/7/2026
0.20.0 77 5/5/2026
0.19.0 91 5/4/2026
0.18.0 100 4/27/2026
0.17.1 102 4/24/2026
0.17.0 94 4/21/2026
0.16.0 90 4/14/2026
0.15.0 101 4/10/2026
0.14.0 102 4/7/2026
0.13.0 101 3/31/2026
0.12.0 105 3/30/2026
0.11.0 102 3/29/2026
0.10.0 99 3/24/2026
0.9.0 95 3/24/2026
0.8.0 98 3/22/2026
0.7.0 98 3/21/2026
0.6.0 105 3/17/2026
0.5.0 105 3/17/2026
0.4.0 103 3/17/2026

# Release Notes — FieldCure.AssistStudio.Controls.WinUI

## [0.5.0] - 2026-03-17

### Added
- Dedicated NuGet package README with Controls-specific XAML examples and API reference

---

## [0.4.0] - 2026-03-17

### Added
- NuGet package metadata (Company, Copyright, Icon, README, Repository URL, Tags)
- Release notes auto-inclusion in NuGet package
- `publish-nuget.ps1` script for pack → sign → push workflow

---

## [0.3.0] - 2026-03-17

### Added
- `ToolApprovalPanel` templated control for tool execution confirmation UI
- Summarize button wired from `InputContainer` to `ChatPanel`
- External link navigation redirected to default browser from WebView2

### Fixed
- WebView2 stealing focus from TextBox during streaming response

---

## [0.2.0] - 2026-03-16

### Fixed
- Duplicate file attachment on drag-and-drop (event bubbling from InputContainer to ChatPanel)
- Consecutive tool results merged into single user message for Claude compatibility

---

## [0.1.0] - 2026-03-15

### Added
- `ChatPanel` templated control with WebView2-based message rendering
- `InputContainer` templated control with provider/profile selectors and attachment support
- `AttachmentPreviewBar` templated control for file previews
- Markdown rendering via marked.js with code syntax highlighting (highlight.js)
- LaTeX/math rendering via KaTeX
- Code block copy-to-clipboard
- Streaming display with cursor indicator
- Image paste and file picker attachment
- PDF and DOCX text extraction for document attachments
- Localization support (en-US, ko-KR)