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

syncfusion-winforms-range-slider同步融合 winforms 范围滑块

Agent Skill

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

总安装

774

周安装

31

GitHub Stars

1

下载量

250
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

Syncfusion WinForms 范围滑块控件,允许用户在一个区间内选择最小值和最大值。

  • 典型应用于价格筛选、时间跨度设定、温度控制等双边界值调整场景。
  • 支持离散/连续模式、标签显示、Tooltip 提示及键盘导航操作。
  • 使用前应检查 Syncfusion 版本是否支持该特性,部分高级样式可能需要付费组件包。
  • 在数据密集型场景中建议限制实时回调频率,以提升整体响应流畅度。

SKILL.md

Implementing Syncfusion Windows Forms Range Slider

Complete guide for implementing the RangeSlider control in Windows Forms applications. The RangeSlider is a flexible UI component that enables value-range selection with dual thumb controls, allowing users to select from a range of values by moving thumbs along a track.

When to Use This Skill

Use this skill when you need to:

  • Create range selection UI with dual thumbs for minimum and maximum values
  • Configure range bounds with minimum and maximum properties
  • Customize visual appearance with colors, sizes, and tick displays
  • Set initial slider positions using SliderMin and SliderMax properties
  • Handle range selection events for user interactions
  • Support different orientations (horizontal or vertical layouts)
  • Add interactive range controls to Windows Forms applications

Component Overview

The RangeSlider control features:

  • Dual thumb controls for independent minimum/maximum selection
  • Configurable range bounds from Minimum to Maximum properties
  • Color customization for channel, range, and thumb elements
  • Tick display with configurable frequency
  • Horizontal and vertical orientations for flexible layout
  • Event handling for scroll and value change interactions
  • Visual highlighting of selected range between thumbs

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet installation
  • Adding via designer
  • Adding via code (C# and VB.NET examples)
  • Basic configuration with minimum/maximum values

Value Configuration

📄 Read: references/value-configuration.md

  • Setting SliderMin and SliderMax positions
  • Configuring Minimum and Maximum bounds
  • Understanding Range property
  • Practical value setup examples

Interactive Features

📄 Read: references/interactive-features.md

  • Channel color and height customization
  • Range color highlighting
  • Thumb color configuration
  • Slider size adjustment
  • Tick display and frequency control
  • Event handling (Scroll and ValueChanged events)

Layout and Orientation

📄 Read: references/layout-orientation.md

  • Horizontal vs vertical orientation
  • Right-to-left (RTL) support
  • Orientation property usage
  • Layout considerations and best practices

Quick Start Example

Here's a minimal example to get started with RangeSlider:

using Syncfusion.Windows.Forms.Tools;
using System.Windows.Forms;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        // Create RangeSlider instance
        RangeSlider rangeSlider = new RangeSlider();

        // Configure range bounds
        rangeSlider.Minimum = 0;
        rangeSlider.Maximum = 100;

        // Set initial thumb positions
        rangeSlider.SliderMin = 20;
        rangeSlider.SliderMax = 80;

        // Show value labels
        rangeSlider.ShowLabels = true;

        // Display ticks
        rangeSlider.ShowTicks = true;
        rangeSlider.TickFrequency = 10;

        // Add to form
        this.Controls.Add(rangeSlider);
    }
}

Common Patterns

Pattern 1: Price Range Filter

Create a price range selector with custom formatting:

rangeSlider.Minimum = 0;
rangeSlider.Maximum = 1000;
rangeSlider.SliderMin = 100;
rangeSlider.SliderMax = 900;

rangeSlider.ValueChanged += (s, e) =>
{
    decimal minPrice = rangeSlider.SliderMin;
    decimal maxPrice = rangeSlider.SliderMax;
    // Update product list based on price range
};

Pattern 2: Custom Visual Styling

Customize colors for visual feedback:

// Set distinct colors for visual hierarchy
rangeSlider.ChannelColor = Color.LightGray;      // Background track
rangeSlider.RangeColor = Color.DarkGreen;        // Selected range
rangeSlider.ThumbColor = Color.Green;            // Thumb controls

// Adjust sizing
rangeSlider.ChannelHeight = 6;
rangeSlider.SliderSize = new Size(12, 18);

Pattern 3: Vertical Layout

Create vertical range sliders for specific layouts:

rangeSlider.Orientation = Orientation.Vertical;
rangeSlider.Height = 300;  // Sufficient height for vertical orientation
rangeSlider.Width = 50;    // Narrower for vertical

Pattern 4: Event-Driven Updates

Handle user interactions with events:

rangeSlider.Scroll += (s, e) =>
{
    // Called while user is dragging
    UpdatePreview();
};

rangeSlider.ValueChanged += (s, e) =>
{
    // Called after value change completes
    UpdateData();
};

Key Properties Reference

PropertyTypePurpose
MinimumintDefines the lower bound of range
MaximumintDefines the upper bound of range
SliderMinintPosition of left/top thumb (current minimum)
SliderMaxintPosition of right/bottom thumb (current maximum)
Rangerange structureGets current selected range
ChannelColorColorBackground track color
RangeColorColorHighlighted selected range color
ThumbColorColorThumb control color
ChannelHeightintHeight of track in pixels
SliderSizeSizeDimensions of thumb controls
ShowTicksboolDisplay tick marks
TickFrequencyintInterval between ticks
OrientationOrientationHorizontal or Vertical layout
ShowLabelsboolDisplay value labels
RightToLeftRightToLeftRTL layout support

Design Patterns

Responsive Range Selection

Create controls that adapt to user needs:

public void ConfigureRangeSlider(int dataMin, int dataMax, int defaultMin, int defaultMax)
{
    rangeSlider.Minimum = dataMin;
    rangeSlider.Maximum = dataMax;
    rangeSlider.SliderMin = defaultMin;
    rangeSlider.SliderMax = defaultMax;

    // Calculate appropriate tick frequency
    int range = dataMax - dataMin;
    rangeSlider.TickFrequency = range > 1000 ? 100 : range > 100 ? 10 : 1;
}

Validation Pattern

Ensure valid range selections:

rangeSlider.ValueChanged += (s, e) =>
{
    if (rangeSlider.SliderMin > rangeSlider.SliderMax)
    {
        // Swap if needed
        int temp = rangeSlider.SliderMin;
        rangeSlider.SliderMin = rangeSlider.SliderMax;
        rangeSlider.SliderMax = temp;
    }
};

Common Use Cases

Price Range Filtering

Enable users to filter products by selecting a price range, commonly used in e-commerce applications.

Date Range Selection

Create date range pickers by mapping slider values to date ranges for filtering historical data.

Parameter Calibration

Allow configuration of minimum and maximum parameters in scientific or industrial applications.

Volume Control

Use range sliders for audio applications to set volume range or frequency bands.

Data Analysis

Filter large datasets by selecting value ranges for visualization and analysis.

Best Practices

  1. Set clear bounds - Always define Minimum and Maximum before adding to form
  2. Provide visual feedback - Use colors to indicate selected range clearly
  3. Display ticks and labels - Help users understand scale and current values
  4. Handle both events - Use Scroll for preview, ValueChanged for final updates
  5. Responsive design - Adjust TickFrequency based on range size
  6. Consider orientation - Choose horizontal for compact layouts, vertical for specialized UIs

Next Steps: Read the appropriate reference guide from the Navigation Guide above based on your specific implementation needs.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.13%
按下载量换算90

Claude

27.69%
按下载量换算69

Cursor

17.76%
按下载量换算44

Gemini CLI

8.56%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills