MAUI

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

    Show / Hide Table of Contents

    Class ShapePointer

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

    Inheritance
    System.Object
    RadialPointer
    MarkerPointer
    ShapePointer
    Inherited Members
    MarkerPointer.OffsetProperty
    MarkerPointer.OffsetUnitProperty
    MarkerPointer.Offset
    MarkerPointer.OffsetUnit
    RadialPointer.ValueProperty
    RadialPointer.StepFrequencyProperty
    RadialPointer.EnableAnimationProperty
    RadialPointer.AnimationDurationProperty
    RadialPointer.AnimationEasingProperty
    RadialPointer.IsInteractiveProperty
    RadialPointer.Value
    RadialPointer.StepFrequency
    RadialPointer.EnableAnimation
    RadialPointer.IsInteractive
    RadialPointer.AnimationDuration
    RadialPointer.AnimationEasing
    RadialPointer.ValueChanged
    RadialPointer.ValueChanging
    RadialPointer.ValueChangeStarted
    RadialPointer.ValueChangeCompleted
    Namespace: Syncfusion.Maui.Gauges
    Assembly: Syncfusion.Maui.Gauges.dll
    Syntax
    public class ShapePointer : MarkerPointer
    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50"
                                        IsInteractive="True" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    Constructors

    ShapePointer()

    Declaration
    public ShapePointer()

    Fields

    BorderWidthProperty

    Identifies the BorderWidth bindable property.

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

    The identifier for BorderWidth 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.

    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.

    OverlayFillProperty

    Identifies the OverlayFill bindable property.

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

    The identifier for OverlayFill bindable property.

    OverlayRadiusProperty

    Identifies the OverlayRadius bindable property.

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

    The identifier for OverlayRadius 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.

    Properties

    BorderWidth

    Gets or sets the width of the shape border outline.

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

    It defines the thickness of the border. The default value is 0.

    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50"
                                        BorderWidth="2" Stroke="Red" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    Fill

    Gets or sets a value that specifies the shape fill color of pointer.

    Declaration
    public Brush Fill { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush
    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50" Fill="Blue"
                                        BorderWidth="2" Stroke="Red" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    HasShadow

    Gets or sets a value that specifies the shadow effect for shape pointer.

    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:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50"
                                       HasShadow="true" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    OverlayFill

    Gets or sets a value that specifies the shape overlay fill color of pointer.

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

    It defines the color of the overlay fill. The default value is Null.

    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50" OverlayFill="Gray"
                                       IsInteractive="true" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    OverlayRadius

    Gets or sets a value that specifies the shape overlay fill radius of pointer.

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

    It defines the radius of overlay fill. The default value is double.NaN.

    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50" OverlayRadius="20"
                                       IsInteractive="true" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    ShapeHeight

    Gets or sets a value that specifies the shape height in logical pixels.

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

    It defines the height of the shape. The default value is 16.

    Examples
    <gauge:SfRadialGauge>
         <gauge:SfRadialGauge.Axes>
             <gauge:RadialAxis>
                 <gauge:RadialAxis.Pointers>
                     <gauge:ShapePointer Value="50" ShapeWidth="20"
                                       ShapeHeight="20"   ShapeType="Circle"/>
                 </gauge:RadialAxis.Pointers>
             </gauge:RadialAxis>
         </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    ShapeType

    Gets or sets a value that specifies the shape type for 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 radial gauge. The default is InvertedTriangle.

    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50"
                                        BorderWidth="2" Stroke="Red" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    ShapeWidth

    Gets or sets a value that specifies the shape width in logical pixels.

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

    It defines the width of the shape. The default value is 16.

    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50" ShapeWidth="20"
                                      ShapeHeight="20"   ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    Stroke

    Gets or sets a value that specifies the shape stroke color of pointer.

    Declaration
    public Color Stroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color
    Examples
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ShapePointer Value="50"
                                        BorderWidth="2" Stroke="Red" ShapeType="Circle"/>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved