Class LinearLineStyle
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 LinearLineStyle : Element, IThemeElement
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle Fill="Red" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
Constructors
LinearLineStyle()
Initializes a new instance of the LinearLineStyle class.
Declaration
public LinearLineStyle()
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle Fill="Red" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
Fields
CornerRadiusProperty
Identifies the CornerRadius bindable property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for CornerRadius bindable property. |
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. |
Properties
CornerRadius
Gets or sets a value that indicates the corner radius of axis line.
Declaration
public Thickness CornerRadius { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Thickness |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle CornerRadius="5" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
CornerStyle
Gets or sets a CornerStyle enumeration value that describes the corner/edge style of the axis line.
Declaration
public CornerStyle CornerStyle { get; set; }
Property Value
Type | Description |
---|---|
CornerStyle | A value of the enumeration. The default is BothFlat. |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle CornerStyle="BothCurve" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
DashArray
Gets or sets a collection of double values that indicates the pattern of dashes and gaps that is used to axis line.
Declaration
public DoubleCollection DashArray { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.DoubleCollection |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle DashArray="2,4" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
Fill
Gets or sets a value that indicates the brush used to paint the axis line interior.
Declaration
public Brush Fill { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle Fill="Red" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
GradientStops
Gets or sets the collection of GaugeGradientStop that specifies how interior is painted with gradient brush on the axis line/>.
Declaration
public ObservableCollection<GaugeGradientStop> GradientStops { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<GaugeGradientStop> | A collection of the GaugeGradientStop objects associated with the brush, each of which specifies a color and an offset along the scale. The default is an empty collection. |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle >
<gauge:LinearLineStyle.GradientStops>
<gauge:GaugeGradientStop Value="0" Color="Red"/>
<gauge:GaugeGradientStop Value="100" Color="Green"/>
</gauge:LinearLineStyle.GradientStops>
</gauge:LinearLineStyle>
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
Thickness
Gets or sets a value that indicates the thickness of axis line.
Declaration
public double Thickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle Thickness="15" />
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
Methods
OnBindingContextChanged()
Invoked whenever the binding context of the View changes.
Declaration
protected override void OnBindingContextChanged()