ClassScaleBase
Base class for all scales.
Definition
Namespace:Telerik.Windows.Controls.Gauge
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public abstract class ScaleBase : ItemsControl
Inheritance: objectScaleBase
Derived Classes:
Constructors
ScaleBase()
Initializes a new instance of the ScaleBase class.
Declaration
protected ScaleBase()
Fields
CustomItemTemplateProperty
Identifies the CustomItemTemplate dependency property.
Declaration
public static readonly DependencyProperty CustomItemTemplateProperty
Field Value
DependencyProperty
CustomItemTemplateSelectorProperty
Identifies the CustomItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty CustomItemTemplateSelectorProperty
Field Value
DependencyProperty
CustomItemsProperty
Identifies the CustomItems dependency property.
Declaration
public static readonly DependencyProperty CustomItemsProperty
Field Value
DependencyProperty
MaxProperty
Identifies the Max dependency property.
Declaration
public static readonly DependencyProperty MaxProperty
Field Value
DependencyProperty
MinProperty
Identifies the Min dependency property.
Declaration
public static readonly DependencyProperty MinProperty
Field Value
DependencyProperty
MultiplierProperty
Identifies the Multiplier dependency property.
Declaration
public static readonly DependencyProperty MultiplierProperty
Field Value
DependencyProperty
RangeTemplateProperty
Identifies the RangeTemplate dependency property.
Declaration
public static readonly DependencyProperty RangeTemplateProperty
Field Value
DependencyProperty
RangesProperty
Identifies the Ranges dependency property.
Declaration
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
public Size CellSize { get; }
Property Value
Size
CustomItemTemplate
Gets or sets template of the custom item.
Declaration
public DataTemplate CustomItemTemplate { get; set; }
Property Value
DataTemplate
CustomItemTemplateSelector
Gets or sets custom item template selector.
Declaration
public DataTemplateSelector CustomItemTemplateSelector { get; set; }
Property Value
DataTemplateSelector
CustomItems
Gets or sets collection of the custom items.
Declaration
public GaugeCustomItemCollection CustomItems { get; set; }
Property Value
DefaultRangeGroup
Gets default group of the ranges.
Declaration
protected GaugeRangeGroup DefaultRangeGroup { get; }
Property Value
Indicators
Gets collection of the scale indicators.
Declaration
public UIElementCollection Indicators { get; }
Property Value
UIElementCollection
Max
Gets or sets maximum value of the scale.
Min
Gets or sets minimum value of the scale.
Multiplier
Gets or sets the scale multiplier.
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
public DataTemplate RangeTemplate { get; set; }
Property Value
DataTemplate
Ranges
Gets or sets scale ranges.
Declaration
public GaugeRangeCollection Ranges { get; set; }
Property Value
Methods
ArrangeOverride(Size)
Called to arrange and size the content of a scale.
Declaration
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
protected virtual Size CalculateCellSize()
Returns
Size
ClearContainerForItemOverride(DependencyObject, object)
Undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The item.
GetContainerForItemOverride()
Returns new ContentPresenter object.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
ContentPresenter object.
GetObjectPosition(FrameworkElement, ScaleObjectLocation, GaugeMeasure, double)
Gets position of the object over the scale.
Declaration
protected abstract Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)
Parameters
element
FrameworkElement
Element to get position.
location
Scale object location.
offset
Offset from the location.
value
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.
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
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
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
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
public void PositionObject(DependencyObject scaleObject)
Parameters
scaleObject
DependencyObject
Scale object.
PresenterSizeChanged(object, SizeChangedEventArgs)
Occurs when size of the content presenter is changed.
Declaration
protected virtual void PresenterSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
sender
Sender.
e
SizeChangedEventArgs
Event args.
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
public void ResizeObject(DependencyObject scaleObject)
Parameters
scaleObject
DependencyObject
Scale object.
ScaleObjectChanged(FrameworkElement)
Notifies that the element is changed.
Declaration
protected virtual void ScaleObjectChanged(FrameworkElement element)
Parameters
element
FrameworkElement
Element.
UpdateTicksAndLabels()
Update ticks and labels on the scale.
Declaration
protected virtual void UpdateTicksAndLabels()