Syncfusion.Gauge.WPF
Members  Example 


LinearScale Class

Represents the scale visual element.
Object Model
LinearScale ClassLinearPointersCollection ClassLinearPointer ClassRangesCollection ClassRangeBase ClassTicksCollection ClassTickBase Class
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 LinearScale 
   Inherits ScaleBase
'Usage
 
Dim instance As LinearScale
[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 LinearScale : ScaleBase 
Remarks
The LinearScale is the System.Windows.Media.Visual.VisualParent for the various elements of the Gauge, such as LinearLabelTick, LinearMarkTick, LinearRange, LinearBarPointer and LinearMarkerPointer.
Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows.Data;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace LinearScaleSample
{
        public partial class Window1 : Window
        {
            private LinearGauge linearGauge1;
            public Window1()
            {                
                InitializeComponent();
                linearGauge1 = new LinearGauge();
                this.linearGauge1.CenterFrameFillColor = Colors.Brown;
                LinearScale scale = new LinearScale();
                scale.Minimum = 0;
                scale.Maximum = 100;
                scale.MinorIntervalValue = 2;
                scale.MajorIntervalValue = 10;
                scale.ScaleBarSize = 20;
                scale.ScaleBarLength = 260;
                linearGauge1.Scales.Add(scale);
                this.Content = linearGauge1;
            }
        }
    }
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.ScaleBase
                              Syncfusion.Windows.Gauge.LinearScale

AssemblyVersion

Syncfusion.Gauge.WPF: 18.2460.0.44

See Also