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

syncfusion-winforms-rating同步融合 winforms 评级

Agent Skill

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

总安装

682

周安装

29

GitHub Stars

1

下载量

239
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

Syncfusion WinForms 评级控件,用于收集用户对内容、服务或产品的星级评价。

  • 常见于电商评论、应用商店评分、问卷调查等需要直观反馈的场合。
  • 支持半星评分、只读/可编辑模式、自定义图标及本地化文本。
  • 需确认项目是否已集成 Syncfusion 基础 UI 库,否则可能无法正常渲染控件。
  • 注意无障碍访问支持,确保屏幕阅读器能正确识别评分状态与等级信息。

SKILL.md

Implementing Syncfusion WinForms Rating Control

The Rating Control provides an intuitive visual rating experience that allows users to select a number of stars (or other shapes) to represent a rating value. This control is ideal for user feedback, product reviews, quality ratings, and any scenario requiring visual rating input.

When to Use This Skill

Use this skill when the user needs to:

  • Star Rating Systems: Product ratings, reviews, user feedback with 1-5 stars
  • Custom Rating Shapes: Hearts for favorites, diamonds for quality, circles for simplicity
  • Half-Star Ratings: Fine-grained precision (3.5 stars, 4.5 stars) for detailed feedback
  • Feedback Forms: Customer satisfaction, service quality, experience ratings
  • Review Interfaces: Movie ratings, book reviews, app store ratings
  • Rating Display: Show read-only ratings or interactive rating input
  • Themed Rating Controls: Office 2007/2010/2016 styles with consistent UI appearance
  • Vertical/Horizontal Layouts: Adapt rating orientation to form design

Component Overview

RatingControl (Syncfusion.Windows.Forms.Tools.RatingControl) is a versatile rating input control supporting:

  • 6 Built-in Shapes: Star, Circle, Triangle, Heart, Diamond, Kite
  • Custom Images: Use your own image assets for unique rating indicators
  • Precision Modes: Standard (full shapes) or Half (half-shape granularity)
  • Office Themes: Office2007, Office2010, Office2016 (Colorful, DarkGray, White, Black), Metro
  • Flexible Orientation: Horizontal or Vertical layout
  • Tooltip Support: Display additional information on hover
  • Custom Styling: Gradient colors, highlight/selection colors, border customization

Key Namespace: Syncfusion.Windows.Forms.Tools

Assembly: Syncfusion.Tools.Windows.dll (and dependencies)


Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: User needs to install, configure, or create their first Rating control.

Topics covered:

  • Assembly deployment and NuGet package installation
  • Adding Rating control via designer (toolbox)
  • Adding Rating control via code
  • Setting rating values with the Value property
  • Built-in shapes quick overview
  • Basic implementation examples

Shapes and Customization

📄 Read: references/shapes-and-customization.md

When to read: User wants built-in shapes (star, heart, circle) or needs custom image-based rating indicators.

Topics covered:

  • 6 Built-in shapes: Star, Circle, Triangle, Heart, Diamond, Kite
  • Changing shapes with the Shape property
  • Custom image shapes using CustomImageCollection
  • NormalImage, HoverImage, SelectedImage configuration
  • Custom image fallback behavior
  • Half-image support for precision modes

Precision and Values

📄 Read: references/precision-and-values.md

When to read: User needs half-star ratings (3.5 stars) or wants to control rating granularity.

Topics covered:

  • Precision modes: Standard vs Half
  • Half-star/half-shape rating configuration
  • Value property for setting and retrieving ratings
  • Precision with built-in shapes
  • Precision with custom images (requires half-images)
  • Rating value ranges and increments

Styling and Appearance

📄 Read: references/styling-and-appearance.md

When to read: User wants Office themes, custom colors, gradient effects, or visual style customization.

Topics covered:

  • Visual styles: Default, Office2007, Office2010, Metro
  • Office2016 variants: Colorful, DarkGray, White, Black
  • OfficeColorScheme property (Blue, Silver, Black)
  • Custom gradient coloring with ApplyGradientColors
  • ItemHighlight and ItemSelection color properties
  • BackColor and BorderColor customization

Orientation and Tooltips

📄 Read: references/orientation-and-tooltips.md

When to read: User needs vertical rating layout or wants tooltips on rating items.

Topics covered:

  • Horizontal and Vertical orientation modes
  • Orientation property configuration
  • Tooltip enablement with ShowTooltip
  • Tooltip appearance customization
  • Layout considerations for vertical ratings

Quick Start Example

Basic Star Rating (5 Stars)

using Syncfusion.Windows.Forms.Tools;

// Create rating control
RatingControl productRating = new RatingControl();
productRating.Location = new Point(20, 20);
productRating.Size = new Size(150, 30);

// Set initial value (3 out of 5 stars)
productRating.Value = 3;

// Add to form
this.Controls.Add(productRating);

Half-Star Precision Rating

// Enable half-star precision
RatingControl preciseRating = new RatingControl();
preciseRating.Precision = PrecisionMode.Half;
preciseRating.Value = 3.5f; // 3.5 stars

Custom Shape (Hearts for Favorites)

// Use heart shapes instead of stars
RatingControl favoriteRating = new RatingControl();
favoriteRating.Shape = Shapes.Heart;
favoriteRating.Value = 4;

Office 2016 Themed Rating

// Apply Office 2016 Colorful theme
RatingControl themedRating = new RatingControl();
themedRating.VisualStyle  = RatingControl.Style.Office2016Colorful;
themedRating.Value = 5;

Common Patterns

Product Review Rating (Read-Only Display)

// Display average rating (read-only)
RatingControl avgRating = new RatingControl();
avgRating.Value = 4.5f;
avgRating.Precision = PrecisionMode.Half;
avgRating.Enabled = false; // Read-only

When to use: Displaying aggregated ratings on product listings.

Interactive Feedback Form

// User can select rating
RatingControl feedbackRating = new RatingControl();
feedbackRating.Value = 0; // No initial selection
feedbackRating.Precision = PrecisionMode.Half;

// Handle rating changes
feedbackRating.RatingChanged  += (s, e) => {
    float rating = feedbackRating.Value;
    MessageBox.Show($"User rated: {rating} stars");
};

When to use: Customer feedback forms, surveys, review submission.

Vertical Rating Layout

// Vertical orientation for sidebar layouts
RatingControl verticalRating = new RatingControl();
verticalRating.Orientation = Orientationmode.Vertical;
verticalRating.Size = new Size(50, 200);
verticalRating.Value = 3;

When to use: Sidebar designs, narrow column layouts.

Custom Color Gradient Rating

// Custom gradient colors (green to yellow)
RatingControl customRating = new RatingControl();
customRating.ApplyGradientColors = true;
customRating.ItemHighlightStartColor = Color.Green;
customRating.ItemHighlightEndColor = Color.YellowGreen;
customRating.ItemSelectionStartColor = Color.Gold;
customRating.ItemSelectionEndColor = Color.Orange;
customRating.Value = 4;

When to use: Branded color schemes, matching application themes.

Custom Image Rating

// Use custom images for rating
RatingControl customImageRating = new RatingControl();
customImageRating.Shape = Shapes.CustomImages;

CustomImageCollection images = new CustomImageCollection();
images.NormalImage = Properties.Resources.rating_normal;
images.HoverImage = Properties.Resources.rating_hover;
images.SelectedImage = Properties.Resources.rating_selected;

customImageRating.Images = images;
customImageRating.Value = 3;

When to use: Unique branding, custom icons, non-standard rating indicators.


Key Properties

Core Properties

PropertyTypeDescriptionWhen to Use
ValuefloatCurrent rating value (0 to number of items)Set/get rating selection
PrecisionPrecisionModeStandard or Half precisionEnable half-star ratings
ShapeShapesStar, Circle, Triangle, Heart, Diamond, Kite, CustomImagesChange rating indicator shape
OrientationOrientationmodeHorizontal or VerticalVertical layout for sidebars
ShowTooltipboolEnable tooltips on rating itemsShow rating values on hover

Styling Properties

PropertyTypeDescriptionWhen to Use
VisualStyleRatingControl.StyleVisual style (Office2007/2010/2016, Metro)Apply Office themes
OfficeColorSchemeOfficeColorSchemesBlue, Silver, Black color schemeOffice theme color variants
ApplyGradientColorsboolEnable gradient color propertiesCustom gradient effects
ItemHighlightColorColorHover state colorCustom hover appearance
ItemSelectionColorColorSelected state colorCustom selection appearance

Custom Image Properties

PropertyTypeDescriptionWhen to Use
ImagesCustomImageCollectionCustom image collectionUse custom rating images
Images.NormalImageImageUnselected state imageCustom default appearance
Images.HoverImageImageHover state imageCustom hover appearance
Images.SelectedImageImageSelected state imageCustom selected appearance

Common Use Cases

1. Product Rating Display

Scenario: E-commerce product listing with average ratings.

  • Use Value to display average (e.g., 4.3 stars)
  • Set Precision = PrecisionMode.Half for accurate display
  • Set Enabled = false for read-only
  • Read: precision-and-values.md

2. Customer Feedback Form

Scenario: Service quality rating in feedback form.

3. Multi-Criteria Rating

Scenario: Rate multiple aspects (Quality, Service, Value).

  • Create multiple RatingControl instances
  • Use descriptive labels for each rating
  • Consistent shape and style across all ratings
  • Read: shapes-and-customization.md

4. Favorite/Like System

Scenario: Heart-based favorites (1-5 hearts).

5. Branded Rating UI

Scenario: Custom images matching brand identity.

  • Use Shape = Shapes.CustomImages
  • Provide NormalImage, HoverImage, SelectedImage
  • Include HalfImages for precision support
  • Read: shapes-and-customization.md

6. Vertical Rating Sidebar

Scenario: Sidebar with vertical rating display.

  • Set Orientation = Orientationmode.Vertical
  • Adjust Size for vertical layout
  • Use tooltips for value display
  • Read: orientation-and-tooltips.md

Events

RatingChanged: Raised when the rating value changes (user interaction).

ratingControl1.RatingChanged  += (sender, e) => {
    float newRating = ratingControl1.Value;
    // Process rating change
};

Best Practices

  1. Precision for Averages: Use PrecisionMode.Half when displaying aggregated ratings (4.5 stars)
  2. Read-Only Display: Set Enabled = false for non-interactive rating displays
  3. Consistent Shapes: Use the same shape across related rating controls
  4. Tooltips for Clarity: Enable ShowTooltip to show numeric values
  5. Custom Images: Provide all image states (Normal, Hover, Selected, HalfNormal, HalfSelected) for complete custom experience
  6. Theme Consistency: Match rating style to application theme (Office2016 variants)
  7. Value Initialization: Set Value = 0 for new ratings, specific value for defaults

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.86%
按下载量换算86

Claude

31.11%
按下载量换算74

Cursor

19.39%
按下载量换算46

Gemini CLI

9.57%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills