/syncfusion-winui:syncfusion-winui-linear-gaugefrom Syncfusion WinUI Controls
Implements Syncfusion WinUI Linear Gauge (SfLinearGauge) control for data visualization in desktop applications. Use this when building progress indicators, temperature displays, or data measurement gauges in WinUI. This skill covers axis configuration, pointer types (bar and shape), range customization, and animation.
Ships in Syncfusion WinUI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive guide for implementing the Syncfusion WinUI Linear Gauge (SfLinearGauge) control for data visualization in Windows desktop applications. The Linear Gauge control displays numerical values on a linear scale horizontally or vertically with extensive customization options, ranges, multiple pointer types, and animation support.
Use this skill when you need to:
SfLinearGauge is a multipurpose data visualization control that displays numerical values on a linear scale, offering:
Control Structure:
📄 Read: references/getting-started.md
📄 Read: references/axis-customization.md
📄 Read: references/ranges.md
📄 Read: references/pointers.md
📄 Read: references/animation.md
Here's a minimal working example to get started:
XAML:
<Window xmlns:gauge="using:Syncfusion.UI.Xaml.Gauges">
C#:
using Syncfusion.UI.Xaml.Gauges;
<Window
x:Class="GaugeApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:gauge="using:Syncfusion.UI.Xaml.Gauges">
<Grid>
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Minimum="0"
Maximum="100"
Interval="10">
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="60" />
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
</Grid>
</Window>
using Syncfusion.UI.Xaml.Gauges;
namespace GaugeApp
{
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
// Create gauge programmatically
SfLinearGauge sfLinearGauge = new SfLinearGauge();
sfLinearGauge.Axis.Minimum = 0;
sfLinearGauge.Axis.Maximum = 100;
sfLinearGauge.Axis.Interval = 10;
// Add bar pointer
BarPointer barPointer = new BarPointer();
barPointer.Value = 60;
sfLinearGauge.Axis.BarPointers.Add(barPointer);
this.Content = sfLinearGauge;
}
}
}
// Update pointer value
barPointer.Value = 75;
// With animation
barPointer.EnableAnimation = true;
barPointer.AnimationDuration = 1000; // 1 second
barPointer.Value = 90;
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Minimum="0" Maximum="100" Interval="10">
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="60" Background="Green" />
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
<gauge:SfLinearGauge Orientation="Vertical">
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Minimum="-60" Maximum="60" Interval="20">
<gauge:LinearAxis.Ranges>
<gauge:LinearGaugeRange StartValue="-60" EndValue="0" Background="Blue" />
<gauge:LinearGaugeRange StartValue="0" EndValue="30" Background="Orange" />
<gauge:LinearGaugeRange StartValue="30" EndValue="60" Background="Red" />
</gauge:LinearAxis.Ranges>
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="25" />
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Maximum="140" Interval="10">
<!-- Bar pointer for current value -->
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="90" />
</gauge:LinearAxis.BarPointers>
<!-- Shape pointer for threshold -->
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearShapePointer Value="90"
VerticalAnchor="End"
OffsetPoint="0,-8" />
<!-- Content pointer for label -->
<gauge:LinearContentPointer Value="90"
VerticalAnchor="End"
OffsetPoint="0,-28">
<gauge:LinearContentPointer.Content>
<TextBlock Text="90%" />
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis ShowTicks="False"
AxisLineStroke="CornflowerBlue"
AxisLineStrokeThickness="30">
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearShapePointer Value="30"
IsInteractive="True"
OffsetPoint="0,-15"
VerticalAnchor="End"
Fill="Indigo"
ValueChanged="OnPointerValueChanged" />
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
private void OnPointerValueChanged(object sender, ValueChangedEventArgs e)
{
// Handle value change
double newValue = e.NewValue;
}
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Maximum="140" Interval="10">
<gauge:LinearAxis.Ranges>
<gauge:LinearGaugeRange StartValue="0" EndValue="50" Background="Red" />
<gauge:LinearGaugeRange StartValue="50" EndValue="100" Background="Orange" />
<gauge:LinearGaugeRange StartValue="100" EndValue="140" Background="Green" />
</gauge:LinearAxis.Ranges>
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="90" />
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis Interval="10">
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="60"
EnableAnimation="True"
AnimationDuration="1500">
<gauge:BarPointer.AnimationEasingFunction>
<CircleEase EasingMode="EaseOut" />
</gauge:BarPointer.AnimationEasingFunction>
</gauge:BarPointer>
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="40">
<gauge:BarPointer.GradientStops>
<gauge:GaugeGradientStop Value="0" Color="#FFCC2B5E" />
<gauge:GaugeGradientStop Value="40" Color="#FF753A88" />
</gauge:BarPointer.GradientStops>
</gauge:BarPointer>
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
public class GaugeViewModel : INotifyPropertyChanged
{
private double currentValue;
public double CurrentValue
{
get => currentValue;
set
{
currentValue = value;
OnPropertyChanged(nameof(CurrentValue));
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.BarPointers>
<gauge:BarPointer Value="{x:Bind ViewModel.CurrentValue, Mode=TwoWay}" />
</gauge:LinearAxis.BarPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
| Property | Type | Description |
|---|---|---|
Axis | LinearAxis | Gets or sets the linear axis configuration |
IsInversed | bool | Gets or sets whether axis is inverted (right-to-left or bottom-to-top) |
IsMirrored | bool | Gets or sets whether axis is mirrored (opposite side) |
Orientation | Orientation | Gets or sets gauge orientation: Horizontal, Vertical |
| Property | Type | Description |
|---|---|---|
Minimum | double | Minimum value of the axis (default: 0) |
Maximum | double | Maximum value of the axis (default: 100) |
Interval | double | Interval between labels on the axis |
ShowAxisLine | bool | Show or hide the axis line (default: true) |
ShowLabels | bool | Show or hide axis labels (default: true) |
ShowTicks | bool | Show or hide tick marks (default: true) |
AxisLineStroke | Brush | Color of the axis line |
AxisLineStrokeThickness | double | Thickness of the axis line |
LabelPosition | GaugeLabelsPosition | Label position: Inside, Outside |
LabelOffset | double | Distance between axis line and labels |
LabelFormat | string | Format string for labels (e.g., "c" for currency) |
TickPosition | GaugeElementPosition | Tick position: Inside, Outside, Cross |
MajorTickLength | double | Length of major tick marks |
MinorTickLength | double | Length of minor tick marks |
MinorTicksPerInterval | int | Number of minor ticks per interval |
UseRangeColorForAxis | bool | Apply range colors to axis labels and ticks |
| Property | Type | Description |
|---|---|---|
Value | double | Current value of the pointer |
EnableAnimation | bool | Enable pointer animation (default: false) |
AnimationDuration | double | Animation duration in milliseconds (default: 1500) |
AnimationEasingFunction | EasingFunctionBase | Easing function for animation |
| Property | Type | Description |
|---|---|---|
Background | Brush | Fill color of the bar pointer |
PointerSize | double | Thickness of the bar pointer |
CornerStyle | CornerStyle | Corner style: BothFlat, BothCurve, StartCurve, EndCurve |
Offset | double | Distance from axis line (positive: inside, negative: outside) |
GradientStops | ObservableCollection | Collection of gradient stops for color transition |
Child | UIElement | Child content displayed inside the bar pointer |
| Property | Type | Description |
|---|---|---|
ShapeType | GaugeShapeType | Shape: Circle, Diamond, Triangle, InvertedTriangle, Rectangle |
ShapeHeight | double | Height of the shape pointer |
ShapeWidth | double | Width of the shape pointer |
Fill | Brush | Fill color of the shape |
Stroke | Brush | Border color of the shape |
StrokeThickness | double | Border thickness of the shape |
HasShadow | bool | Enable shadow effect (default: false) |
IsInteractive | bool | Enable dragging (default: false) |
ShapeTemplate | DataTemplate | Custom shape template |
OffsetPoint | Point | X/Y offset from default position |
HorizontalAnchor | GaugeAnchor | Horizontal alignment: Start, Center, End |
VerticalAnchor | GaugeAnchor | Vertical alignment: Start, Center, End |
| Property | Type | Description |
|---|---|---|
Content | object | Custom content (TextBlock, Image, etc.) |
OffsetPoint | Point | X/Y offset from default position |
HorizontalAnchor | GaugeAnchor | Horizontal alignment: Start, Center, End |
VerticalAnchor | GaugeAnchor | Vertical alignment: Start, Center, End |
| Property | Type | Description |
|---|---|---|
StartValue | double | Start value of the range |
EndValue | double | End value of the range |
StartWidth | double | Width at range start |
MidWidth | double | Width at range middle (optional) |
EndWidth | double | Width at range end |
Background | Brush | Fill color of the range |
RangePosition | GaugeElementPosition | Position: Inside, Outside, Cross |
GradientStops | ObservableCollection | Collection of gradient stops for color transition |
Child | UIElement | Child content displayed inside the range |
Create vertical temperature gauges displaying current temperature with color-coded ranges (blue for cold, orange for moderate, red for hot) and animated pointer transitions.
Build horizontal battery level gauges with green/yellow/red ranges, bar pointers showing charge level, and content pointers displaying percentage text.
Implement horizontal or vertical speed gauges with tick marks every 10 units, shape pointers for current speed, and range indicators for speed limits.
Create progress indicators using bar pointers with rounded corners, child content displaying percentage text, and smooth animations as values update.
Design pressure gauges with custom axis ranges, multiple ranges for safe/warning/danger zones, and interactive pointers for threshold adjustment.
Build interactive volume controls using horizontal gauges with draggable shape pointers, custom axis styling, and value change events for audio level adjustment.
Create dashboard panels with multiple linear gauges showing KPIs, each with different orientations, color schemes, and ranges for performance visualization.
Implement CPU/memory/disk usage gauges with animated bar pointers, gradient fills showing resource consumption, and real-time value updates.
Next Steps: Read the reference documentation above based on what you need to implement. Start with getting-started.md for initial setup, then explore specific features as needed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winuiOther plugins' skills for the same job
39 skills in this plugin
/syncfusion-winui-ai-assistviewGuide for implementing the Syncfusion WinUI AI AssistView control for creating AI chat interfaces and conversational UI. Use this skill when implementing AI chat interfaces, AI assistants, conversational UI, or chatbots in WinUI applications. Essential for creating AI-powered chat experiences, integrating AI services, displaying AI responses, showing typing indicators, providing AI suggestions, managing conversation history with a navigation view, customizing empty states with EmptyView/EmptyViewTemplate, or setting input placeholder text in conversational interfaces with AI services in WinUI./syncfusion-winui-autocompleteGuide implementation of the Syncfusion WinUI AutoComplete control (SfAutoComplete) for creating searchable dropdowns with single or multiple selection, filtering suggestions, and customizable token display. Use this skill when implementing search-as-you-type functionality, autocomplete dropdowns with multi-select, tagging systems with token/chip display, or filtered suggestion boxes in WinUI applications./syncfusion-winui-avatar-viewGuide for implementing the Syncfusion WinUI AvatarView control to display user avatars and profile pictures. Use this when implementing user profiles, contact lists, or chat interfaces requiring visual user representation in WinUI applications. This skill covers initials display, image avatars, group avatars, and pre-defined avatar characters.