RadialGaugeNeedle
Represent a scale indicator that points to a value.
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadialGaugeNeedle : GaugeVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDrawing
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGaugeVisualElementRadialGaugeNeedle...
Implements:
Inherited Members
Constructors
Initializes a needle that acquires its owning gauge when added to its visual tree.
public RadialGaugeNeedle()
Initializes a needle and associates it with the specified gauge.
public RadialGaugeNeedle(RadRadialGaugeElement owner)
The gauge that supplies the range and geometry for the needle.
Fields
Identifies the needle's value property, which determines its angle on the gauge.
public static RadProperty ValueProperty
Properties
Specifies the length extending behind the gauge center, as a percentage of half the gauge width.
public double BackLengthPercentage { get; set; }
Specifies the value offset of the needle according to the gauge's value.
public double BindOffset { get; set; }
Indicates whether the needle's value is bound to the gauge's Value.
public bool BindValue { get; set; }
Specifies the radius of the white circular cutout at the gauge center. The value is interpreted as a percentage of half the gauge width.
public double InnerPointRadiusPercentage { get; set; }
Controls the needle length from the gauge center to its tip, as a percentage of half the gauge width.
public double LengthPercentage { get; set; }
Gets the needle body and outer center cap for the current value and geometry settings.
public override GraphicsPath Path { get; }
Overrides:
Specifies the radius of the outer circular cap at the gauge center, as a percentage of half the gauge width.
public double PointRadiusPercentage { get; set; }
Controls the needle width. When AutoSize is enabled, the value is a percentage of the gauge width; otherwise it is used directly as a drawing-unit width. Values less than or equal to zero are ignored.
public double Thickness { get; set; }
Methods
Initializes the needle's default colors and disables inherited text rendering.
protected override void CreateChildElements()
Overrides:
Recreates the needle's shape when a property other than Shape changes, then invalidates the visual.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the changed property.
Overrides:
Associates the needle with its parent gauge, subscribes to value changes, and applies value binding when enabled.
protected override void OnParentChanged(RadElement previousParent)
The element that was previously the parent.
Overrides:
Raises the ValueChanged event.
protected void OnValueChanged()
Draws the needle and its center details using the current value and colors.
Routes framework painting through the GDI+ needle renderer.
Events
Occurs when the needle's value changes.
public event EventHandler ValueChanged