Syncfusion.Gauge.WPF
Members  Example 


Syncfusion.Windows.Gauge Namespace : CircularPointer Class

CircularPointer Class

Represents the pointer visual element that moves along the circular scale of the circular gauge.
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 CircularPointer 
   Inherits GaugeElement
'Usage
 
Dim instance As CircularPointer
[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 CircularPointer : GaugeElement 
Remarks
To use a pointer as a MarkerPointer, the PointerNeedleType should be set to marker and MarkerStyle can be choosed from the available styles.
Example
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CircularPointerSample
{
    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 = 1.5;
            m_scale.Radius = 116;
            this.m_gauge.Scales.Add(m_scale);
            CircularPointer pointer1 = new CircularPointer();          
            pointer1.PointerLength = 100;
            pointer1.PointerWidth = 20;
            pointer1.PointerPlacement = ScalePlacement.Outside;
            m_scale.Pointers.Add(pointer1);
            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.CircularPointer

AssemblyVersion

Syncfusion.Gauge.WPF: 17.4460.0.46

See Also