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

syncfusion-winforms-tooltip同步融合 winforms 工具提示

Agent Skill

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

总安装

247

周安装

10

GitHub Stars

1

下载量

78
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-winforms-tooltip 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion Windows Forms Tooltips

The Syncfusion SfToolTip component provides rich tooltip functionality for Windows Forms applications, appearing automatically as a popup when the user hovers over a control. It supports multiple tooltip items, custom controls, images, and extensive appearance customization.

When to Use This Skill

Use this skill when you need to:

  • Add tooltips to Windows Forms controls with basic or advanced content
  • Display multi-item tooltips with multiple lines of information or sections
  • Show balloon-style tooltips with beaks pointing to controls
  • Customize tooltip appearance with colors, borders, gradients, images
  • Host custom controls inside tooltips for rich interactive content
  • Programmatically control tooltip display timing and positioning
  • Implement contextual help with hover-based information panels
  • Support RTL layouts for internationalized applications
  • Create custom-drawn tooltips with specialized rendering

Component Overview

The SfToolTip component offers:

  • Multiple items: Add multiple tooltip items with individual styling
  • Custom controls: Host any user control in tooltip items
  • Rich content: Text, images, gradients, and separators
  • Balloon style: Display tooltips with directional beaks
  • Appearance: Extensive customization (colors, fonts, borders, shadows)
  • Events: Control display behavior and custom drawing
  • Programmatic control: Show/hide tooltips on demand

Comparison: Choose SfToolTip over SuperToolTip when you need multi-item support, individual tooltip item customization, or custom control hosting. SfToolTip offers richer styling and flexibility.

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When implementing basic tooltips:

  • Assembly deployment and required dependencies
  • Setting tooltips using simple text (designer and code)
  • Setting tooltips using ToolTipInfo for structured content
  • Programmatically showing and hiding tooltips
  • Configuring tooltip delay times (InitialDelay, AutoPopDelay)
  • Basic balloon style setup

Tooltip Items and Content

📄 Read: references/tooltip-items-and-content.md

When working with tooltip content structure:

  • Creating and configuring ToolTipItem objects
  • Adding multiple items to a single tooltip
  • Configuring spacing and padding between items
  • Adding images using Image or ImageList properties
  • Setting image alignment (Left, Top, Right)
  • Configuring image size and spacing
  • Hosting custom user controls in tooltips

Balloon Style and Beak

📄 Read: references/balloon-style-and-beak.md

When implementing balloon-style tooltips:

  • Enabling ToolTipStyle.Balloon
  • Understanding balloon vs rectangle styles
  • Customizing beak back color
  • Positioning balloons relative to controls
  • Use cases for balloon-style tooltips

Appearance Customization

📄 Read: references/appearance-customization.md

When customizing tooltip visual appearance:

  • Border color and thickness
  • Individual ToolTipItem styling (colors, fonts, alignment)
  • Gradient background implementation
  • Separator customization between items
  • Shadow effects
  • RTL (Right-to-Left) layout support

Advanced Usage and Events

📄 Read: references/advanced-usage.md

When implementing advanced tooltip features:

  • Getting and setting tooltip text/info programmatically
  • Using ToolTipShowing event for conditional display
  • Customizing appearance per control dynamically
  • Changing tooltip location before display
  • Setting minimum and maximum widths
  • Custom drawing with DrawToolTipItem event
  • Canceling default rendering

Quick Start

Basic Tooltip with Text

using Syncfusion.Windows.Forms;

// Add SfToolTip component to form
SfToolTip sfToolTip1 = new SfToolTip();

// Set simple text tooltip
sfToolTip1.SetToolTip(this.button1, "Click to submit the form");

Tooltip with Multiple Items

using Syncfusion.Windows.Forms;
using Syncfusion.WinForms.Controls;

SfToolTip sfToolTip1 = new SfToolTip();

// Create ToolTipInfo with multiple items
ToolTipInfo toolTipInfo = new ToolTipInfo();

ToolTipItem item1 = new ToolTipItem();
item1.Text = "User Information";
item1.Style.Font = new Font("Arial", 10f, FontStyle.Bold);

ToolTipItem item2 = new ToolTipItem();
item2.Text = "Name: John Doe\nEmail: john@example.com";

toolTipInfo.Items.AddRange(new ToolTipItem[] { item1, item2 });
sfToolTip1.SetToolTipInfo(this.button1, toolTipInfo);

Balloon Style Tooltip with Image

SfToolTip sfToolTip1 = new SfToolTip();

ToolTipInfo toolTipInfo = new ToolTipInfo();
toolTipInfo.ToolTipStyle = ToolTipStyle.Balloon;
toolTipInfo.BeakBackColor = Color.LightSkyBlue;

ToolTipItem toolTipItem = new ToolTipItem();
toolTipItem.Text = "David Carter\nPhone: +1 919.494.1974\nEmail: david@syncfusion.com";
toolTipItem.Image = Properties.Resources.UserImage;
toolTipItem.Style.ImageSize = new Size(80, 80);
toolTipItem.Style.ImageAlignment = ToolTipImageAlignment.Left;

toolTipInfo.Items.Add(toolTipItem);
sfToolTip1.SetToolTipInfo(this.button1, toolTipInfo);

Common Patterns

Pattern 1: Rich Formatted Tooltip with Gradient

ToolTipInfo toolTipInfo = new ToolTipInfo();
toolTipInfo.BorderColor = Color.DarkGray;
toolTipInfo.BorderThickness = 2;

ToolTipItem toolTipItem = new ToolTipItem();
toolTipItem.Text = "Important Information";
toolTipItem.EnableGradientBackground = true;
toolTipItem.Style.GradientBrush = new BrushInfo(
    GradientStyle.Horizontal,
    new Color[] { Color.LightBlue, Color.LightGreen }
);
toolTipItem.Style.Font = new Font("Arial", 10f, FontStyle.Bold);
toolTipItem.Style.ForeColor = Color.DarkBlue;

toolTipInfo.Items.Add(toolTipItem);
sfToolTip1.SetToolTipInfo(this.control, toolTipInfo);

Pattern 2: Conditional Tooltip Display

sfToolTip1.ToolTipShowing += (sender, e) =>
{
    // Customize tooltip based on control state
    if (e.Control is Button button && !button.Enabled)
    {
        e.Cancel = true; // Don't show tooltip for disabled controls
    }

    // Or modify appearance dynamically
    if (e.Control.Tag?.ToString() == "Warning")
    {
        e.ToolTipInfo.Items[0].Style.BackColor = Color.LightCoral;
        e.ToolTipInfo.BorderColor = Color.Red;
    }
};

Pattern 3: Programmatic Tooltip Display

// Show tooltip at specific location
Point location = new Point(300, 200);
sfToolTip1.Show("Processing complete!", location);

// Show tooltip at cursor position with duration
ToolTipInfo info = new ToolTipInfo();
ToolTipItem item = new ToolTipItem { Text = "Operation successful!" };
info.Items.Add(item);
sfToolTip1.Show(info);

// Hide after delay
await Task.Delay(3000);
sfToolTip1.Hide();

Pattern 4: Custom Control in Tooltip

// Create custom control (e.g., PictureBox with animated GIF)
PictureBox pictureBox = new PictureBox();
pictureBox.Image = Image.FromFile("loading.gif");
pictureBox.SizeMode = PictureBoxSizeMode.CenterImage;
pictureBox.Size = new Size(200, 100);

ToolTipInfo toolTipInfo = new ToolTipInfo();
ToolTipItem toolTipItem = new ToolTipItem();
toolTipItem.Control = pictureBox;

toolTipInfo.Items.Add(toolTipItem);
sfToolTip1.SetToolTipInfo(this.button1, toolTipInfo);

Key Properties

SfToolTip Properties

PropertyTypeDescription
InitialDelayintDelay before tooltip appears (milliseconds, default: 0)
AutoPopDelayintDuration tooltip remains visible (milliseconds, default: 5000)
ShadowVisibleboolEnable shadow effect on tooltip

ToolTipInfo Properties

PropertyTypeDescription
ItemsToolTipItemCollectionCollection of tooltip items to display
ToolTipStyleToolTipStyleRectangle (default) or Balloon style
BeakBackColorColorBackground color of balloon beak
BorderColorColorBorder color of tooltip
BorderThicknessintBorder thickness in pixels
MinWidthintMinimum tooltip width
MaxWidthintMaximum tooltip width
RightToLeftRightToLeftRTL layout support

ToolTipItem Properties

PropertyTypeDescription
TextstringTooltip item text content
ImageImageImage to display in item
ImageListImageListImageList for multiple images
ImageIndexintIndex when using ImageList
ControlControlCustom control to host in item
EnableSeparatorboolShow separator line after item
EnableGradientBackgroundboolEnable gradient background
PaddingPaddingSpacing around item content
StyleToolTipStyleInfoComprehensive styling options

ToolTipStyleInfo (Style) Properties

PropertyTypeDescription
BackColorColorBackground color
ForeColorColorText color
FontFontText font
TextAlignmentContentAlignmentText alignment (MiddleLeft, etc.)
ImageAlignmentToolTipImageAlignmentImage position (Left, Top, Right)
ImageSizeSizeFixed image dimensions
ImageToTextOffsetintSpacing between image and text
GradientBrushBrushInfoGradient configuration
SeparatorColorColorSeparator line color
SeparatorStyleDashStyleSeparator line style

Common Use Cases

  1. Form Field Help: Add descriptive tooltips to form controls explaining expected input
  2. Button Actions: Display action descriptions for toolbar buttons and icons
  3. Status Information: Show detailed status for status bar items or indicators
  4. User Profiles: Display rich profile cards with images on hover
  5. Data Validation: Show validation rules or error details on validation controls
  6. Dashboard Widgets: Provide detailed metrics in chart or widget tooltips
  7. Disabled Controls: Explain why a control is disabled and when it becomes available
  8. Progress Indicators: Show detailed progress information on hover
  9. Icon Tray Applications: Display application status in system tray tooltips
  10. Multi-language Support: Show translations or additional context with RTL support

Events

EventDescriptionUse Case
ToolTipShowingFires before tooltip displaysCustomize appearance per control, cancel display conditionally, adjust location
DrawToolTipItemFires during tooltip renderingImplement custom drawing, override default appearance

Assembly Dependencies

Required Assembly:

  • Syncfusion.Core.WinForms.dll and Syncfusion.Shared.Base

NuGet Package:

  • Syncfusion.Core.WinForms

Best Practices

  1. Keep tooltips concise: Users read tooltips quickly; provide essential information only
  2. Use balloon style sparingly: Balloon tooltips draw more attention; use for important hints
  3. Avoid redundancy: Don't repeat control labels verbatim in tooltips
  4. Consider timing: Adjust InitialDelay and AutoPopDelay based on content complexity
  5. Accessibility: Ensure tooltip text is readable with sufficient color contrast
  6. Performance: Avoid complex custom controls in tooltips for frequently-hovered controls
  7. Test RTL layouts: Verify tooltip appearance in right-to-left language configurations

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.54%
按下载量换算29

Claude

27.32%
按下载量换算21

Cursor

19.01%
按下载量换算15

Gemini CLI

9.78%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills