UWP

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

    Show / Hide Table of Contents

    Class LinearPointer

    Represents the linear pointer.

    Inheritance
    System.Object
    LinearPointer
    Namespace: Syncfusion.UI.Xaml.Gauges
    Assembly: Syncfusion.SfGauge.UWP.dll
    Syntax
    public class LinearPointer : Control

    Constructors

    LinearPointer()

    Initializes a new instance of the LinearPointer class.

    Declaration
    public LinearPointer()

    Fields

    AnimationDurationProperty

    Using a DependencyProperty as the backing store for AnimationDuration.

    Declaration
    public static readonly DependencyProperty AnimationDurationProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    BarPointerStrokeProperty

    Using a DependencyProperty as the backing store for BarPointerStroke. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty BarPointerStrokeProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    BarPointerStrokeThicknessProperty

    Using a DependencyProperty as the backing store for BarPointerStrokeThickness. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty BarPointerStrokeThicknessProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    CornerRadiusProperty

    Using a DependencyProperty as the backing store for SymbolPointerPosition. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    EnableAnimationProperty

    Using a DependencyProperty as the backing store for EnableAnimation. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty EnableAnimationProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    GradientStopsProperty

    Using a DependencyProperty as the backing store for Scales. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty GradientStopsProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    PointerPositionFactorProperty

    Using a DependencyProperty as the backing store for PointerPositionFactor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty PointerPositionFactorProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    PointerTypeProperty

    Using a DependencyProperty as the backing store for PointerType. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty PointerTypeProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    ShowPointerProperty

    Using a DependencyProperty as the backing store for ShowPointer. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShowPointerProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerHeightProperty

    Using a DependencyProperty as the backing store for SymbolPointerHeight. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerHeightProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerPositionProperty

    Using a DependencyProperty as the backing store for SymbolPointerPosition. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerPositionProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerStrokeProperty

    Using a DependencyProperty as the backing store for SymbolPointerStroke. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerStrokeProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerStyleProperty

    Using a DependencyProperty as the backing store for SymbolPointerStyle. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerStyleProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerTemplateProperty

    Using a DependencyProperty as the backing store for SymbolPointerTemplate. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerTemplateProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    SymbolPointerWidthProperty

    Using a DependencyProperty as the backing store for SymbolPointerWidth. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SymbolPointerWidthProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    ValueProperty

    Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ValueProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    Properties

    AnimationDuration

    Gets or sets the animation duration for pointers in linear gauge. linear scale should be enabled or not.

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

    BarPointerStroke

    Gets or sets the color of bar pointer.

    Declaration
    public Brush BarPointerStroke { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush
    Examples

    using Syncfusion.UI.Xaml.Gauges; using Windows.UI; using Windows.UI.Xaml.Media; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.BarPointer; linearPointer.BarPointerStroke = new SolidColorBrush(Colors.Red); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    BarPointerStrokeThickness

    Gets or sets the thickness of bar pointer.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.BarPointer; linearPointer.BarPointerStrokeThickness = 15; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    CornerRadius

    Gets of sets CornerRadius value that represents linear gauge pointer corner radius.

    Declaration
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.CornerRadius

    EnableAnimation

    Gets or sets a value indicating whether the animation for pointers in linear scale should be enabled or not.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.EnableAnimation = true; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    GradientStops

    Gets or sets the collection of Scales to the ciruclar gauge.

    Declaration
    public ObservableCollection<GaugeGradientStop> GradientStops { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<GaugeGradientStop>

    CircularScale

    Examples
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using Common;
    using Syncfusion.UI.Xaml.Gauges;
    namespace GaugeWinRTSamples
    {
        public sealed partial class GaugePosition :SampleView
        {
            public GaugePosition()
            {
                   InitializeComponent();
                   SfLinearGauge gauge = new SfLinearGauge();
                   LinearScale scale = new LinearScale();
                   scale.Height = 300;
                   scale.Width = 300;
                   scale.StartAngle = 180;
                   scale.SweepAngle = 180;
                   scale.StartValue = 0;
                   scale.EndValue = 100;
                   scale.Height = 200;
                   scale.Width = 200;
                   gauge.Scales.Add(scale); 
    
            }
        }
    }

    PointerPositionFactor

    Gets or sets the factor value to position pointers based upon the scale.

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

    It shows effect only if ElementsPosition of linear scale is set as Custom.

    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerPositionFactor = 0.5; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    PointerType

    Gets or sets the type of pointer in the linear scale.

    Declaration
    public LinearPointerType PointerType { get; set; }
    Property Value
    Type Description
    LinearPointerType
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    ShowPointer

    Gets or sets a value indicating whether the pointer should be shown or hidden.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.ShowPointer = true; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerHeight

    Gets or sets the height of the symbol pointer.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerHeight = 50; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerPosition

    Gets or sets the position of the symbol pointer.

    Declaration
    public LinearSymbolPointersPosition SymbolPointerPosition { get; set; }
    Property Value
    Type Description
    LinearSymbolPointersPosition
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerPosition = LinearSymbolPointersPosition.Above; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerStroke

    Gets or sets the color of the symbol pointer.

    Declaration
    public Brush SymbolPointerStroke { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush
    Examples

    using Syncfusion.UI.Xaml.Gauges; using Windows.UI; using Windows.UI.Xaml.Media; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerStroke = new SolidColorBrush(Colors.Red); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerStyle

    Gets or sets the style of the symbol pointer.

    Declaration
    public LinearSymbolPointerStyle SymbolPointerStyle { get; set; }
    Property Value
    Type Description
    LinearSymbolPointerStyle
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerStyle = LinearSymbolPointerStyle.Triangle; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerTemplate

    Gets or sets the template for customizing the symbol pointer.

    Declaration
    public DataTemplate SymbolPointerTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate
    Remarks

    To customize the symbol pointer SymbolPointerStyle of linear pointer should be set as Custom.

    Examples

    using Syncfusion.UI.Xaml.Gauges; using Windows.UI.Xaml; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerStyle = LinearSymbolPointerStyle.Custom; linearPointer.SymbolPointerTemplate = this.Resources["EllipseSymbolTemplateKey"] as DataTemplate; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    SymbolPointerWidth

    Gets or sets the width of the symbol pointer.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearPointer.PointerType = LinearPointerType.SymbolPointer; linearPointer.SymbolPointerWidth = 30; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    Value

    Gets or sets the value for pointer in the linear gauge.

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

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearPointer linearPointer = new LinearPointer(); linearPointer.Value = 25; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Pointers.Add(linearPointer); this.Layout.Children.Add(linearGauge); } }
    }

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved