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

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

Agent Skill

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

总安装

1,001

周安装

43

GitHub Stars

2

下载量

351
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

  • 适合围绕仓库状态、代码变更或协作事项进行整理与分析。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-wpf-range-slider 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF Range Slider

The Syncfusion WPF Range Slider (SfRangeSlider) is a versatile control that allows users to select a value or range of values within a defined minimum and maximum limit. It supports dual thumb selection, tick marks, labels, tooltips, customization, touch/gesture support, and various orientation options.

When to Use This Skill

Use this skill when users need to:

  • Implement a range slider control in WPF applications
  • Allow users to select a value range with dual thumbs
  • Create sliders with tick marks and snapping behavior
  • Display value labels or custom labels on sliders
  • Show tooltips with formatted values
  • Customize slider appearance (thumbs, tracks, ticks)
  • Handle range selection with validation (ThumbInterval)
  • Support touch and gesture-based interactions
  • Implement vertical or reversed-direction sliders
  • Respond to range value changes with

Component Overview

The SfRangeSlider provides:

  • Single or Dual Thumb Selection - Select a single value or a range with two thumbs
  • Tick Marks - Major and minor ticks with snapping behavior
  • Custom Labels - Value labels and custom label support
  • Tooltips - Customizable tooltips showing current values
  • Orientation - Horizontal or vertical layout with direction reversal
  • Touch & Gestures - Full touch support and keyboard/mouse gestures
  • Customization - Complete styling control for all visual elements
  • Events - Range change notifications and label customization hooks

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Package installation and setup
  • Basic range slider implementation
  • Setting minimum and maximum values
  • Initial range configuration
  • Theme and CSS integration

Range Selection Features

📄 Read: references/range-selection.md

  • RangeStart and RangeEnd properties
  • ShowRange property for dual thumb mode
  • AllowRangeDrag for dragging entire range
  • ThumbInterval for minimum thumb spacing
  • Single vs dual thumb selection modes
  • Range value data binding

Ticks and Snapping Behavior

📄 Read: references/ticks-and-snapping.md

  • TickFrequency and MinorTickFrequency
  • TickPlacement options (TopLeft, BottomRight, None)
  • SnapsTo behavior (Ticks, StepFrequency, None)
  • StepFrequency for incremental values
  • Tick visualization and customization
  • Snapping behavior examples

Labels and Value Display

📄 Read: references/labels.md

  • ShowValueLabels and ShowCustomLabels
  • LabelPlacement options
  • LabelOrientation (horizontal/vertical)
  • ValuePlacement for value positioning
  • CustomLabels collection
  • LabelLoaded event for dynamic customization
  • Label formatting examples

Tooltips and Value Display

📄 Read: references/tooltips.md

  • ThumbToolTipPlacement (TopLeft, BottomRight, None)
  • ThumbToolTipPrecision for decimal places
  • ToolTipFormat for value formatting
  • ToolTipDisplayMode (Always, OnFocus)
  • ToolTipStyle for custom appearance
  • Advanced tooltip customization

Intermediate Values

📄 Read: references/intermediate-values.md

  • IntermediateValue property
  • IntermediateRangeStart and IntermediateRangeEnd
  • Use cases for intermediate indicators
  • Visual representation examples

Customization and Styling

📄 Read: references/customization.md

  • ThumbStyle customization
  • ActiveTrackStyle and InactiveTrackStyle
  • Tick styling (stroke, length, thickness)
  • Minor tick customization
  • Complete visual styling examples
  • Theme integration

Orientation and Direction

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

  • Orientation property (Horizontal, Vertical)
  • IsDirectionReversed property
  • Visual behavior differences
  • Layout considerations
  • RTL support

Gestures and Interaction

📄 Read: references/gestures-and-interaction.md

  • MoveToPoint for tap/click navigation
  • Touch support capabilities
  • Keyboard gestures (arrow keys, page up/down, home/end)
  • Mouse gestures
  • Accessibility features

Events and Event Handlers

📄 Read: references/events.md

  • RangeChanged event
  • RangeStartChanged event
  • RangeEndChanged event
  • LabelLoaded event
  • Event handler examples (XAML and C#)

Quick Start Example

Basic Range Slider

<Window x:Class="RangeSliderDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:editors="clr-namespace:Syncfusion.Windows.Controls.Input;assembly=Syncfusion.SfInput.Wpf">

    <Grid>
        <!-- Basic Range Slider -->
        <editors:SfRangeSlider
            Width="400"
            Minimum="0"
            Maximum="100"
            RangeStart="20"
            RangeEnd="80"
            ShowRange="True"
            TickPlacement="BottomRight"
            TickFrequency="10"
            ShowValueLabels="True" />
    </Grid>
</Window>
using Syncfusion.Windows.Controls.Input;
using System.Windows;

namespace RangeSliderDemo
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            // Create range slider programmatically
            SfRangeSlider rangeSlider = new SfRangeSlider()
            {
                Width = 400,
                Minimum = 0,
                Maximum = 100,
                RangeStart = 20,
                RangeEnd = 80,
                ShowRange = true,
                TickPlacement = TickPlacement.BottomRight,
                TickFrequency = 10,
                ShowValueLabels = true
            };

            // Add to container
            this.Content = rangeSlider;
        }
    }
}

Common Patterns

Pattern 1: Price Range Filter

<!-- Price range selector with currency formatting -->
<editors:SfRangeSlider
    Width="350"
    Minimum="0"
    Maximum="1000"
    RangeStart="100"
    RangeEnd="500"
    ShowRange="True"
    TickFrequency="100"
    TickPlacement="BottomRight"
    ShowValueLabels="True"
    ToolTipFormat="C0"
    ThumbToolTipPlacement="TopLeft"
    SnapsTo="Ticks"
    RangeChanged="PriceRangeSlider_RangeChanged" />

Pattern 2: Volume Control with Fine Adjustment

<!-- Volume slider with minor ticks and snapping -->
<editors:SfRangeSlider
    Width="300"
    Minimum="0"
    Maximum="100"
    Value="50"
    TickFrequency="10"
    MinorTickFrequency="2"
    TickPlacement="BottomRight"
    SnapsTo="StepFrequency"
    StepFrequency="5"
    ShowValueLabels="True"
    ThumbToolTipPlacement="TopLeft"
    ToolTipFormat="N0" />

Pattern 3: Date Range Selector

<!-- Custom labels for date ranges -->
<editors:SfRangeSlider
    Width="450"
    Minimum="0"
    Maximum="11"
    RangeStart="2"
    RangeEnd="8"
    ShowRange="True"
    ShowCustomLabels="True"
    TickFrequency="1"
    TickPlacement="BottomRight"
    SnapsTo="Ticks">
    <editors:SfRangeSlider.CustomLabels>
        <editors:LabelItem Content="Jan" Position="0"/>
        <editors:LabelItem Content="Feb" Position="1"/>
        <editors:LabelItem Content="Mar" Position="2"/>
        <editors:LabelItem Content="Apr" Position="3"/>
        <editors:LabelItem Content="May" Position="4"/>
        <editors:LabelItem Content="Jun" Position="5"/>
        <editors:LabelItem Content="Jul" Position="6"/>
        <editors:LabelItem Content="Aug" Position="7"/>
        <editors:LabelItem Content="Sep" Position="8"/>
        <editors:LabelItem Content="Oct" Position="9"/>
        <editors:LabelItem Content="Nov" Position="10"/>
        <editors:LabelItem Content="Dec" Position="11"/>
    </editors:SfRangeSlider.CustomLabels>
</editors:SfRangeSlider>

Pattern 4: Vertical Temperature Slider

<!-- Vertical orientation with reversed direction -->
<editors:SfRangeSlider
    Height="300"
    Minimum="-10"
    Maximum="50"
    Value="22"
    Orientation="Vertical"
    TickFrequency="10"
    TickPlacement="TopLeft"
    ShowValueLabels="True"
    ThumbToolTipPlacement="TopLeft"
    ToolTipFormat="N0"
    IsDirectionReversed="False" />

Pattern 5: Styled Range Slider with Custom Colors

<Window.Resources>
    <!-- Custom thumb style -->
    <Style x:Key="CustomThumbStyle" TargetType="Thumb">
        <Setter Property="Width" Value="20"/>
        <Setter Property="Height" Value="20"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Ellipse Fill="#FF4CAF50"
                             Stroke="#FF2E7D32"
                             StrokeThickness="2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</Window.Resources>

<editors:SfRangeSlider
    Width="400"
    Minimum="0"
    Maximum="100"
    RangeStart="30"
    RangeEnd="70"
    ShowRange="True"
    ThumbStyle="{StaticResource CustomThumbStyle}"
    ActiveTickStroke="#FF4CAF50"
    TickStroke="#FFBDBDBD"
    TickPlacement="BottomRight"
    TickFrequency="10" />

Key Properties

Range and Values

  • Minimum - Minimum value of the slider (default: 0)
  • Maximum - Maximum value of the slider (default: 100)
  • RangeStart - Start value of the selected range
  • RangeEnd - End value of the selected range
  • ShowRange - Enable dual thumb mode for range selection
  • AllowRangeDrag - Allow dragging the entire selected range
  • ThumbInterval - Minimum spacing between thumbs

Ticks

  • TickFrequency - Interval between major ticks
  • MinorTickFrequency - Interval between minor ticks
  • TickPlacement - Position of ticks (TopLeft, BottomRight, None)
  • SnapsTo - Snap behavior (Ticks, StepFrequency, None)
  • StepFrequency - Increment value for snapping

Labels

  • ShowValueLabels - Display numeric value labels
  • ShowCustomLabels - Display custom labels
  • CustomLabels - Collection of custom label items
  • LabelPlacement - Position of labels
  • LabelOrientation - Orientation of label text
  • ValuePlacement - Position of value display

Tooltips

  • ThumbToolTipPlacement - Tooltip position (TopLeft, BottomRight, None)
  • ThumbToolTipPrecision - Decimal places in tooltip
  • ToolTipFormat - Format string for tooltip values
  • ToolTipDisplayMode - When to show tooltip (Always, OnFocus)
  • ToolTipStyle - Custom style for tooltips

Layout

  • Orientation - Horizontal or Vertical
  • IsDirectionReversed - Reverse the direction of values

Interaction

  • MoveToPoint - Move thumb to clicked/tapped position

Styling

  • ThumbStyle - Custom style for thumb controls
  • ActiveTrackStyle - Style for active track region
  • InactiveTrackStyle - Style for inactive track region
  • ActiveTickStroke - Color for active ticks
  • TickStroke - Color for ticks

Events

RangeChanged

Triggered when RangeStart or RangeEnd values change. Provides old and new values for both start and end.

RangeStartChanged

Triggered when RangeStart value changes. Provides old and new start values.

RangeEndChanged

Triggered when RangeEnd value changes. Provides old and new end values.

LabelLoaded

Triggered when slider labels are created. Allows dynamic label content customization.

Common Use Cases

  1. Price Range Filters - E-commerce product filtering with min/max price selection
  2. Date Range Selection - Calendar or timeline range selection with custom labels
  3. Volume/Brightness Controls - Media players or system settings
  4. Temperature Controls - HVAC or scientific applications with vertical sliders
  5. Data Filtering - Analytics dashboards for data range selection
  6. Age Range Filters - Demographics or user profile filtering
  7. Zoom Level Controls - Map or image zoom with precise increments
  8. Budget Allocation - Financial applications with range constraints
  9. Time Range Selection - Scheduling or timeline applications
  10. Measurement Ranges - Scientific or industrial applications

Best Practices

  1. Set appropriate TickFrequency - Match tick intervals to your data granularity
  2. Use SnapsTo for discrete values - Enable snapping for better UX with discrete data
  3. Format tooltips appropriately - Use ToolTipFormat to match your data type (currency, percentage, etc.)
  4. Consider ThumbInterval - Prevent invalid ranges by setting minimum thumb spacing
  5. Use CustomLabels for non-numeric data - Better UX for categorical or date-based ranges
  6. Handle RangeChanged events - Update dependent UI or validate range selections
  7. Choose appropriate orientation - Vertical sliders work well for height, temperature, volume
  8. Style consistently - Match thumb and track colors to your application theme
  9. Provide visual feedback - Use ShowRange and tooltips to show current selection
  10. Consider accessibility - Ensure keyboard navigation and screen reader support

Related Components

  • SfDateTimeRangeNavigator - For date/time range selection with charts
  • SfSlider - Single value slider (if dual thumb not needed)
  • NumericUpDown - For precise numeric input
  • DatePicker - For date selection without range

Installation

# Install via NuGet Package Manager
Install-Package Syncfusion.SfInput.WPF

# Or via .NET CLI
dotnet add package Syncfusion.SfInput.WPF

Add XML namespace in XAML:

xmlns:editors="clr-namespace:Syncfusion.Windows.Controls.Input;assembly=Syncfusion.SfInput.Wpf"

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.32%
按下载量换算124

Claude

30.48%
按下载量换算107

Cursor

18.71%
按下载量换算66

Gemini CLI

10.04%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills