Syncfusion.Gauge.WPF
Members  Example 


Syncfusion.Windows.Gauge Namespace : CircularCustomLabel Class

CircularCustomLabel Class

Represents a customizable label child element of the circular Gauge control.
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 CircularCustomLabel 
   Inherits LocalizableGaugeElement
'Usage
 
Dim instance As CircularCustomLabel
[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 CircularCustomLabel : LocalizableGaugeElement 
Remarks
The Label can be placed anywhere within the Gauge using Location property.
Example
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CustomLabelSample
{   
    public partial class Window1 : Window
    {
        private CircularGauge m_gauge;
        private CircularCustomLabel m_customLabel1;
        private CircularCustomLabel m_customLabel2;
        public Window1()
        {
            InitializeComponent();
            m_gauge = new CircularGauge();
            m_customLabel1 = new CircularCustomLabel();
            m_customLabel2 = new CircularCustomLabel();
            m_customLabel1.LabelValue = "Speedometer";
            m_customLabel2.LabelValue = "MPH";
            m_customLabel1.BackgroundBrush = Brushes.White;
            m_customLabel2.BackgroundBrush = Brushes.White;
            m_customLabel1.Location = new Point(50, 20);
            m_customLabel2.Location = new Point(50, 80);
            m_gauge.CustomLabels.Add(m_customLabel1);
            m_gauge.CustomLabels.Add(m_customLabel2);
            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.LocalizableGaugeElement
                           Syncfusion.Windows.Gauge.CircularCustomLabel

AssemblyVersion

Syncfusion.Gauge.WPF: 17.4460.0.46

See Also