Syncfusion.Gauge.WPF
Members  Example 


PointerCap Class

Represents the pointer cap visual element that "caps" the needle pointer.
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 PointerCap 
   Inherits GaugeElement
'Usage
 
Dim instance As PointerCap
[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 PointerCap : GaugeElement 
Remarks
PointerCap is allowed only for PointerNeedleType.Needle type pointer.
Example
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace PointerCapSample
{
    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.Radius = 116;          
            this.m_gauge.Scales.Add(m_scale);    
            m_scale.PointerCap.PointerCapRadius = 5;
            m_scale.PointerCap.BackgroundBrush = new RadialGradientBrush(Color.FromRgb(194, 207, 229), Color.FromRgb(46, 94, 160));
            CircularPointer pointer1 = new CircularPointer();
            pointer1.BackgroundBrush = Brushes.Orange;
            pointer1.BorderBrush = Brushes.Black;
            pointer1.PointerLength = 100;
            pointer1.PointerWidth = 10;
            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.PointerCap

AssemblyVersion

Syncfusion.Gauge.WPF: 18.1460.0.42

See Also