Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-ai-assistview同步融合 winforms ai Assistview

Agent Skill

syncfusion-winforms-ai-assistview 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

753

周安装

32

GitHub Stars

1

下载量

264
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-ai-assistview(同步融合 winforms ai Assistview)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-ai-assistview
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-ai-assistview
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-ai-assistview

简介

用于处理 WinForms AI AssistView 相关的协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。
  • 通过 GitHub 安装,需结合来源仓库文档使用。
  • 建议确认权限范围和维护状态后再使用。
  • syncfusion-winforms-ai-assistview 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing AI AssistView

The Syncfusion Windows Forms AI AssistView (SfAIAssistView) is a sophisticated conversational interface control for building AI-powered chat applications with support for suggestions, typing indicators, custom views, and seamless OpenAI/ChatGPT integration.

When to Use This Skill

Use this skill when the user needs to:

  • Build AI-powered chat interfaces in Windows Forms applications
  • Integrate OpenAI, ChatGPT, or Azure OpenAI services into desktop apps
  • Create conversational UI with message bubbles and chat history
  • Display AI-driven response suggestions for quick user responses
  • Show typing indicators during async AI response generation
  • Customize chat message appearance with custom BotView and UserView
  • Handle user prompts with validation and custom actions
  • Build intelligent assistants with banner customization
  • Implement real-time chat experiences with data binding

Component Overview

Key Features:

  • Suggestions: Display selectable response suggestions to expedite conversation flow
  • Typing Indicator: Show loading animation during AI processing
  • Banner Customization: Customizable header with welcome messages and AI service info
  • Custom Views: Create custom BotView and UserView for message presentation
  • Theme Support: Automatic light/dark theme adaptation
  • OpenAI Integration: Seamless connection with OpenAI services via Semantic Kernel
  • Events: PromptRequest event for input validation and custom actions
  • Data Binding: Full support for ObservableCollection and INotifyPropertyChanged

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet packages
  • Creating Windows Forms project with SfAIAssistView
  • Adding control via Designer and Code
  • Creating ViewModel with message collection
  • Message binding and Author configuration
  • Basic chat implementation

Suggestions

📄 Read: references/suggestions.md

  • Displaying AI-driven suggestions
  • Binding suggestions to ViewModel
  • Quick response scenarios
  • Dynamic suggestion updates

Typing Indicator

📄 Read: references/typing-indicator.md

  • ShowTypingIndicator property
  • Async communication feedback
  • Customizing indicator appearance
  • Author and DisplayText configuration

Customization

📄 Read: references/customization.md

  • BannerView customization with SetBannerView
  • Creating custom BotView with SetBotView
  • Creating custom UserView with SetUserView
  • Interactive buttons in bot responses
  • Custom styling and layouts

Events

📄 Read: references/events.md

  • PromptRequest event handling
  • Input validation
  • Custom action triggers
  • Handled property usage

OpenAI Integration

📄 Read: references/openai-integration.md

  • Connecting to OpenAI/ChatGPT
  • Microsoft Semantic Kernel setup
  • API credentials configuration
  • NonStreamingChat implementation
  • Async response handling
  • Complete working example

Quick Start Example

Basic Chat Interface

using Syncfusion.WinForms.AIAssistView;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace AIAssistViewDemo
{
    public partial class Form1 : Form
    {
        ViewModel viewModel;

        public Form1()
        {
            InitializeComponent();
            viewModel = new ViewModel();

            // Create AI AssistView
            SfAIAssistView sfAIAssistView1 = new SfAIAssistView();
            sfAIAssistView1.Dock = DockStyle.Fill;
            this.Controls.Add(sfAIAssistView1);

            // Bind messages
            sfAIAssistView1.DataBindings.Add("Messages", viewModel, "Chats",
                true, DataSourceUpdateMode.OnPropertyChanged);
        }
    }

    // ViewModel
    public class ViewModel : INotifyPropertyChanged
    {
        private ObservableCollection<object> chats;
        private Author currentUser;

        public ViewModel()
        {
            this.Chats = new ObservableCollection<object>();
            this.CurrentUser = new Author { Name = "John" };
            this.GenerateMessages();
        }

        private async void GenerateMessages()
        {
            // User message
            this.Chats.Add(new TextMessage
            {
                Author = CurrentUser,
                Text = "What is Windows Forms?"
            });

            await Task.Delay(1000);

            // Bot response
            this.Chats.Add(new TextMessage
            {
                Author = new Author { Name = "Bot" },
                Text = "Windows Forms is a GUI framework for building Windows desktop applications."
            });
        }

        public ObservableCollection<object> Chats
        {
            get => this.chats;
            set
            {
                this.chats = value;
                RaisePropertyChanged("Chats");
            }
        }

        public Author CurrentUser
        {
            get => this.currentUser;
            set
            {
                this.currentUser = value;
                RaisePropertyChanged("CurrentUser");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public void RaisePropertyChanged(string propName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
        }
    }
}

Common Patterns

Pattern 1: Chat with Suggestions

// In ViewModel
private IEnumerable<string> suggestion;

public IEnumerable<string> Suggestion
{
    get => this.suggestion;
    set
    {
        this.suggestion = value;
        RaisePropertyChanged("Suggestion");
    }
}

// Set suggestions after bot response
Suggestion = new ObservableCollection<string>
{
    "Tell me more",
    "What are alternatives?"
};

// In Form
sfAIAssistView1.DataBindings.Add("Suggestions", viewModel, "Suggestion",
    true, DataSourceUpdateMode.OnPropertyChanged);

Pattern 2: Typing Indicator During AI Processing

// In ViewModel
private bool showTypingIndicator;

public bool ShowTypingIndicator
{
    get => this.showTypingIndicator;
    set
    {
        this.showTypingIndicator = value;
        RaisePropertyChanged("ShowTypingIndicator");
    }
}

// Usage
ShowTypingIndicator = true;
var response = await GetAIResponse(userMessage);
Chats.Add(new TextMessage { Author = botAuthor, Text = response });
ShowTypingIndicator = false;

// In Form
sfAIAssistView1.DataBindings.Add("ShowTypingIndicator", viewModel,
    "ShowTypingIndicator", true, DataSourceUpdateMode.OnPropertyChanged);

sfAIAssistView1.TypingIndicator.Author = new Author
{
    Name = "Bot",
    AvatarImage = Image.FromFile(@"Assets\bot.png")
};
sfAIAssistView1.TypingIndicator.DisplayText = "Typing";

Pattern 3: Custom Banner

BannerStyle customStyle = new BannerStyle
{
    TitleFont = new Font("Segoe UI", 14F, FontStyle.Bold),
    SubTitleFont = new Font("Segoe UI", 12F, FontStyle.Italic),
    ImageSize = AvatarSize.Medium,
    SubTitleColor = Color.Gray,
    TitleColor = Color.DarkBlue
};

string title = "AI Assistant";
string subTitle = "Powered by OpenAI";
sfAIAssistView1.SetBannerView(title, subTitle,
    Image.FromFile(@"Assets\ai-icon.png"), customStyle);

Pattern 4: Prompt Validation

sfAIAssistView1.PromptRequest += (sender, e) =>
{
    var message = e.Message as TextMessage;
    if (message == null) return;

    // Validate input
    if (string.IsNullOrWhiteSpace(message.Text))
    {
        e.Handled = true; // Prevent adding to messages
        MessageBox.Show("Please enter a message.");
        return;
    }

    // Custom processing
    LogUserInput(message.Text);
};

Key Properties and Methods

Property/MethodTypeDescription
MessagesObservableCollectionChat message collection
SuggestionsIEnumerableResponse suggestion items
ShowTypingIndicatorboolShows/hides typing indicator
TypingIndicatorTypingIndicatorTyping indicator configuration
UserAuthorCurrent user information
SetBannerView()MethodCustomize banner appearance
SetBotView()MethodSet custom bot message view
SetUserView()MethodSet custom user message view
PromptRequestEventFires when user submits prompt

Common Use Cases

Use Case 1: Customer Support Chatbot

Build an AI-powered customer support interface with suggestion chips for common questions and typing indicators during response generation.

Use Case 2: Virtual Assistant

Create an intelligent desktop assistant with custom branded banner, personalized bot responses, and OpenAI integration for natural conversations.

Use Case 3: Interactive Documentation

Implement a conversational documentation browser where users ask questions about software features and receive AI-generated explanations.

Use Case 4: Training Simulator

Build interactive training applications where AI guides users through procedures with step-by-step conversational instructions.

Installation

Install-Package Syncfusion.SfAIAssistView.WinForms

For OpenAI integration:

Install-Package Microsoft.SemanticKernel

Troubleshooting

Messages not displaying:

  • Verify data binding is set correctly
  • Ensure ObservableCollection is used (not List)
  • Check that RaisePropertyChanged is called on collection updates

Typing indicator not showing:

  • Set ShowTypingIndicator = true before async operation
  • Configure TypingIndicator.Author property
  • Ensure binding is established for ShowTypingIndicator

Suggestions not appearing:

  • Bind Suggestions property to ViewModel
  • Use IEnumerable type
  • Update suggestions after bot responses

OpenAI connection issues:

  • Verify API key is valid and not expired
  • Check API endpoint URL is correct
  • Ensure Microsoft.SemanticKernel NuGet is installed
  • Confirm network connectivity

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.83%
按下载量换算97

Claude

28%
按下载量换算74

Cursor

16.73%
按下载量换算44

Gemini CLI

8.45%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills