menu

Class ContentPointer - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ContentPointer

    Create the pointer to indicate the value with any visual content.

    Inheritance
    System.Object
    GaugePointer
    MarkerPointer
    ContentPointer
    Inherited Members
    GaugePointer.AnimationDuration
    GaugePointer.AnimationDurationProperty
    GaugePointer.AnimationEasingFunction
    GaugePointer.AnimationEasingFunctionProperty
    GaugePointer.EnableAnimation
    GaugePointer.EnableAnimationProperty
    GaugePointer.IsInteractive
    GaugePointer.IsInteractiveProperty
    GaugePointer.OnPointerReleased(PointerRoutedEventArgs)
    GaugePointer.Value
    GaugePointer.ValueChangeCompleted
    GaugePointer.ValueChanged
    GaugePointer.ValueChangeStarted
    GaugePointer.ValueChanging
    GaugePointer.ValueProperty
    MarkerPointer.MarkerOffset
    MarkerPointer.MarkerOffsetProperty
    MarkerPointer.OffsetUnit
    MarkerPointer.OffsetUnitProperty
    Namespace: Syncfusion.UI.Xaml.Gauges
    Assembly: Syncfusion.Gauge.WinUI.dll
    Syntax
    public class ContentPointer : MarkerPointer
    Examples

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

    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ContentPointer Value="20">
                        <gauge:ContentPointer.Content>
                            <Grid Background="BlueViolet">
                                <TextBlock Text="{Binding Value}" />
                            </Grid>
                        </gauge:ContentPointer.Content>
                    </gauge:ContentPointer>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    Constructors

    ContentPointer()

    Initializes new instance of ContentPointer class.

    Declaration
    public ContentPointer()
    Examples

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

    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ContentPointer Value="20">
                        <gauge:ContentPointer.Content>
                            <Grid Background="BlueViolet">
                                <TextBlock Text="{Binding Value}" />
                            </Grid>
                        </gauge:ContentPointer.Content>
                    </gauge:ContentPointer>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    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 ContentPointer.

    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:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <gauge:RadialAxis>
                <gauge:RadialAxis.Pointers>
                    <gauge:ContentPointer Value="20">
                        <gauge:ContentPointer.Content>
                             <Grid Background="Orange"
                                  BorderBrush="Black"
                                  BorderThickness="1"
                                  CornerRadius="4">
                                <TextBlock Text="60"
                                           Margin="2" />
                            </Grid>
                        </gauge:ContentPointer.Content>
                    </gauge:ContentPointer>
                </gauge:RadialAxis.Pointers>
            </gauge:RadialAxis>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>

    Methods

    OnApplyTemplate()

    Invoked to render ContentPointer class.

    Declaration
    protected override void OnApplyTemplate()

    OnCreateAutomationPeer()

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type
    Microsoft.UI.Xaml.Automation.Peers.AutomationPeer
    Overrides
    GaugePointer.OnCreateAutomationPeer()

    OnPointerPressed(PointerRoutedEventArgs)

    Called when the pointer gets pressed.

    Declaration
    protected override void OnPointerPressed(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The pointer routed event arguments.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved