RadialGauge Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Modern UI Radial Gauge using XAML and Composition API. The scale of the gauge is a clockwise arc that sweeps from MinAngle (default lower left, at -150°) to MaxAngle (default lower right, at +150°).
[Windows.UI.Xaml.TemplatePart(Name="PART_Container", Type=typeof(Windows.UI.Xaml.Controls.Grid))]
[Windows.UI.Xaml.TemplatePart(Name="PART_Scale", Type=typeof(Windows.UI.Xaml.Shapes.Path))]
[Windows.UI.Xaml.TemplatePart(Name="PART_Trail", Type=typeof(Windows.UI.Xaml.Shapes.Path))]
[Windows.UI.Xaml.TemplatePart(Name="PART_ValueText", Type=typeof(Windows.UI.Xaml.Controls.TextBlock))]
public class RadialGauge : Windows.UI.Xaml.Controls.Primitives.RangeBase
[<Windows.UI.Xaml.TemplatePart(Name="PART_Container", Type=typeof(Windows.UI.Xaml.Controls.Grid))>]
[<Windows.UI.Xaml.TemplatePart(Name="PART_Scale", Type=typeof(Windows.UI.Xaml.Shapes.Path))>]
[<Windows.UI.Xaml.TemplatePart(Name="PART_Trail", Type=typeof(Windows.UI.Xaml.Shapes.Path))>]
[<Windows.UI.Xaml.TemplatePart(Name="PART_ValueText", Type=typeof(Windows.UI.Xaml.Controls.TextBlock))>]
type RadialGauge = class
inherit RangeBase
Public Class RadialGauge
Inherits RangeBase
- Inheritance
-
Windows.UI.Xaml.Controls.Primitives.RangeBaseRadialGauge
- Attributes
-
Windows.UI.Xaml.TemplatePartAttribute
Constructors
RadialGauge() |
Initializes a new instance of the RadialGauge class. Create a default radial gauge control. |
Fields
IsInteractiveProperty |
Identifies the IsInteractive property. |
MaxAngleProperty |
Identifies the MaxAngle dependency property. |
MinAngleProperty |
Identifies the MinAngle dependency property. |
NeedleBrushProperty |
Identifies the NeedleBrush dependency property. |
NeedleLengthProperty |
Identifies the NeedleLength dependency property. |
NeedleWidthProperty |
Identifies the NeedleWidth dependency property. |
ScaleBrushProperty |
Identifies the ScaleBrush dependency property. |
ScalePaddingProperty |
Identifies the ScalePadding dependency property. |
ScaleTickBrushProperty |
Identifies the ScaleTickBrush dependency property. |
ScaleTickWidthProperty |
Identifies the ScaleTickWidth dependency property. |
ScaleWidthProperty |
Identifies the ScaleWidth dependency property. |
StepSizeProperty |
Identifies the optional StepSize property. |
TickBrushProperty |
Identifies the TickBrush dependency property. |
TickLengthProperty |
Identifies the TickLength dependency property. |
TickSpacingProperty |
Identifies the TickSpacing dependency property. |
TickWidthProperty |
Identifies the TickWidth dependency property. |
TrailBrushProperty |
Identifies the TrailBrush dependency property. |
UnitProperty |
Identifies the Unit dependency property. |
ValueAngleProperty |
Identifies the ValueAngle dependency property. |
ValueStringFormatProperty |
Identifies the ValueStringFormat dependency property. |
Properties
IsInteractive |
Gets or sets a value indicating whether the control accepts setting its value through interaction. |
MaxAngle |
Gets or sets the end angle of the scale, which corresponds with the Maximum value, in degrees. |
MinAngle |
Gets or sets the start angle of the scale, which corresponds with the Minimum value, in degrees. |
NeedleBrush |
Gets or sets the needle brush. |
NeedleLength |
Gets or sets the needle length, in percentage of the gauge radius. |
NeedleWidth |
Gets or sets the needle width, in percentage of the gauge radius. |
NormalizedMaxAngle |
Gets the normalized maximum angle. |
NormalizedMinAngle |
Gets the normalized minimum angle. |
ScaleBrush |
Gets or sets the scale brush. |
ScalePadding |
Gets or sets the distance of the scale from the outside of the control, in percentage of the gauge radius. |
ScaleTickBrush |
Gets or sets the scale tick brush. |
ScaleTickWidth |
Gets or sets the width of the scale ticks, in percentage of the gauge radius. |
ScaleWidth |
Gets or sets the width of the scale, in percentage of the gauge radius. |
StepSize |
Gets or sets the rounding interval for the Value. |
TickBrush |
Gets or sets the outer tick brush. |
TickLength |
Gets or sets the length of the ticks, in percentage of the gauge radius. |
TickSpacing |
Gets or sets the tick spacing, in units. Values of zero or less will be ignored when drawing. |
TickWidth |
Gets or sets the width of the ticks, in percentage of the gauge radius. |
TrailBrush |
Gets or sets the trail brush. |
Unit |
Gets or sets the displayed unit measure. |
ValueAngle |
Gets or sets the current angle of the needle (between MinAngle and MaxAngle). Setting the angle will update the Value. |
ValueStringFormat |
Gets or sets the value string format. |
Methods
OnApplyTemplate() |
Update the visual state of the control when its template is changed. |
OnCreateAutomationPeer() | Windows.UI.Xaml.Controls.Primitives.RangeBase.OnCreateAutomationPeer |
OnMaximumChanged(Double, Double) | Windows.UI.Xaml.Controls.Primitives.RangeBase.OnMaximumChanged(System.Double,System.Double) |
OnMinimumChanged(Double, Double) | Windows.UI.Xaml.Controls.Primitives.RangeBase.OnMinimumChanged(System.Double,System.Double) |
OnValueChanged(Double, Double) | Windows.UI.Xaml.Controls.Primitives.RangeBase.OnValueChanged(System.Double,System.Double) |