Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Expand]Controls and Libraries
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Charts.Designer
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.Mvvm.UI.Interactivity
  [Expand]DevExpress.Mvvm.UI.ModuleInjection
  [Expand]DevExpress.Xpf.Accordion
  [Expand]DevExpress.Xpf.Bars
  [Expand]DevExpress.Xpf.Carousel
  [Expand]DevExpress.Xpf.Charts
  [Expand]DevExpress.Xpf.Charts.Localization
  [Expand]DevExpress.Xpf.Charts.RangeControlClient
  [Expand]DevExpress.Xpf.ChunkList
  [Expand]DevExpress.Xpf.Controls
  [Expand]DevExpress.Xpf.Core
  [Expand]DevExpress.Xpf.Core.ConditionalFormatting
  [Expand]DevExpress.Xpf.Core.DataSources
  [Expand]DevExpress.Xpf.Core.ServerMode
  [Expand]DevExpress.Xpf.Data
  [Expand]DevExpress.Xpf.DataAccess
  [Expand]DevExpress.Xpf.DataAccess.DataSourceWizard
  [Expand]DevExpress.Xpf.Diagram
  [Expand]DevExpress.Xpf.Docking
  [Expand]DevExpress.Xpf.Docking.Base
  [Expand]DevExpress.Xpf.DocumentViewer
  [Expand]DevExpress.Xpf.DXBinding
  [Expand]DevExpress.Xpf.Editors
  [Expand]DevExpress.Xpf.Editors.DateNavigator
  [Expand]DevExpress.Xpf.Editors.ExpressionEditor
  [Expand]DevExpress.Xpf.Editors.ExpressionEditor.Native
  [Expand]DevExpress.Xpf.Editors.Filtering
  [Expand]DevExpress.Xpf.Editors.Flyout
  [Expand]DevExpress.Xpf.Editors.Flyout.Native
  [Expand]DevExpress.Xpf.Editors.Helpers
  [Expand]DevExpress.Xpf.Editors.Popups
  [Expand]DevExpress.Xpf.Editors.RangeControl
  [Expand]DevExpress.Xpf.Editors.Settings
  [Expand]DevExpress.Xpf.Editors.Validation
  [Expand]DevExpress.Xpf.ExpressionEditor
  [Collapse]DevExpress.Xpf.Gauges
   [Expand]AnalogGaugeControl Class
   [Expand]AnimationBase Class
   [Expand]ArcScale Class
   [Expand]ArcScaleCollection Class
   [Expand]ArcScaleIndicator Class
   [Expand]ArcScaleIndicatorCollection<T> Class
   [Expand]ArcScaleLabelOptions Class
    ArcScaleLabelOrientation Enumeration
   [Expand]ArcScaleLayer Class
   [Expand]ArcScaleLayerCollection Class
   [Expand]ArcScaleLayerPresentation Class
    ArcScaleLayoutMode Enumeration
   [Expand]ArcScaleMarker Class
   [Expand]ArcScaleMarkerCollection Class
   [Expand]ArcScaleMarkerOptions Class
    ArcScaleMarkerOrientation Enumeration
   [Expand]ArcScaleMarkerPresentation Class
   [Expand]ArcScaleNeedle Class
   [Expand]ArcScaleNeedleCollection Class
   [Expand]ArcScaleNeedleOptions Class
   [Expand]ArcScaleNeedlePresentation Class
   [Expand]ArcScaleRange Class
   [Expand]ArcScaleRangeBar Class
   [Expand]ArcScaleRangeBarCollection Class
   [Expand]ArcScaleRangeBarOptions Class
   [Expand]ArcScaleRangeBarPresentation Class
   [Expand]ArcScaleRangeCollection Class
   [Expand]BlinkingAnimation Class
   [Expand]CircularGaugeControl Class
   [Expand]CircularGaugeHitInfo Class
   [Expand]CircularGaugeLayer Class
   [Expand]CircularGaugeLayerCollection Class
   [Expand]CircularGaugeLayerPresentation Class
   [Expand]CreepingLineAnimation Class
    CreepingLineAnimationCompletedEventHandler Delegate
    CreepingLineDirection Enumeration
   [Expand]DigitalGaugeControl Class
   [Expand]DigitalGaugeLayer Class
   [Expand]DigitalGaugeLayerCollection Class
   [Expand]DigitalGaugeLayerPresentation Class
   [Expand]DigitalGaugeModel Class
   [Expand]FourteenSegmentsModel Class
   [Expand]FourteenSegmentsPresentation Class
   [Expand]FourteenSegmentsView Class
   [Expand]GaugeControlBase Class
   [Expand]GaugeDependencyObject Class
   [Expand]GaugeDependencyObjectCollection<T> Class
   [Expand]GaugeDependencyObjectCollectionBase<T> Class
   [Expand]GaugeElement Class
   [Expand]GaugeElementCollection<T> Class
   [Expand]GaugeHitInfoBase Class
   [Expand]GaugeLayerBase Class
   [Expand]GaugeLayerCollection<T> Class
   [Expand]IndicatorAnimation Class
   [Expand]IndicatorEnterEventArgs Class
    IndicatorEnterEventHandler Delegate
   [Expand]IndicatorEnterLeaveEventArgs Class
   [Expand]IndicatorLeaveEventArgs Class
    IndicatorLeaveEventHandler Delegate
   [Expand]LayerBase Class
   [Expand]LayerCollection<T> Class
   [Expand]LayerOptions Class
   [Expand]LayerPresentation Class
   [Expand]LinearGaugeControl Class
   [Expand]LinearGaugeHitInfo Class
   [Expand]LinearGaugeLayer Class
   [Expand]LinearGaugeLayerCollection Class
   [Expand]LinearScale Class
   [Expand]LinearScaleCollection Class
   [Expand]LinearScaleIndicator Class
   [Expand]LinearScaleIndicatorCollection<T> Class
   [Expand]LinearScaleLabelOptions Class
    LinearScaleLabelOrientation Enumeration
   [Expand]LinearScaleLayer Class
   [Expand]LinearScaleLayerCollection Class
   [Expand]LinearScaleLayerPresentation Class
    LinearScaleLayoutMode Enumeration
   [Expand]LinearScaleLevelBar Class
   [Expand]LinearScaleLevelBarCollection Class
   [Expand]LinearScaleLevelBarOptions Class
   [Expand]LinearScaleLevelBarPresentation Class
   [Expand]LinearScaleMarker Class
   [Expand]LinearScaleMarkerCollection Class
   [Expand]LinearScaleMarkerOptions Class
    LinearScaleMarkerOrientation Enumeration
   [Expand]LinearScaleMarkerPresentation Class
   [Expand]LinearScaleRange Class
   [Expand]LinearScaleRangeBar Class
   [Expand]LinearScaleRangeBarCollection Class
   [Expand]LinearScaleRangeBarOptions Class
   [Expand]LinearScaleRangeCollection Class
   [Expand]MajorTickmarkOptions Class
   [Expand]MarkerOptionsBase Class
   [Expand]Matrix5x8Model Class
   [Expand]Matrix5x8Presentation Class
   [Expand]Matrix8x14Model Class
   [Expand]Matrix8x14Presentation Class
   [Expand]MatrixView Class
   [Expand]MatrixView5x8 Class
   [Expand]MatrixView8x14 Class
   [Expand]MinorTickmarkOptions Class
   [Expand]PredefinedDigitalGaugeLayerPresentation Class
   [Expand]PredefinedElementKind Class
   [Expand]PredefinedLinearScaleMarkerPresentation Class
   [Expand]PredefinedLinearScaleRangeBarPresentation Class
   [Expand]PresentationBase Class
   [Expand]RangeBarOptionsBase Class
   [Expand]RangeBase Class
   [Expand]RangeOptions Class
   [Expand]RangeValue Structure
    RangeValueType Enumeration
   [Expand]Scale Class
   [Expand]ScaleCollection<T> Class
   [Collapse]ScaleCustomElement Class
     ScaleCustomElement Members
     ScaleCustomElement Constructor
    [Expand]ScaleCustomElement Properties
   [Expand]ScaleCustomElementCollection Class
   [Expand]ScaleCustomLabel Class
   [Expand]ScaleCustomLabelCollection Class
   [Expand]ScaleLabelOptions Class
   [Expand]ScaleLayerBase Class
   [Expand]ScaleLineOptions Class
   [Expand]SegmentsView Class
   [Expand]SevenSegmentsModel Class
   [Expand]SevenSegmentsPresentation Class
   [Expand]SevenSegmentsView Class
   [Expand]SpindleCapOptions Class
   [Expand]SpindleCapPresentation Class
   [Expand]State Class
   [Expand]StateCollection Class
   [Expand]StateIndicatorControl Class
   [Expand]StateIndicatorModel Class
   [Expand]StateInfo Class
   [Expand]StatePresentation Class
   [Expand]StatesMask Structure
   [Expand]SymbolDictionary Class
   [Expand]SymbolLength Structure
    SymbolLengthType Enumeration
   [Expand]SymbolOptions Class
   [Expand]SymbolsAnimation Class
   [Expand]SymbolSegmentsMapping Class
    SymbolType Enumeration
   [Expand]SymbolViewBase Class
    TextDirection Enumeration
    TextHorizontalAlignment Enumeration
    TextVerticalAlignment Enumeration
   [Expand]TickmarkOptions Class
   [Expand]TickmarksPresentation Class
   [Expand]ValueChangedEventArgs Class
    ValueChangedEventHandler Delegate
   [Expand]ValueIndicatorBase Class
   [Expand]ValueIndicatorCollection<T> Class
   [Expand]ValueIndicatorPresentation Class
  [Expand]DevExpress.Xpf.Gauges.Localization
  [Expand]DevExpress.Xpf.Grid
  [Expand]DevExpress.Xpf.Grid.ConditionalFormatting
  [Expand]DevExpress.Xpf.Grid.LookUp
  [Expand]DevExpress.Xpf.Grid.TreeList
  [Expand]DevExpress.Xpf.Layout.Core
  [Expand]DevExpress.Xpf.LayoutControl
  [Expand]DevExpress.Xpf.Map
  [Expand]DevExpress.Xpf.NavBar
  [Expand]DevExpress.Xpf.Navigation
  [Expand]DevExpress.Xpf.PdfViewer
  [Expand]DevExpress.Xpf.PivotGrid
  [Expand]DevExpress.Xpf.PivotGrid.Printing
  [Expand]DevExpress.Xpf.Printing
  [Expand]DevExpress.Xpf.Printing.Parameters
  [Expand]DevExpress.Xpf.Printing.Parameters.Models
  [Expand]DevExpress.Xpf.Printing.PreviewControl
  [Expand]DevExpress.Xpf.Printing.PreviewControl.Bars
  [Expand]DevExpress.Xpf.Prism
  [Expand]DevExpress.Xpf.PropertyGrid
  [Expand]DevExpress.Xpf.Reports.UserDesigner
  [Expand]DevExpress.Xpf.Reports.UserDesigner.Extensions
  [Expand]DevExpress.Xpf.Reports.UserDesigner.Localization
  [Expand]DevExpress.Xpf.Reports.UserDesigner.ReportWizard
  [Expand]DevExpress.Xpf.Reports.UserDesigner.ReportWizard.Pages
  [Expand]DevExpress.Xpf.Ribbon
  [Expand]DevExpress.Xpf.RichEdit
  [Expand]DevExpress.Xpf.RichEdit.Menu
  [Expand]DevExpress.Xpf.Scheduler
  [Expand]DevExpress.Xpf.Scheduler.Drawing
  [Expand]DevExpress.Xpf.Scheduler.Menu
  [Expand]DevExpress.Xpf.Scheduler.Reporting
  [Expand]DevExpress.Xpf.Scheduler.UI
  [Expand]DevExpress.Xpf.Scheduling
  [Expand]DevExpress.Xpf.Scheduling.Editors
  [Expand]DevExpress.Xpf.Scheduling.Reporting
  [Expand]DevExpress.Xpf.Scheduling.Visual
  [Expand]DevExpress.Xpf.SpellChecker
  [Expand]DevExpress.Xpf.Spreadsheet
  [Expand]DevExpress.Xpf.Spreadsheet.Menu
  [Expand]DevExpress.Xpf.TreeMap
  [Expand]DevExpress.Xpf.Utils.Themes
  [Expand]DevExpress.Xpf.WindowsUI
  [Expand]DevExpress.Xpf.WindowsUI.Internal
  [Expand]DevExpress.Xpf.WindowsUI.Navigation
  [Expand]DevExpress.XtraRichEdit
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ScaleCustomElement Class

A custom element on a scale.

Namespace:DevExpress.Xpf.Gauges
Assembly:DevExpress.Xpf.Gauges.v17.2.dll

Expanded Syntax

Expanded Remarks

This custom element is used to add any control to the gauge scale. It is represented by an instance of the ScaleCustomElement class and can be accessed as an item of the ScaleCustomElementCollection object returned by the Scale.CustomElements property.

Expanded Example

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3537.

This example illustrates how to add two buttons as custom elements to the linear scale and use them to increase or decrease the current scale value.

For this, create two ScaleCustomElement objects and add a button control to each custom element.

Finally, to provide the capability for end-users to change the scale's value, handle the button1_Click and button2_Click events and write code that will increment and decrement the scale value.

Expanded 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
                      GaugeElement
                         ScaleCustomElement
                            ScaleCustomLabel

Expanded See Also

How would you rate this topic?​​​​​​​