MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearShapePointer

    Show / Hide Table of Contents

    Class LinearShapePointer

    Create the pointer to indicate the value with built-in shapes. To highlight values, set the shape pointer type to a built-in shape, such as a circle, triangle, inverted triangle or diamond.

    Inheritance
    System.Object
    LinearPointer
    LinearMarkerPointer
    LinearShapePointer
    Inherited Members
    LinearMarkerPointer.OffsetXProperty
    LinearMarkerPointer.OffsetYProperty
    LinearMarkerPointer.AlignmentProperty
    LinearMarkerPointer.OffsetX
    LinearMarkerPointer.OffsetY
    LinearMarkerPointer.Alignment
    LinearPointer.ValueProperty
    LinearPointer.EnableAnimationProperty
    LinearPointer.AnimationDurationProperty
    LinearPointer.AnimationEasingProperty
    LinearPointer.IsInteractiveProperty
    LinearPointer.StepFrequencyProperty
    LinearPointer.PositionProperty
    LinearPointer.DragOffsetProperty
    LinearPointer.Value
    LinearPointer.EnableAnimation
    LinearPointer.AnimationDuration
    LinearPointer.AnimationEasing
    LinearPointer.IsInteractive
    LinearPointer.StepFrequency
    LinearPointer.DragOffset
    LinearPointer.Position
    LinearPointer.ValueChanged
    LinearPointer.ValueChanging
    LinearPointer.ValueChangeStarted
    LinearPointer.ValueChangeCompleted
    LinearPointer.AnimationCompleted
    Namespace: Syncfusion.Maui.Gauges
    Assembly: Syncfusion.Maui.Gauges.dll
    Syntax
    public class LinearShapePointer : LinearMarkerPointer
    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer ShapeType="Circle"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    Constructors

    LinearShapePointer()

    Declaration
    public LinearShapePointer()

    Fields

    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.

    HasShadowProperty

    Identifies the HasShadow bindable property.

    Declaration
    public static readonly BindableProperty HasShadowProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for HasShadow bindable property.

    ShapeHeightProperty

    Identifies the ShapeHeight bindable property.

    Declaration
    public static readonly BindableProperty ShapeHeightProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ShapeHeight bindable property.

    ShapeTypeProperty

    Identifies the ShapeType bindable property.

    Declaration
    public static readonly BindableProperty ShapeTypeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ShapeType bindable property.

    ShapeWidthProperty

    Identifies the ShapeWidth bindable property.

    Declaration
    public static readonly BindableProperty ShapeWidthProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ShapeWidth bindable property.

    StrokeProperty

    Identifies the Stroke bindable property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Stroke bindable property.

    StrokeThicknessProperty

    Identifies the StrokeThickness bindable property.

    Declaration
    public static readonly BindableProperty StrokeThicknessProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for StrokeThickness bindable property.

    Properties

    Fill

    Gets or sets a value that indicates the brush used to paint the shape pointer interior.

    Declaration
    public Brush Fill { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    A Brush that specifies how the LinearShapePointer interior is painted.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer Fill="Red"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    HasShadow

    Gets or sets a flag indicating if the shape pointer has a shadow displayed.

    Declaration
    public bool HasShadow { get; set; }
    Property Value
    Type Description
    System.Boolean

    It defines the shadow visibility of shape pointer. The default value is False.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer ShapeType="Circle" HasShadow="true"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    ShapeHeight

    Gets or sets a value that specifies the shape height.

    Declaration
    public double ShapeHeight { get; set; }
    Property Value
    Type Description
    System.Double

    The height of the LinearShapePointer, in pixels. The default value is 16.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer ShapeType="Circle" ShapeHeight="20" ShapeWidth="20"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    ShapeType

    Gets or sets a value that specifies the default shape type of the pointer.

    Declaration
    public ShapeType ShapeType { get; set; }
    Property Value
    Type Description
    ShapeType

    One of the enumeration values that specifies the shape type of shape pointer in the linear gauge. The default is InvertedTriangle.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer ShapeType="Circle"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    ShapeWidth

    Gets or sets a value that specifies the shape width.

    Declaration
    public double ShapeWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The width of the LinearShapePointer, in pixels. The default value is 16.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer ShapeType="Circle" ShapeHeight="20" ShapeWidth="20"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    Stroke

    Gets or sets the Brush that specifies how the shape outline to be painted.

    Declaration
    public Color Stroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    A Brush that specifies how the LinearShapePointer outline is painted.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer Stroke="Red" StrokeThickness="3"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>

    StrokeThickness

    Gets or sets the value that specifies the width of the shape stroke outline.

    Declaration
    public double StrokeThickness { get; set; }
    Property Value
    Type Description
    System.Double

    It specifies the width of the LinearShapePointer stroke outline. The default value is 0

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.MarkerPointers>
            <gauge:LinearShapePointer Stroke="Red" StrokeThickness="3"
                                  Value="70"/>
        </gauge:SfLinearGauge.MarkerPointers>
    </gauge:SfLinearGauge>
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved