CircularRange Class
Represents an element that renders a range in a CircularGauge.
public class CircularRange : RangeBase, ILogicalParent, IVisualParent
- Inheritance:
- object Visual UIElement FrameworkElement GaugeElement RangeBase object
- Implements:
- ILogicalParent IVisualParent
Remarks
For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.
Constructors
CircularRange()
Initializes an instance of the class.
public CircularRange()
Properties
EndExtent
Gets or sets the extent of the range at the EndValue. This is a dependency property.
public Unit EndExtent { get; set; }
Property Value
Radius
Gets the associated radius of this element, which is inherited/set via an attached property on CircularScale.
ScaleBarExtent
Gets the extent of the scale bar, which is inherited/set via an attached property on ScaleBase.
StartAngle
Gets the associated start angle of this element, which is inherited/set via an attached property on CircularScale.
StartExtent
Gets or sets the extent of the range at the StartValue. This is a dependency property.
public Unit StartExtent { get; set; }
Property Value
- Unit:
The extent of the range at the StartValue. The default value is
5
pixels.
SweepAngle
Gets the associated sweep angle of this element, which is inherited/set via an attached property on CircularScale.
Methods
CalculateAngle(double)
Calculates an angle (not including the start angle) for the specified value.
protected double CalculateAngle(double value)
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Returns
- double:
The angle of the specified value, not including the start angle.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
Parameter | Type | Description |
---|---|---|
drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
EndExtentProperty
Identifies the EndExtent dependency property. This field is read-only.
public static readonly DependencyProperty EndExtentProperty
StartExtentProperty
Identifies the StartExtent dependency property. This field is read-only.
public static readonly DependencyProperty StartExtentProperty
Inherited Members
- RangeBase.BackgroundProperty
- RangeBase.BorderBrushProperty
- RangeBase.BorderDashStyleProperty
- RangeBase.BorderWidthProperty
- RangeBase.EndValueProperty
- RangeBase.HasDropShadowProperty
- RangeBase.ScaleOffsetProperty
- RangeBase.ScalePlacementProperty
- RangeBase.StartValueProperty
- RangeBase.Background
- RangeBase.BorderBrush
- RangeBase.BorderDashStyle
- RangeBase.BorderWidth
- RangeBase.EndValue
- RangeBase.HasDropShadow
- RangeBase.IsLogarithmic
- RangeBase.IsReversed
- RangeBase.LogarithmicBase
- RangeBase.Maximum
- RangeBase.Minimum
- RangeBase.ScaleOffset
- RangeBase.ScalePlacement
- RangeBase.StartValue
- GaugeElement.ZIndexProperty
- GaugeElement.GetVisualChild(int)
- GaugeElement.GetZIndex(UIElement)
- GaugeElement.SetZIndex(UIElement, int)
- GaugeElement.VisualChildren
- GaugeElement.VisualChildrenCount
- GaugeElement.ZIndex