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

syncfusion-wpf-digital-gauge同步融合 wpf 数字量规

Agent Skill

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

总安装

1,028

周安装

42

GitHub Stars

2

下载量

329
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 WPF 数字量规组件,用于显示数值指标的模拟表盘式读数界面。

  • 适用于监控面板、仪表板等需要直观展示测量值的应用场景。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加数字量规技能模块。
  • 使用前应验证宿主是否具备抗锯齿渲染能力及刻度动态更新性能优化支持。
  • 建议查看原始 README 获取量程设置、指针动画、单位标注等配置参数详情。

SKILL.md

Implementing Digital Gauge (SfDigitalGauge)

The SfDigitalGauge control displays alphanumeric characters in digital LED-style segments, perfect for creating virtual digital displays, clocks, speedometers, and counters in WPF applications.

When to Use This Skill

Use SfDigitalGauge when you need to:

  • Display numeric values in a digital LED format (clocks, timers, counters)
  • Create digital displays for dashboards or instrument panels
  • Show alphanumeric text in segment-based format (product codes, status messages)
  • Build digital speedometers or odometers showing speed/distance
  • Create retro-style digital interfaces with classic LED segment aesthetics
  • Display special characters in dot matrix format
  • Implement real-time updating displays (live data feeds, sensor readings)

Component Type: Data Visualization Control Platform: Windows Presentation Foundation (WPF) Package: Syncfusion.SfGauge.WPF


Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When you need to:

  • Install and configure SfDigitalGauge in a WPF project
  • Add assembly references (NuGet, Toolbox, or Manual)
  • Set up namespaces for XAML and C# code
  • Initialize the control for first use
  • Display basic values
  • Apply theme support

Character Types and Segments

📄 Read: references/character-types.md

When you need to:

  • Choose between 4 different segment display types
  • Display numbers only (7-segment)
  • Display numbers and alphabets (14-segment or 16-segment)
  • Display special characters (8×8 dot matrix)
  • Understand which CharacterType to use for your use case
  • See visual comparisons of segment types

Customization and Styling

📄 Read: references/customization.md

When you need to:

  • Adjust character dimensions (height, width)
  • Control spacing between characters
  • Change character stroke color
  • Style dimmed (inactive) segments
  • Adjust opacity of background segments
  • Create visually appealing displays

Transformations

📄 Read: references/transformations.md

When you need to:

  • Scale characters (increase/decrease size)
  • Apply skew transformations
  • Create slanted digital displays
  • Transform characters along X or Y axis
  • Implement perspective effects

Segment Styling and Advanced Features

📄 Read: references/segment-styling.md

When you need to:

  • Adjust segment thickness
  • Enable Right-to-Left (RTL) text direction
  • Fine-tune visual appearance
  • Match background colors

Quick Start

Basic Digital Display

<Window xmlns:gauge="clr-namespace:Syncfusion.UI.Xaml.Gauges;assembly=Syncfusion.SfGauge.Wpf">
    <gauge:SfDigitalGauge Value="12345" />
</Window>
using Syncfusion.UI.Xaml.Gauges;

SfDigitalGauge digitalGauge = new SfDigitalGauge();
digitalGauge.Value = "12345";
this.Content = digitalGauge;

Digital Clock Display

<gauge:SfDigitalGauge Value="11:59:50 PM"
                      Height="100"
                      Width="375"
                      CharacterHeight="60"
                      CharacterWidth="25"
                      CharacterType="EightCrossEightDotMatrix"
                      CharacterStroke="#146CED"
                      DimmedBrush="#F2F2F2"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center" />
SfDigitalGauge clock = new SfDigitalGauge();
clock.Value = "11:59:50 PM";
clock.Height = 100;
clock.Width = 375;
clock.CharacterHeight = 60;
clock.CharacterWidth = 25;
clock.CharacterType = CharacterType.EightCrossEightDotMatrix;
clock.CharacterStroke = (SolidColorBrush)new BrushConverter().ConvertFrom("#146CED");
clock.DimmedBrush = (SolidColorBrush)new BrushConverter().ConvertFrom("#F2F2F2");
clock.HorizontalAlignment = HorizontalAlignment.Center;
clock.VerticalAlignment = VerticalAlignment.Center;

Common Patterns

Pattern 1: Simple Numeric Counter

Use 7-segment display for numbers only:

<gauge:SfDigitalGauge Value="12345"
                      CharacterType="SegmentSeven"
                      CharacterHeight="40"
                      CharacterWidth="20"
                      CharacterStroke="Red" />

When to use: Counters, timers, numeric displays where only digits 0-9 are needed.

Pattern 2: Alphanumeric Display

Use 14-segment or 16-segment for text and numbers:

<gauge:SfDigitalGauge Value="SPEED 088"
                      CharacterType="SegmentFourteen"
                      CharacterHeight="50"
                      CharacterWidth="30"
                      CharacterStroke="Green" />

When to use: Status messages, product codes, labels with mixed alphanumeric content.

Pattern 3: Dot Matrix for Special Characters

Use 8×8 dot matrix for full character support:

<gauge:SfDigitalGauge Value="SYNC@2024!"
                      CharacterType="EightCrossEightDotMatrix"
                      CharacterHeight="60"
                      CharacterWidth="35"
                      CharacterStroke="Orange" />

When to use: Email addresses, URLs, special symbols, complex text displays.

Pattern 4: Styled Dashboard Display

Apply comprehensive styling for professional appearance:

<gauge:SfDigitalGauge Value="TEMP 72°F"
                      CharacterType="SegmentSixteen"
                      CharacterHeight="55"
                      CharacterWidth="32"
                      CharactersSpacing="8"
                      CharacterStroke="#00FF00"
                      DimmedBrush="#1A1A1A"
                      DimmedBrushOpacity="30"
                      SegmentThickness="3" />

When to use: Dashboard panels, control rooms, monitoring displays requiring clear visibility.

Pattern 5: Skewed Digital Speedometer

Create dynamic perspective effect:

<gauge:SfDigitalGauge Value="125 MPH"
                      CharacterType="SegmentSeven"
                      CharacterHeight="70"
                      CharacterWidth="40"
                      SkewAngleX="15"
                      CharacterStroke="Cyan" />

When to use: Speedometers, racing dashboards, dynamic displays with motion feel.


Key Properties Reference

PropertyTypeDescription
ValuestringThe alphanumeric text to display
CharacterTypeEnumSegment type: SegmentSeven, SegmentFourteen, SegmentSixteen, EightCrossEightDotMatrix
CharacterHeightdoubleHeight of each character in pixels
CharacterWidthdoubleWidth of each character in pixels
CharactersSpacingdoubleDistance between characters
CharacterStrokeBrushColor of active (lit) segments
DimmedBrushBrushColor of inactive (dimmed) segments
DimmedBrushOpacitydoubleOpacity of dimmed segments (0-100)
SegmentThicknessdoubleThickness of segment lines
SkewAngleXdoubleHorizontal skew angle (degrees)
SkewAngleYdoubleVertical skew angle (degrees)
EnableRTLFormatboolEnable Right-to-Left text direction

Common Use Cases

1. Real-Time Clock Display

Display current time with updating segments:

// Update timer every second
DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(1);
timer.Tick += (s, e) => digitalGauge.Value = DateTime.Now.ToString("hh:mm:ss tt");
timer.Start();

2. Countdown Timer

Create countdown displays for events:

TimeSpan remaining = TimeSpan.FromMinutes(10);
digitalGauge.Value = remaining.ToString(@"mm\:ss");

3. Live Sensor Reading

Display sensor data with appropriate formatting:

digitalGauge.Value = $"TEMP {sensorReading:F1}°C";
digitalGauge.CharacterType = CharacterType.SegmentSixteen;

4. Digital Odometer

Show distance with leading zeros:

double miles = 12345.6;
digitalGauge.Value = miles.ToString("000000.0");
digitalGauge.CharacterType = CharacterType.SegmentSeven;

5. Status Indicator

Display system status messages:

digitalGauge.Value = isOnline ? "ONLINE" : "OFFLINE";
digitalGauge.CharacterStroke = isOnline ? Brushes.Green : Brushes.Red;
digitalGauge.CharacterType = CharacterType.SegmentFourteen;

Best Practices

  1. Choose the right CharacterType:

- Numbers only → SegmentSeven - Numbers + Letters → SegmentFourteen or SegmentSixteen - Special characters → EightCrossEightDotMatrix

  1. Ensure readability:

- Use appropriate CharacterHeight (40-70px for most cases) - Set proper CharactersSpacing (5-15px) - Choose contrasting CharacterStroke colors

  1. Optimize dimmed segments:

- Set DimmedBrush to match your background - Adjust DimmedBrushOpacity (20-40) for subtle effect

  1. Performance considerations:

- Avoid rapid Value updates (<50ms intervals) - Use string formatting to prevent unnecessary updates

  1. Accessibility:

- Provide text alternatives for screen readers - Ensure sufficient color contrast - Consider users with visual impairments


Related Skills


Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.26%
按下载量换算119

Claude

28.01%
按下载量换算92

Cursor

17.08%
按下载量换算56

Gemini CLI

8.87%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills