menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CircularScaleTick - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CircularScaleTick

    It helps the user to display ticks that helps to identify the gauge’s data value by marking the gauge scale into regular increments

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

    Constructors

    CircularScaleTick()

    Initializes a new instance of the CircularScaleTick class.

    Declaration
    public CircularScaleTick()

    Fields

    AngleProperty

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

    HalfLengthProperty

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

    LengthProperty

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

    TickShapeContentProperty

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

    TickShapeProperty

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

    TickStrokeProperty

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

    TickStrokeThicknessProperty

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

    Properties

    Angle

    Gets or sets the Angle of the CircularScaleTick.

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

    double

    HalfLength

    Gets HalfLength of the CircularScaleTick used to position the Ticks.

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

    Point

    Remarks

    HalfLength is a read only property used to get the value of the HalfLength.

    Length

    Gets or sets value that decides the length of the Ticks.

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

    double

    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();
               SfCircularGauge gauge = new SfCircularGauge();
               CircularScale scale = new CircularScale();
               scale.TickLength = 10;
               gauge.MainScale = scale;
            }
        }
    }

    TickShape

    Gets or sets value that decides the shape of the Ticks.

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

    double

    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();
               SfCircularGauge gauge = new SfCircularGauge();
               CircularScale scale = new CircularScale();
               scale.TickShape=TickShape.Rectangle;
               scale.TickLength = 10;
               gauge.MainScale = scale;
            }
        }
    }

    TickStroke

    Gets or sets the brush that describes the TickStroke of the CircularScaleTick.

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

    Brush

    Remarks

    TickStroke property will remains effective until the value of the BindRangeStrokeToTicks property is false.

    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();
                SfCircularGauge gauge = new SfCircularGauge();
                CircularScale scale = new CircularScale();
                scale.TickStroke = new SolidColorBrush(Colors.Red);
                gauge.MainScale = scale;
            }
        }
    }

    TickStrokeThickness

    Gets or sets the thickness of the TickStroke of the CircularScaleTick.

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

    double

    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();
               SfCircularGauge gauge = new SfCircularGauge();
               CircularScale scale = new CircularScale();
               scale.TickStrokeThickness =3;
               gauge.MainScale = scale;
            }
        }
    }

    Extension Methods

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