ClassRadLinearGaugeElement
Represents the main linear gauge element that serves as a container for all other gauge components including bars, ticks, labels, and needle indicators.
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadLinearGaugeElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadLinearGaugeElement
Implements:
Inherited Members
Constructors
RadLinearGaugeElement()
Initializes a new instance of the RadLinearGaugeElement class.
Declaration
public RadLinearGaugeElement()
Fields
ValueProperty
Identifies the Value dependency property.
Properties
GaugeFullLength
Gets the full length of the gauge element including borders along its primary axis.
GaugeLength
Gets the length of the gauge along its primary axis (width for horizontal, height for vertical).
GaugeOtherSizeFullLength
Gets the full length of the gauge element including borders along its secondary axis.
Declaration
protected float GaugeOtherSizeFullLength { get; }
Property Value
GaugeOtherSizeLength
Gets the length of the gauge along its secondary axis (height for horizontal, width for vertical).
GaugeStartPoint
Gets the starting point coordinate of the gauge along its primary axis.
Items
Gets the collection of gauge items (bars, ticks, labels, needles, etc.) that comprise the gauge.
Declaration
[RadEditItemsAction]
public virtual RadItemOwnerCollection Items { get; }
Property Value
RangeEnd
Gets or sets the maximum value of the gauge range.
RangeStart
Gets or sets the minimum value of the gauge range.
Value
Gets or sets the current value displayed on the gauge within the specified range.
Declaration
[Bindable(true)]
public float Value { get; set; }
Property Value
Methods
OnNotifyPropertyChanged(string)
Notifies that a property has changed and invalidates the element for redrawing.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property that changed.
Overrides
OnOrientationChanged()
Raises the OrientationChanged event when the gauge orientation is modified.
Declaration
protected void OnOrientationChanged()
OnPropertyChanged(RadPropertyChangedEventArgs)
Called after a property value has been changed to handle the change.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Called before a property value is changed to allow validation and cancellation.
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
args
The property changing event arguments.
Overrides
OnValueChanged()
Raises the ValueChanged event when the gauge value is modified.
Declaration
protected void OnValueChanged()
Events
OrientationChanged
Occurs when the orientation of the gauge is changed between horizontal and vertical.
ValueChanged
Occurs when the gauge value is modified.