New to Telerik UI for WPFStart a free 30-day trial

The base class for different gauges.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class GaugeBase : ItemsControl

Inheritance: objectGaugeBase

Derived Classes: LinearGaugeRadRadialGauge

Constructors

Initializes a new instance of the GaugeBase class.

C#
protected GaugeBase()

Fields

CellHeightProperty

DependencyProperty

Identifies the CellHeight dependency property.

C#
public static readonly DependencyProperty CellHeightProperty

CellSizeProperty

DependencyProperty

Identifies the CellSize dependency property.

C#
public static readonly DependencyProperty CellSizeProperty

CellWidthProperty

DependencyProperty

Identifies the CellWidth dependency property.

C#
public static readonly DependencyProperty CellWidthProperty

ScaleStyleProperty

DependencyProperty

Identifies the ScaleStyle dependency property.

C#
public static readonly DependencyProperty ScaleStyleProperty

Properties

Gets cell size of the gauge. This property supports internal gauge infrastructure and it shouldn't be used from the customer's code.

C#
public double CellHeight { get; set; }

Gets cell size of the gauge. This property supports internal gauge infrastructure and it shouldn't be used from the customer's code.

C#
public Size CellSize { get; set; }

Gets cell size of the gauge. This property supports internal gauge infrastructure and it shouldn't be used from the customer's code.

C#
public double CellWidth { get; set; }

Methods

Calculate cell size of the scale.

C#
protected virtual Size CalculateCellSize()
Returns:

Size

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Invoked when the Items property changes.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

Information about the change.

Resets the theme.

C#
public void ResetTheme()