NeedleBase Class

Represents a base class for implementation of Gauge needles.

Definition

Namespace: BeeMobile.Gauge.Needles
Assembly: BeeMobile.Gauge.AVA (in BeeMobile.Gauge.AVA.dll) Version: 11.0.0.0+018ecfb38312b59bfeb4b02da5fbbbcd3ab7378d
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class NeedleBase : Animatable
Inheritance
Object    AvaloniaObject    Animatable    NeedleBase
Derived

Remarks

Gauge needle is an Avalonia framework StyledElement used to visualize values on its scale, if its IsVisible is set to true. A needle is rendered usually as some kind of line which originates at the center of Gauge and ends on the scale at specified Value, provided its LengthPercentage is 100 (%). If LengthPercentage is less than 100%, then length of needle should be shortened to match the specified percentage. The brush used to color the NeedleBase is set in Brush property.

The actual drawing algorithm is then implemented in Draw(DrawingContext, Point, EllipseStruct, Double) method.

Constructors

Properties

Brush Gets or sets an IBrush to be used to draw (visualize) this NeedleBase.
InheritanceParent Gets or sets the parent object that inherited AvaloniaProperty values are inherited from.
(Inherited from AvaloniaObject)
IsVisible Gets or sets a value indicating, if this NeedleBase should be drawn (visualized).
Item Gets or sets the value of a AvaloniaProperty.
(Inherited from AvaloniaObject)
Item Gets or sets a binding for a AvaloniaProperty.
(Inherited from AvaloniaObject)
LengthPercentage Gets or sets a UInt32 which defines length of this NeedleBase as percentage of length between the Gauge center-point and the arc, which represents the scale of the Gauge.
Transitions Gets or sets the property transitions for the control.
(Inherited from Animatable)
Value Gets or sets the value of this NeedleBase. The value is a point on scale of Gauge that this needle should point to.

Methods

Bind(AvaloniaProperty, IBinding) Binds a AvaloniaProperty to an IBinding.
(Inherited from AvaloniaObject)
Bind(AvaloniaProperty, IObservableObject, BindingPriority) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableUMP) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableObject) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority) Binds a AvaloniaProperty to an observable.
(Inherited from AvaloniaObject)
CheckAccess Returns a value indicating whether the current thread is the UI thread.
(Inherited from AvaloniaObject)
ClearValue(AvaloniaProperty) Clears a AvaloniaProperty's local value.
(Inherited from AvaloniaObject)
ClearValue``1(AvaloniaPropertyUMP) Clears a AvaloniaProperty's local value.
(Inherited from AvaloniaObject)
ClearValue``1(DirectPropertyBaseUMP) Clears a AvaloniaProperty's local value.
(Inherited from AvaloniaObject)
ClearValue``1(StyledPropertyUMP) Clears a AvaloniaProperty's local value.
(Inherited from AvaloniaObject)
CoerceValue Coerces the specified AvaloniaProperty.
(Inherited from AvaloniaObject)
Draw Performs drawing of this NeedleBase into specified DrawingContext.
Equals Compares two objects using reference equality.
(Inherited from AvaloniaObject)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetBaseValue``1 Gets an AvaloniaProperty base value.
(Inherited from AvaloniaObject)
GetHashCode Gets the hash code for the object.
(Inherited from AvaloniaObject)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(AvaloniaProperty) Gets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
GetValue``1(DirectPropertyBaseUMP) Gets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
GetValue``1(StyledPropertyUMP) Gets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
IsAnimating Checks whether a AvaloniaProperty is animating.
(Inherited from AvaloniaObject)
IsSet Checks whether a AvaloniaProperty is set on this object.
(Inherited from AvaloniaObject)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnPropertyChanged Called when a avalonia property changes on the object.
(Inherited from AvaloniaObject)
OnPropertyChangedCore
(Inherited from Animatable)
RaisePropertyChanged``1 Raises the PropertyChanged event for a direct property.
(Inherited from AvaloniaObject)
SetAndRaise``1 Sets the backing field for a direct avalonia property, raising the PropertyChanged event if the value has changed.
(Inherited from AvaloniaObject)
SetCurrentValue(AvaloniaProperty, Object) Sets the value of a dependency property without changing its value source.
(Inherited from AvaloniaObject)
SetCurrentValue``1(StyledPropertyUMP, UMP) Sets the value of a dependency property without changing its value source.
(Inherited from AvaloniaObject)
SetValue(AvaloniaProperty, Object, BindingPriority) Sets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
SetValue``1(DirectPropertyBaseUMP, UMP) Sets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
SetValue``1(StyledPropertyUMP, UMP, BindingPriority) Sets a AvaloniaProperty value.
(Inherited from AvaloniaObject)
ToString Turns this NeedleBase object into a string.
(Overrides ObjectToString)
UpdateDataValidation Called to update the validation state for properties for which data validation is enabled.
(Inherited from AvaloniaObject)
VerifyAccess Checks that the current thread is the UI thread and throws if not.
(Inherited from AvaloniaObject)

Events

PropertyChanged Raised when a AvaloniaProperty value changes on this object.
(Inherited from AvaloniaObject)

Fields

BrushProperty Implements Brush property as Avalonia styled-property.
IsVisibleProperty Implements IsVisible property as Avalonia styled-property.
LengthPercentageProperty Implements LengthPercentage property as Avalonia styled-property.
ValueProperty Implements Value property as Avalonia styled-property.

See Also