[]
        
(Showing Draft Content)

C1.Xamarin.Forms.Gauge.C1Gauge

C1Gauge Class

Base class for the Gauge controls

Inheritance
C1Gauge
Implements
Namespace: C1.Xamarin.Forms.Gauge
Assembly: C1.Xamarin.Forms.Gauge.dll
Syntax
public abstract class C1Gauge : View, IComponent, IDisposable

Constructors

Name Description
C1Gauge()

Initializes a new instance of a C1Gauge control.

Fields

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

Properties

Name Description
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.

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.

MaxFontAttributes

​Gets or sets the font attributes of max value.

MaxFontColor

Gets or sets the maximum value font color.

MaxFontFamily

​Gets or sets the font family of max value.

MaxFontSize

​Gets or sets the font size of max value.

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.

MinFontAttributes

​Gets or sets the font attributes of min value.

MinFontColor

Gets or sets the maximum value font color.

MinFontFamily

​Gets or sets the font family of min value.

MinFontSize

​Gets or sets the font size of min value.

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.

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.

ValueFont

Gets or sets the value font style.

ValueFontAttributes

​Gets or sets the font attributes of value.

ValueFontColor

Gets or sets the value font color.

ValueFontFamily

​Gets or sets the font family of value.

ValueFontSize

​Gets or sets the font size of value.

ValueTextColor

Gets or sets the color of the value label.

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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

Raises the ValueChangedEvent event.

Refresh(bool)

Refreshes the control.

Events

Name Description
Disposed

Occurs when the object is disposed.

Tapped

Occurs for every touch event.

ValueChanged

​Occurs when the value changed.