Class
ScaleBase

Base class for all scales.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public abstract class ScaleBase : ItemsControl

Inheritance: objectScaleBase

Derived Classes: GraphicScaleNumericScale

Constructors

ScaleBase()

Initializes a new instance of the ScaleBase class.

Declaration

cs-api-definition
protected ScaleBase()

Fields

CustomItemTemplateProperty

Identifies the CustomItemTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CustomItemTemplateProperty

Field Value

DependencyProperty

CustomItemTemplateSelectorProperty

Identifies the CustomItemTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CustomItemTemplateSelectorProperty

Field Value

DependencyProperty

CustomItemsProperty

Identifies the CustomItems dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CustomItemsProperty

Field Value

DependencyProperty

MaxProperty

Identifies the Max dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxProperty

Field Value

DependencyProperty

MinProperty

Identifies the Min dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinProperty

Field Value

DependencyProperty

MultiplierProperty

Identifies the Multiplier dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MultiplierProperty

Field Value

DependencyProperty

RangeTemplateProperty

Identifies the RangeTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RangeTemplateProperty

Field Value

DependencyProperty

RangesProperty

Identifies the Ranges dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RangesProperty

Field Value

DependencyProperty

Properties

CellSize

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

Declaration

cs-api-definition
public Size CellSize { get; }

Property Value

Size

CustomItemTemplate

Gets or sets template of the custom item.

Declaration

cs-api-definition
public DataTemplate CustomItemTemplate { get; set; }

Property Value

DataTemplate

CustomItemTemplateSelector

Gets or sets custom item template selector.

Declaration

cs-api-definition
public DataTemplateSelector CustomItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector

CustomItems

Gets or sets collection of the custom items.

Declaration

cs-api-definition
public GaugeCustomItemCollection CustomItems { get; set; }

Property Value

GaugeCustomItemCollection

DefaultRangeGroup

Gets default group of the ranges.

Declaration

cs-api-definition
protected GaugeRangeGroup DefaultRangeGroup { get; }

Property Value

GaugeRangeGroup

Indicators

Gets collection of the scale indicators.

Declaration

cs-api-definition
public UIElementCollection Indicators { get; }

Property Value

UIElementCollection

Max

Gets or sets maximum value of the scale.

Declaration

cs-api-definition
public double Max { get; set; }

Property Value

double

Min

Gets or sets minimum value of the scale.

Declaration

cs-api-definition
public double Min { get; set; }

Property Value

double

Multiplier

Gets or sets the scale multiplier.

Declaration

cs-api-definition
public double Multiplier { get; set; }

Property Value

double

RangeTemplate

Gets or sets the data template of the range. This property supports internal gauge infrastructure and it shouldn't be used from the customer's code.

Declaration

cs-api-definition
public DataTemplate RangeTemplate { get; set; }

Property Value

DataTemplate

Ranges

Gets or sets scale ranges.

Declaration

cs-api-definition
public GaugeRangeCollection Ranges { get; set; }

Property Value

GaugeRangeCollection

Methods

ArrangeOverride(Size)

Called to arrange and size the content of a scale.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The computed size that is used to arrange the content.

Returns

Size

The size of the scale.

CalculateCellSize()

Calculate cell size of the scale.

Declaration

cs-api-definition
protected virtual Size CalculateCellSize()

Returns

Size

ClearContainerForItemOverride(DependencyObject, object)

Undoes the effects of the PrepareContainerForItemOverride method.

Declaration

cs-api-definition
protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The container element.

item

object

The item.

GetContainerForItemOverride()

Returns new ContentPresenter object.

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

ContentPresenter object.

GetObjectPosition(FrameworkElement, ScaleObjectLocation, GaugeMeasure, double)

Gets position of the object over the scale.

Declaration

cs-api-definition
protected abstract Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)

Parameters

element

FrameworkElement

Element to get position.

location

ScaleObjectLocation

Scale object location.

offset

GaugeMeasure

Offset from the location.

value

double

Value along the scale.

Returns

Point

Position of the object over the scale.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

The item to check.

Returns

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The maximum size that the method can return.

Returns

Size

The size of the control, up to the maximum specified by constraint.

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

PositionObject(DependencyObject)

Position object using relative measurement. This method supports internal gauge infrastructure and it shouldn't be used from the customer's code.

Declaration

cs-api-definition
public void PositionObject(DependencyObject scaleObject)

Parameters

scaleObject

DependencyObject

Scale object.

PresenterSizeChanged(object, SizeChangedEventArgs)

Occurs when size of the content presenter is changed.

Declaration

cs-api-definition
protected virtual void PresenterSizeChanged(object sender, SizeChangedEventArgs e)

Parameters

sender

object

Sender.

e

SizeChangedEventArgs

Event args.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

ResizeObject(DependencyObject)

Calculate size of the object using relative measurement. This method supports internal gauge infrastructure and it shouldn't be used from the customer's code.

Declaration

cs-api-definition
public void ResizeObject(DependencyObject scaleObject)

Parameters

scaleObject

DependencyObject

Scale object.

ScaleObjectChanged(FrameworkElement)

Notifies that the element is changed.

Declaration

cs-api-definition
protected virtual void ScaleObjectChanged(FrameworkElement element)

Parameters

element

FrameworkElement

Element.

UpdateTicksAndLabels()

Update ticks and labels on the scale.

Declaration

cs-api-definition
protected virtual void UpdateTicksAndLabels()