[]
        
(Showing Draft Content)

C1.Android.Gauge.C1Gauge

C1Gauge Class

Base class for the Gauge controls

Inheritance
C1Gauge
Implements
IDisposable
IComponent
Namespace: C1.Android.Gauge
Assembly: C1.Android.Gauge.dll
Syntax
public abstract class C1Gauge : FrameLayout, IDependencyObject, IDisposable, IComponent

Constructors

Name Description
C1Gauge(Context)

Initializes a new instance of a C1Gauge control.

C1Gauge(Context, IAttributeSet)

Initializes a new instance of a C1Gauge control.

Fields

Name Description
BackgroundColorProperty
BackgroundColorPropertyName
DefaultFaceBorderColor
DefaultFaceBorderWidth
DefaultFaceColor
DefaultFormat
DefaultMinMaxFontSize
DefaultMinMaxOpacity
DefaultMinMaxTextColor
DefaultOrigin
DefaultPointerColor
DefaultPointerThickness
DefaultReadonly
DefaultShowRanges
DefaultShowText
DefaultStep
DefaultThickness
DefaultValueFontSize
DefaultValueTextColor
FaceBorderColorProperty
FaceBorderColorPropertyName
FaceBorderDashesProperty
FaceBorderDashesPropertyName
FaceBorderWidthProperty
FaceBorderWidthPropertyName
FaceColorProperty
FaceColorPropertyName
FaceProperty
FacePropertyName
FormatProperty
FormatPropertyName
IsAnimatedProperty
IsAnimatedPropertyName
IsEnabledProperty
IsEnabledPropertyName
IsReadOnlyProperty
IsReadOnlyPropertyName
LoadAnimationProperty
LoadAnimationPropertyName
MaxFontAttributesPropertyName
MaxFontColorPropertyName
MaxFontFamilyPropertyName
MaxFontProperty
MaxFontPropertyName
MaxFontSizePropertyName
MaxOpacityProperty
MaxOpacityPropertyName
MaxProperty
MaxPropertyName
MaxTextColorProperty
MaxTextColorPropertyName
MaxTypefacePropertyName
MinFontAttributesPropertyName
MinFontColorPropertyName
MinFontFamilyPropertyName
MinFontProperty
MinFontPropertyName
MinFontSizePropertyName
MinOpacityProperty
MinOpacityPropertyName
MinProperty
MinPropertyName
MinTextColorProperty
MinTextColorPropertyName
MinTypefacePropertyName
OriginProperty
OriginPropertyName
PointerColorProperty
PointerColorPropertyName
PointerProperty
PointerPropertyName
RangesPropertyName
ShowRangesProperty
ShowRangesPropertyName
ShowTextProperty
ShowTextPropertyName
StepProperty
StepPropertyName
ThicknessProperty
ThicknessPropertyName
UpdateAnimationProperty
UpdateAnimationPropertyName
ValueFontAttributesPropertyName
ValueFontColorPropertyName
ValueFontFamilyPropertyName
ValueFontProperty
ValueFontPropertyName
ValueFontSizePropertyName
ValueProperty
ValuePropertyName
ValueTextColorProperty
ValueTextColorPropertyName
ValueTypefacePropertyName
_textMax

The string of Min, Max, and Value.

_textMaxRect

The rectangle of Min, Max, and Value.

_textMin

The string of Min, Max, and Value.

_textMinRect

The rectangle of Min, Max, and Value.

_textValue

The string of Min, Max, and Value.

_textValueRect

The rectangle of Min, Max, and Value.

Properties

Name Description
BackgroundColor

Gets or sets the background color.

Enabled

Gets or sets the enabled status for this view.

Face

Gets the GaugeRange used to represent the gauge's overall geometry and appearance.

FaceBorderColor

Gets or sets the color of the face border.

FaceBorderDashes

Gets or sets the face border dashes.

FaceBorderWidth

Gets or sets the width of the face border.

FaceColor

Gets or sets the color of the face.

Format

Gets or sets the format string used for displaying the gauge values as text.

IsAnimated

Gets or sets a value indicating whether the control will transition from one state to another using animations.

IsAnimating

Gets the animation is processing.

IsEnabled

Gets or sets whether gauge enables user interaction or not.

IsReadOnly

Gets or sets a value to determine whether the gauge is readonly.

LoadAnimation

Gets or sets the animation used when the control is loaded.

Max

Gets or sets the maximum value of the gauge.

MaxFont

Gets or sets the maximum value font style.

MaxFontColor

Gets or sets the maximum value font color.

MaxOpacity

Gets or sets the maximum value of opacity.

MaxTextColor

Gets or sets the color of the maximum label.

Min

Gets or sets the minimum value of the gauge.

MinFont

Gets or sets the minimum value font style.

MinFontColor

Gets or sets the maximum value font color.

MinOpacity

Gets or sets the minimum value of opacity.

MinTextColor

Gets or sets the color of the minimum label.

Origin

Gets or sets the starting point used for painting the range.

Pointer

Gets the GaugeRange used to represent the gauge's current value.

PointerColor

Gets or sets the color of the pointer.

Ranges

Gets the collection of ranges in this gauge.

RefreshImmediately

Gets or sets refresh immediately.

ShowRanges

Gets or sets whether the gauge should display the ranges contained in the ranges property.

ShowText

Gets or sets which values should be displayed as text in the gauge.

Site

IComponent Site

Step

Gets or sets a value that determines the intervals the can be set when the user interacts directly with the control. For instance if Step=25 the possible values will be 0,25,50,75,100.

Thickness

Gets or sets the thickness of the gauge, on a scale between zero and one.

UpdateAnimation

Gets or sets the animation used when the value property changes.

Value

Gets or sets the value displayed on the gauge.

ValueConverter

Gets or sets an IValueConverter associated with this.

ValueFont

Gets or sets the value font style.

ValueFontColor

Gets or sets the value font color.

ValueTextColor

Gets or sets the color of the value label.

Methods

Name Description
Dispose(bool)
DrawGauge()

Draw the gauge.

DrawMinMaxText()

Draw the text of Min and Max.

DrawValueText(double)

Draw the text of Value.

FormatDecimal(double)

Format decimal number to the string.

GetPercent(double)

Get the value of percent.

GetPointerColor(double)

Get point color from the value.

GetValue(DependencyProperty)
GetValueFromPoint(C1Point)

Get guage value from the point.

Invalidate()

Invalidate the whole view.

MeasureControlSize(MeasureSpecMode, int, bool)

Measure control size.

OnDraw(Canvas)

Implement this to do your drawing.

OnLayout(bool, int, int, int, int)

Called from layout when this view should.

OnMeasure(int, int)

Called to determine the size requirements for this view and all of its children.

OnPropertyChanged(string, object, object, bool)
OnValueChangedEvent(GaugeValueEventArgs)

Raises the ValueChangedEvent event.

Refresh(bool)

Refreshes the control.

Render(bool)

Render.

SetValue(DependencyProperty, object)
StartLoadAnimation()

Start loading animation.

StartUpdateAnimation()

Start updating animation.

UpdateRange(GaugeRange, double)

Update gauge range.

UpdateRangeElement(GaugeRange, double)

Update element range.

Events

Name Description
Disposed

Occurs when the object is disposed.

Tapped

Occurs for every touch event.

ValueChanged

​Occurs when the value changed.