WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearContentPointer

    Show / Hide Table of Contents

    Class LinearContentPointer

    Represents the pointer that is used to indicate the value with any visual content. It behaves like GaugeAnnotation in SfRadialGauge.

    Inheritance
    System.Object
    LinearGaugePointer
    LinearMarkerPointer
    LinearContentPointer
    Inherited Members
    LinearMarkerPointer.OffsetPointProperty
    LinearMarkerPointer.HorizontalAnchorProperty
    LinearMarkerPointer.VerticalAnchorProperty
    LinearMarkerPointer.OffsetPoint
    LinearMarkerPointer.HorizontalAnchor
    LinearMarkerPointer.VerticalAnchor
    LinearGaugePointer.ValueProperty
    LinearGaugePointer.EnableAnimationProperty
    LinearGaugePointer.AnimationDurationProperty
    LinearGaugePointer.AnimationEasingFunctionProperty
    LinearGaugePointer.Value
    LinearGaugePointer.EnableAnimation
    LinearGaugePointer.AnimationDuration
    LinearGaugePointer.AnimationEasingFunction
    LinearGaugePointer.ValueChanged
    Namespace: Syncfusion.UI.Xaml.Gauges
    Assembly: Syncfusion.Gauge.WinUI.dll
    Syntax
    public class LinearContentPointer : LinearMarkerPointer
    Examples

    The below examples shows, how to add content pointers to linear axis in linear gauge.

    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.Axis>
            <gauge:LinearAxis>
                <gauge:LinearAxis.MarkerPointers>
                    <gauge:LinearContentPointer Value="20">
                        <gauge:LinearContentPointer.Content>
                            <Grid Background="BlueViolet">
                                <TextBlock Text="{Binding Value}" />
                            </Grid>
                        </gauge:LinearContentPointer.Content>
                    </gauge:LinearContentPointer>
                </gauge:LinearAxis.MarkerPointers>
            </gauge:LinearAxis>
        </gauge:SfLinearGauge.Axis>
    </gauge:SfLinearGauge>

    Constructors

    LinearContentPointer()

    Initializes a new instance of the LinearContentPointer class.

    Declaration
    public LinearContentPointer()
    Examples

    The below examples shows, how to add content pointers to linear axis in linear gauge.

    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.Axis>
            <gauge:LinearAxis>
                <gauge:LinearAxis.MarkerPointers>
                    <gauge:LinearContentPointer Value="20">
                        <gauge:LinearContentPointer.Content>
                            <Grid Background="BlueViolet">
                                <TextBlock Text="{Binding Value}" />
                            </Grid>
                        </gauge:LinearContentPointer.Content>
                    </gauge:LinearContentPointer>
                </gauge:LinearAxis.MarkerPointers>
            </gauge:LinearAxis>
        </gauge:SfLinearGauge.Axis>
    </gauge:SfLinearGauge>

    Fields

    ContentProperty

    Identifies the Content dependency property.

    Declaration
    public static readonly DependencyProperty ContentProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for Content dependency property.

    Properties

    Content

    Gets or sets the content of a LinearContentPointer.

    Declaration
    public object Content { get; set; }
    Property Value
    Type Description
    System.Object

    An object that contains the pointer's visual content. The default value is null.

    Examples
    <gauge:SfLinearGauge>
        <gauge:SfLinearGauge.Axis>
            <gauge:LinearAxis>
                <gauge:LinearAxis.MarkerPointers>
                    <gauge:LinearContentPointer Value="60">
                        <gauge:LinearContentPointer.Content>
                            <Grid Background="Orange"
                                  BorderBrush="Black"
                                  BorderThickness="1"
                                  CornerRadius="4">
                                <TextBlock Text="60"
                                           Margin="2" />
                            </Grid>
                        </gauge:LinearContentPointer.Content>
                    </gauge:LinearContentPointer>
                </gauge:LinearAxis.MarkerPointers>
            </gauge:LinearAxis>
        </gauge:SfLinearGauge.Axis>
    </gauge:SfLinearGauge>

    Methods

    OnApplyTemplate()

    Invoke to render LinearContentPointer class.

    Declaration
    protected override void OnApplyTemplate()

    OnCreateAutomationPeer()

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    Microsoft.UI.Xaml.Automation.Peers.AutomationPeer
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved