[]
        
(Showing Draft Content)

C1.Blazor.Gauge.C1Gauge

C1Gauge Class

Base class for the Gauge controls

Namespace: C1.Blazor.Gauge
Assembly: C1.Blazor.Gauge.dll
Syntax
public abstract class C1Gauge : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1Gauge()

Initializes a new instance of the C1Gauge class.

Fields

Name Description
DefaultFaceBorderColor
DefaultFaceBorderWidth
DefaultFaceColor
DefaultFormat
DefaultMax
DefaultMin
DefaultMinMaxFontName
DefaultMinMaxFontSize
DefaultMinMaxOpacity
DefaultMinMaxTextColor
DefaultOrigin
DefaultPointerColor
DefaultPointerThickness
DefaultReadonly
DefaultShowRanges
DefaultStep
DefaultTextVisibility
DefaultThickness
DefaultValueFontName
DefaultValueFontSize
DefaultValueTextColor
FaceBorderColorProperty

Identifies the FaceBorderColor dependency property.

FaceBorderDashesProperty

Identifies the FaceBorderDashes dependency property.

FaceBorderWidthProperty

Identifies the FaceBorderWidth dependency property.

FaceColorProperty

Identifies the FaceColor dependency property.

FaceProperty

Identifies the Face dependency property.

FormatProperty

Identifies the Format dependency property.

IsEnabledProperty

Identifies the IsEnabled dependency property.

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

MaxFontFamilyProperty

Identifies the MaxFontFamily dependency property.

MaxFontSizeProperty

Identifies the MaxFontSize dependency property.

MaxFontStyleProperty

Identifies the MaxFontStyle dependency property.

MaxFontWeightProperty

Identifies the MaxFontWeight dependency property.

MaxProperty

Identifies the Max dependency property.

MaxTextColorProperty

Identifies the MaxTextColor dependency property.

MinFontFamilyProperty

Identifies the MinFontFamily dependency property.

MinFontSizeProperty

Identifies the MinFontSize dependency property.

MinFontStyleProperty

Identifies the MinFontStyle dependency property.

MinFontWeightProperty

Identifies the MinFontWeight dependency property.

MinProperty

Identifies the Min dependency property.

MinTextColorProperty

Identifies the MinTextColor dependency property.

OriginProperty

Identifies the Origin dependency property.

PointerColorProperty

Identifies the PointerColor dependency property.

PointerProperty

Identifies the Pointer dependency property.

ShowRangesProperty

Identifies the ShowRanges dependency property.

StepProperty

Identifies the Step dependency property.

TextVisibilityProperty

Identifies the TextVisibility dependency property.

ThicknessProperty

Identifies the Thickness dependency property.

ValueChangedProperty

Identifies the ValueChanged dependency property.

ValueFontFamilyProperty

Identifies the ValueFontFamily dependency property.

ValueFontSizeProperty

Identifies the ValueFontSize dependency property.

ValueFontStyleProperty

Identifies the ValueFontStyle dependency property.

ValueFontWeightProperty

Identifies the ValueFontWeight dependency property.

ValueProperty

Identifies the Value dependency property.

ValueTextColorProperty

Identifies the ValueTextColor dependency property.

_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.

canAnimate
id

Chart unique id.

list

Stores a list of charts.

Properties

Name Description
Face

Gets or sets 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.

Host

Gets or sets control's host element.

IsEnabled

Gets or sets whether gauge enables user interaction or not.

IsReadOnly

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

Max

Gets or sets the maximum value of the gauge.

MaxFont

Gets or sets the maximum value font style.

MaxFontFamily

Gets or sets the maximum value font style.

MaxFontSize

Gets or sets the maximum value font style.

MaxFontStyle

Gets or sets the maximum value font style.

MaxFontWeight

Gets or sets the maximum value font style.

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.

MinFontFamily

Gets or sets the minimum value font style.

MinFontSize

Gets or sets the minimum value font style.

MinFontStyle

Gets or sets the minimum value font style.

MinFontWeight

Gets or sets the minimum value font style.

MinTextColor

Gets or sets the color of the minimum label.

OnValueChanged

​Occurs when the value changed.

Origin

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

Pointer

Gets or sets 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.

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.

TextVisibility

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

Thickness

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

Value

Gets or sets the value displayed on the gauge.

ValueChanged

This Callback will gets and sets by framework automatically for binding feature.

ValueFont

Gets or sets the value font style.

ValueFontFamily

Gets or sets the value font style.

ValueFontSize

Gets or sets the value font style.

ValueFontStyle

Gets or sets the value font style.

ValueFontWeight

Gets or sets the value font style.

ValueTextColor

Gets or sets the color of the value label.

svg

Gets or set the SVG presentation.

Methods

Name Description
Dispose(bool)
DrawBorder()

Draw the border with BorderBrush and BorderThickness.

DrawGauge()

Draw the gauge.

DrawMinMaxText()

Draw the text of Min and Max.

DrawValueText(double)

Draw the text of Value.

FocusAsync()

Sets the focus in the control.

FormatDecimal(double)

Format decimal number to the string.

GetDouble(JsonElement, string)
GetPercent(double)

Get the value of percent.

GetPointerColor(double)

Get point color from the value.

GetValueFromPoint(C1Point)

Get guage value from the point.

InitializeAsync()

This method is called when the component is initialized.

MeasureOverride(C1Size)

Provides the behavior for the Measure pass of the layout cycle.

OnAfterRender(bool)
OnAfterRenderAsync(bool)

Invoked after async rendering.

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

Raises the ValueChangedEvent event.

Refresh(bool)

Refreshes the control.

RenderTo(IRenderingEngine)

Renders the gauge to IRenderingEngine.

UpdateRange(GaugeRange, double)

Update gauge range.

UpdateRangeElement(GaugeRange, double)

Update element range.

Events

Name Description
Tapped

Occurs for every touch event.