Class RadialLineStyle
Represents the style of axis line, that used to customize axis line color, corner style, thickness and dash array.
Inheritance
Namespace: Syncfusion.Maui.Gauges
Assembly: Syncfusion.Maui.Gauges.dll
Syntax
public class RadialLineStyle : Element, IThemeElement
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle Fill="Red" CornerStyle="BothCurve"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
Constructors
RadialLineStyle()
Initializes a new instance of the RadialLineStyle class.
Declaration
public RadialLineStyle()
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle Fill="Red" CornerStyle="BothCurve"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
Fields
CornerStyleProperty
Identifies the CornerStyle bindable property.
Declaration
public static readonly BindableProperty CornerStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for CornerStyle bindable property. |
DashArrayProperty
Identifies the DashArray bindable property.
Declaration
public static readonly BindableProperty DashArrayProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for DashArray bindable property. |
FillProperty
Identifies the Fill bindable property.
Declaration
public static readonly BindableProperty FillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Fill bindable property. |
GradientStopsProperty
Identifies the GradientStops bindable property.
Declaration
public static readonly BindableProperty GradientStopsProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for GradientStops bindable property. |
ThicknessProperty
Identifies the Thickness bindable property.
Declaration
public static readonly BindableProperty ThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Thickness bindable property. |
ThicknessUnitProperty
Identifies the ThicknessUnit bindable property.
Declaration
public static readonly BindableProperty ThicknessUnitProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ThicknessUnit bindable property. |
Properties
CornerStyle
Gets or sets corner style of axis line.
Declaration
public CornerStyle CornerStyle { get; set; }
Property Value
Type |
---|
CornerStyle |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle CornerStyle="BothCurve"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
DashArray
Gets or sets double collection, that represents dash array of axis line.
Declaration
public DoubleCollection DashArray { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.DoubleCollection |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle DashArray="2,4"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
Fill
Gets or sets color of axis line.
Declaration
public Brush Fill { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle Fill="Red"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
GradientStops
Gets or sets GaugeGradientStop collection, that used to fill axis line in with gradient effect.
Declaration
public ObservableCollection<GaugeGradientStop> GradientStops { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<GaugeGradientStop> |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle >
<gauge:RadialLineStyle.GradientStops>
<gauge:GaugeGradientStop Value = "36" Color="#FFFF7676" />
<gauge:GaugeGradientStop Value = "100" Color="#FFF54EA2" />
</gauge:RadialLineStyle.GradientStops>
</gauge:RadialLineStyle>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
Thickness
Gets or sets thickness of axis line.
Declaration
public double Thickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle ThicknessUnit="Factor" Thickness="0.2"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
ThicknessUnit
Gets or sets thickness unit of axis line.
Declaration
public SizeUnit ThicknessUnit { get; set; }
Property Value
Type |
---|
SizeUnit |
Examples
<gauge:SfRadialGauge>
<gauge:SfRadialGauge.Axes>
<gauge:RadialAxis>
<gauge:RadialAxis.AxisLineStyle>
<gauge:RadialLineStyle ThicknessUnit="Factor" Thickness="0.2"/>
</gauge:RadialAxis.AxisLineStyle>
</gauge:RadialAxis>
</gauge:SfRadialGauge.Axes>
</gauge:SfRadialGauge>
Methods
OnBindingContextChanged()
Invoked whenever the binding context of the View changes.
Declaration
protected override void OnBindingContextChanged()