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

syncfusion-wpf-linear-gaugesyncfusion WPF Linear gauge 前端

Agent Skill

用于处理 Linear 项目、Issue、团队、周期和产品开发任务流。它适合让 Agent 辅助查询任务状态、整理需求队列、创建缺陷或汇总迭代进展。使用时需要确认 workspace、team、label、assignee 和状态流转规则;涉及批量创建或修改任务时,应先核对字段和目标团队,避免把草稿需求直接写入正式项目。

总安装

973

周安装

39

GitHub Stars

2

下载量

315
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 Linear 项目、Issue、团队、周期和产品开发任务流。

  • 适合查询任务状态、整理需求队列、创建缺陷或汇总迭代进展。
  • 需确认 workspace、team、label、assignee 和状态流转规则后使用。
  • 涉及批量操作时应先核对字段和目标团队,避免误写正式项目。
  • syncfusion-wpf-linear-gauge 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Linear Gauges

A comprehensive guide for implementing the Syncfusion WPF Linear Gauge (SfLinearGauge) control in Windows Presentation Foundation applications. The Linear Gauge displays numerical values graphically along a linear scale, making it ideal for thermometers, progress indicators, sliding meters, and value visualization in horizontal or vertical orientations.

When to Use This Skill

Use this skill when you need to:

  • Implement SfLinearGauge in WPF applications
  • Create thermometer-style displays for temperature or measurement visualization
  • Build progress indicators with graduated scales and value markers
  • Visualize numerical values linearly with scales, pointers, and ranges
  • Create sliding meters for performance monitoring or value tracking
  • Display values with colored zones to indicate different value ranges
  • Implement horizontal or vertical gauges with customizable orientation
  • Add animated pointers that smoothly transition to new values
  • Configure multiple pointers for value comparison on a single scale
  • Design custom gauge layouts with flexible positioning and styling

Component Overview

The SfLinearGauge control measures and displays values along a linear scale in either horizontal or vertical orientation. It provides a complete gauge visualization system with:

  • Linear Scale - The foundation with configurable min/max values, intervals, and direction
  • Pointers - Bar and symbol pointers to mark specific values on the scale
  • Ranges - Colored sections to highlight specific value ranges
  • Labels - Numeric labels with formatting, prefix/postfix, and positioning options
  • Ticks - Major and minor tick marks to indicate scale intervals
  • Orientation - Horizontal (landscape) or vertical (portrait) layout support
  • Animation - Smooth pointer animations with configurable duration
  • Theming - Built-in theme support for consistent UI styling

Key capabilities:

  • Multiple pointer types (bar and symbol) on a single scale
  • Color-coded ranges for threshold visualization
  • Full XAML and code-behind customization
  • MVVM data binding support
  • Responsive sizing and layout
  • Professional gauge aesthetics

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: Starting a new Linear Gauge implementation or first-time setup.

Covers:

  • Installing Syncfusion.SfGauge.WPF NuGet package
  • Adding assembly references (three methods)
  • Namespace imports in XAML and C#
  • Initializing an empty SfLinearGauge control
  • Configuring your first scale with basic properties
  • Adding a symbol pointer to mark values
  • Adding a bar pointer for progress indication
  • Creating colored ranges for value zones
  • Complete minimal working example
  • Applying themes with SfSkinManager

Scale Configuration

📄 Read: references/scale-configuration.md

When to read: Configuring the scale's appearance, range, intervals, size, direction, or position.

Covers:

  • Understanding the MainScale property and LinearScale
  • Setting minimum and maximum values for scale range
  • Configuring intervals for label and tick spacing
  • Customizing scale appearance (color, borders, stroke)
  • Scale size customization (ScaleBarSize, ScaleBarLength)
  • Setting scale direction (Forward or Backward)
  • Scale positioning with ScaleBarPositionFactor
  • ElementsPositionMode for custom positioning
  • Auto-interval calculation
  • Complete code examples in XAML and C#

Pointers

📄 Read: references/pointers.md

When to read: Adding pointers to mark values, implementing bar or symbol pointers, customizing pointer appearance, enabling animations, or adding multiple pointers.

Covers:

  • Pointer types overview (BarPointer and SymbolPointer)
  • Implementing bar pointers for progress/fill indication
  • Bar pointer customization (stroke color, thickness)
  • Implementing symbol pointers for value markers
  • Symbol pointer customization (size, shape, stroke)
  • Symbol pointer positioning (Above, Below, Cross)
  • Custom symbol pointer shapes with templates
  • Adding multiple pointers to a single scale
  • Enabling pointer animations with EnableAnimation
  • Controlling animation speed with AnimationDuration
  • Binding pointer values to data
  • Complete examples for each pointer type

Ranges

📄 Read: references/ranges.md

When to read: Highlighting value ranges with colors, creating threshold zones, adding multiple ranges, or customizing range appearance and position.

Covers:

  • Range overview and visual purpose
  • Setting StartValue and EndValue for ranges
  • Range customization (stroke color, width, opacity)
  • Variable-width ranges (StartWidth, EndWidth)
  • Binding range colors to ticks and labels
  • Range positioning with RangeOffset
  • RangePosition property (Above, Below)
  • Adding multiple ranges for color-coded zones
  • Common range patterns (safe/warning/danger zones)
  • Complete multi-range examples

Labels and Ticks

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

When to read: Customizing scale labels, formatting label text, positioning labels, configuring tick marks, or adjusting tick intervals.

Covers:

  • Labels:

- Label color customization with LabelStroke - Font customization (LabelSize, FontFamily, FontStyle) - Label positioning (LabelPosition: Above, Below) - Label offset for spacing control - Adding prefix and postfix to label text - Label visibility control

  • Ticks:

- Major and minor tick customization (stroke, size, thickness) - Tick positioning (TickPosition: Above, Below, Cross) - Configuring MinorTicksPerInterval - Tick appearance and styling

  • Complete examples combining labels and ticks

Orientation

📄 Read: references/orientation.md

When to read: Changing gauge orientation from horizontal to vertical or vice versa.

Covers:

  • Orientation property overview
  • Horizontal orientation (default landscape layout)
  • Vertical orientation (portrait layout)
  • Orientation use cases and considerations
  • Layout implications for pointers and ranges
  • Complete examples for both orientations

Quick Start Example

Here's a minimal working Linear Gauge with a scale, bar pointer, symbol pointer, and colored range:

XAML

<Window xmlns:gauge="clr-namespace:Syncfusion.UI.Xaml.Gauges;assembly=Syncfusion.SfGauge.Wpf">
    <Grid>
        <gauge:SfLinearGauge>
            <gauge:SfLinearGauge.MainScale>
                <gauge:LinearScale
                    Minimum="0"
                    Maximum="100"
                    Interval="10"
                    ScaleBarStroke="#E0E0E0"
                    LabelStroke="#424242"
                    MajorTickStroke="Gray"
                    MajorTickSize="15"
                    MinorTickStroke="Gray"
                    MinorTickSize="7"
                    MinorTicksPerInterval="3"
                    ScaleBarSize="10"
                    ScaleBarLength="300">

                    <!-- Bar Pointer -->
                    <gauge:LinearScale.Pointers>
                        <gauge:LinearPointer
                            PointerType="BarPointer"
                            Value="65"
                            BarPointerStroke="#36D1DC"
                            BarPointerStrokeThickness="10"/>

                        <!-- Symbol Pointer -->
                        <gauge:LinearPointer
                            PointerType="SymbolPointer"
                            Value="65"
                            SymbolPointerHeight="15"
                            SymbolPointerWidth="15"
                            SymbolPointerPosition="Above"
                            SymbolPointerStroke="#5B86E5"/>
                    </gauge:LinearScale.Pointers>

                    <!-- Colored Ranges -->
                    <gauge:LinearScale.Ranges>
                        <gauge:LinearRange
                            StartValue="0"
                            EndValue="35"
                            RangeStroke="#27BEB7"
                            StartWidth="10"
                            EndWidth="10"
                            RangeOffset="0.4"/>

                        <gauge:LinearRange
                            StartValue="35"
                            EndValue="70"
                            RangeStroke="Orange"
                            StartWidth="10"
                            EndWidth="10"
                            RangeOffset="0.4"/>

                        <gauge:LinearRange
                            StartValue="70"
                            EndValue="100"
                            RangeStroke="Red"
                            StartWidth="10"
                            EndWidth="10"
                            RangeOffset="0.4"/>
                    </gauge:LinearScale.Ranges>
                </gauge:LinearScale>
            </gauge:SfLinearGauge.MainScale>
        </gauge:SfLinearGauge>
    </Grid>
</Window>

C# Code-Behind

using Syncfusion.UI.Xaml.Gauges;
using System.Windows.Media;

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        CreateLinearGauge();
    }

    private void CreateLinearGauge()
    {
        // Create gauge
        SfLinearGauge gauge = new SfLinearGauge();

        // Create scale
        LinearScale scale = new LinearScale
        {
            Minimum = 0,
            Maximum = 100,
            Interval = 10,
            ScaleBarStroke = new SolidColorBrush(Color.FromRgb(224, 224, 224)),
            LabelStroke = new SolidColorBrush(Color.FromRgb(66, 66, 66)),
            MajorTickStroke = new SolidColorBrush(Colors.Gray),
            MajorTickSize = 15,
            MinorTickStroke = new SolidColorBrush(Colors.Gray),
            MinorTickSize = 7,
            MinorTicksPerInterval = 3,
            ScaleBarSize = 10,
            ScaleBarLength = 300
        };

        // Add bar pointer
        scale.Pointers.Add(new LinearPointer
        {
            PointerType = LinearPointerType.BarPointer,
            Value = 65,
            BarPointerStroke = new SolidColorBrush(Color.FromRgb(54, 209, 220)),
            BarPointerStrokeThickness = 10
        });

        // Add symbol pointer
        scale.Pointers.Add(new LinearPointer
        {
            PointerType = LinearPointerType.SymbolPointer,
            Value = 65,
            SymbolPointerHeight = 15,
            SymbolPointerWidth = 15,
            SymbolPointerPosition = LinearSymbolPointersPosition.Above,
            SymbolPointerStroke = new SolidColorBrush(Color.FromRgb(91, 134, 229))
        });

        // Add ranges
        scale.Ranges.Add(new LinearRange
        {
            StartValue = 0,
            EndValue = 35,
            RangeStroke = new SolidColorBrush(Color.FromRgb(39, 190, 183)),
            StartWidth = 10,
            EndWidth = 10,
            RangeOffset = 0.4
        });

        gauge.MainScale = scale;
        this.Content = gauge;
    }
}

Common Patterns

Thermometer Pattern

Create a thermometer-style gauge with vertical orientation:

<gauge:SfLinearGauge Orientation="Vertical">
    <gauge:SfLinearGauge.MainScale>
        <gauge:LinearScale
            Minimum="-20"
            Maximum="120"
            LabelPostfix="°C"
            ScaleBarSize="15">
            <gauge:LinearScale.Pointers>
                <gauge:LinearPointer
                    PointerType="BarPointer"
                    Value="37"
                    BarPointerStroke="Red"
                    BarPointerStrokeThickness="15"/>
            </gauge:LinearScale.Pointers>
        </gauge:LinearScale>
    </gauge:SfLinearGauge.MainScale>
</gauge:SfLinearGauge>

Progress Indicator Pattern

Show progress with animated pointer:

<gauge:LinearScale.Pointers>
    <gauge:LinearPointer
        PointerType="BarPointer"
        Value="{Binding ProgressValue}"
        EnableAnimation="True"
        AnimationDuration="500"
        BarPointerStroke="#36D1DC"
        BarPointerStrokeThickness="12"/>
</gauge:LinearScale.Pointers>

Multi-Zone Value Meter Pattern

Create safe/warning/danger zones:

<gauge:LinearScale.Ranges>
    <!-- Safe Zone (Green) -->
    <gauge:LinearRange
        StartValue="0"
        EndValue="60"
        RangeStroke="Green"
        StartWidth="15"
        EndWidth="15"/>

    <!-- Warning Zone (Yellow) -->
    <gauge:LinearRange
        StartValue="60"
        EndValue="80"
        RangeStroke="Yellow"
        StartWidth="15"
        EndWidth="15"/>

    <!-- Danger Zone (Red) -->
    <gauge:LinearRange
        StartValue="80"
        EndValue="100"
        RangeStroke="Red"
        StartWidth="15"
        EndWidth="15"/>
</gauge:LinearScale.Ranges>

Multiple Pointer Comparison Pattern

Compare two values on one scale:

<gauge:LinearScale.Pointers>
    <!-- Current Value -->
    <gauge:LinearPointer
        PointerType="SymbolPointer"
        Value="75"
        SymbolPointerStroke="Blue"
        SymbolPointerPosition="Above"/>

    <!-- Target Value -->
    <gauge:LinearPointer
        PointerType="SymbolPointer"
        Value="90"
        SymbolPointerStroke="Green"
        SymbolPointerPosition="Below"/>
</gauge:LinearScale.Pointers>

Key Properties

SfLinearGauge Properties

PropertyTypeDescription
MainScaleLinearScaleThe primary scale containing all gauge elements
OrientationOrientationHorizontal (default) or Vertical layout

LinearScale Properties

PropertyTypeDescription
MinimumdoubleMinimum value of the scale (default: 0)
MaximumdoubleMaximum value of the scale (default: 100)
IntervaldoubleSpacing between major ticks and labels
ScaleBarStrokeBrushScale bar background color
ScaleBarSizedoubleScale bar thickness (height in horizontal)
ScaleBarLengthdoubleScale bar length (width in horizontal)
ScaleDirectionLinearScaleDirectionForward or Backward
PointersObservableCollectionCollection of LinearPointer objects
RangesObservableCollectionCollection of LinearRange objects
LabelStrokeBrushLabel text color
LabelPositionLinearLabelsPositionAbove or Below scale
LabelPrefixstringText to prepend to labels
LabelPostfixstringText to append to labels
MajorTickStrokeBrushMajor tick color
MajorTickSizedoubleMajor tick length
MinorTickStrokeBrushMinor tick color
MinorTickSizedoubleMinor tick length
MinorTicksPerIntervalintNumber of minor ticks between major ticks
TickPositionLinearTicksPositionAbove, Below, or Cross

LinearPointer Properties

PropertyTypeDescription
PointerTypeLinearPointerTypeBarPointer or SymbolPointer
ValuedoubleThe pointer's value on the scale
BarPointerStrokeBrushBar pointer color
BarPointerStrokeThicknessdoubleBar pointer width
SymbolPointerStrokeBrushSymbol pointer color
SymbolPointerHeightdoubleSymbol pointer height
SymbolPointerWidthdoubleSymbol pointer width
SymbolPointerPositionLinearSymbolPointersPositionAbove, Below, or Cross
EnableAnimationboolEnable smooth pointer transitions
AnimationDurationintAnimation duration in milliseconds

LinearRange Properties

PropertyTypeDescription
StartValuedoubleRange beginning value
EndValuedoubleRange ending value
RangeStrokeBrushRange color
StartWidthdoubleRange width at start
EndWidthdoubleRange width at end (for tapered ranges)
RangeOffsetdoubleDistance from scale bar
RangeOpacitydoubleRange transparency (0.0 to 1.0)

Common Use Cases

Temperature Monitoring

Display temperature readings with color-coded ranges for normal, warning, and critical temperatures. Use vertical orientation for thermometer-style visualization.

Performance Metrics

Track KPIs, CPU usage, memory consumption, or other performance indicators with bar pointers showing current values and ranges indicating acceptable thresholds.

Progress Tracking

Show completion percentage for tasks, downloads, or processes with animated bar pointers that smoothly transition as values update.

Measurement Displays

Create virtual instruments for pressure gauges, speedometers, voltmeters, or any measurement that benefits from linear scale visualization.

Value Comparison

Use multiple pointers to compare actual vs. target values, current vs. previous values, or multiple metrics on a single scale.

Dashboard Widgets

Integrate linear gauges into dashboards as compact, visually appealing widgets for at-a-glance data monitoring.

API Documentation

Online API Reference:


Next Steps: Navigate to the reference files above based on your implementation needs. Start with getting-started.md for initial setup, then explore specific features as required.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.55%
按下载量换算99

Claude

31.34%
按下载量换算99

Cursor

19.82%
按下载量换算62

Gemini CLI

9.98%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills