Syncfusion.Gauge.WPF
Members  Example 


Syncfusion.Windows.Gauge Namespace : CircularMarkTick Class

CircularMarkTick Class

Represents the Tick of the circular scale. The Major/Minor ticks are set by using the TickStyle property.
Syntax
'Declaration
 
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class CircularMarkTick 
   Inherits TickBase
'Usage
 
Dim instance As CircularMarkTick
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class CircularMarkTick : TickBase 
Remarks
The Ticks are of two types, Major and Minor Tick, which can be set by using the TickStyle property. TickStyle.MajorTick is placed at an interval specified by ScaleBase.MajorIntervalValue and TickStyle.MinorTick is placed at an interval specified by ScaleBase.MinorIntervalValue property.
Example
using System;
using System.Windows;  
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CircularMarkTickSample
{
    public partial class Window1 : Window
    {
        private CircularScale m_scale;      
        private CircularGauge m_gauge;
        public Window1()
        {
            InitializeComponent();
            m_scale = new CircularScale();
            m_gauge = new CircularGauge();
            m_scale.ShadowOffset = 1;
            m_scale.Minimum = 0;
            m_scale.Maximum = 100;
            m_scale.MinorIntervalValue = 2;
            m_scale.MajorIntervalValue = 10;
            m_scale.StartAngle = 120;
            m_scale.GapSweepAngle = 300;
            m_scale.ScaleBarSize = 5;
            m_scale.Radius = 116;
            this.m_gauge.Scales.Add(m_scale); 
            CircularMarkTick m_majortick = new CircularMarkTick();
            m_majortick.TickWidth = 4;
            m_majortick.TickHeight = 9;
            m_majortick.TickPlacement = ScalePlacement.Inside;
            m_majortick.TickStyle = TickStyle.MajorTick;
            m_majortick.BackgroundBrush = Brushes.White;
            m_majortick.TickShape = TickShape.Ellipse; 
            CircularMarkTick m_minortick = new CircularMarkTick();
            m_minortick.TickWidth = 1;
            m_minortick.TickHeight = 4;
            m_minortick.TickPlacement = ScalePlacement.Inside;
            m_minortick.TickStyle = TickStyle.MinorTick;
            m_minortick.BackgroundBrush = Brushes.White;
            m_scale.Ticks.Add(m_minortick);
            m_scale.Ticks.Add(m_majortick);
            this.Content = m_gauge;
        }
    }
}
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Syncfusion.Windows.Gauge.GaugeElement
                        Syncfusion.Windows.Gauge.TickBase
                           Syncfusion.Windows.Gauge.CircularMarkTick

AssemblyVersion

Syncfusion.Gauge.WPF: 17.4460.0.46

See Also