ScaleBase
Base class for all scales.
Definition
Namespace:Telerik.Windows.Controls.Gauge
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class ScaleBase : ItemsControl
Inheritance: objectScaleBase
Derived Classes:
Constructors
Initializes a new instance of the ScaleBase class.
protected ScaleBase()
Fields
CustomItemsProperty
DependencyProperty
Identifies the CustomItems dependency property.
public static readonly DependencyProperty CustomItemsProperty
CustomItemTemplateProperty
DependencyProperty
Identifies the CustomItemTemplate dependency property.
public static readonly DependencyProperty CustomItemTemplateProperty
CustomItemTemplateSelectorProperty
DependencyProperty
Identifies the CustomItemTemplateSelector dependency property.
public static readonly DependencyProperty CustomItemTemplateSelectorProperty
MaxProperty
DependencyProperty
Identifies the Max dependency property.
public static readonly DependencyProperty MaxProperty
MinProperty
DependencyProperty
Identifies the Min dependency property.
public static readonly DependencyProperty MinProperty
MultiplierProperty
DependencyProperty
Identifies the Multiplier dependency property.
public static readonly DependencyProperty MultiplierProperty
RangesProperty
DependencyProperty
Identifies the Ranges dependency property.
public static readonly DependencyProperty RangesProperty
RangeTemplateProperty
DependencyProperty
Identifies the RangeTemplate dependency property.
public static readonly DependencyProperty RangeTemplateProperty
Properties
CellSize
Size
Gets cell size of the scale object. This property supports internal gauge infrastructure and it shouldn't be used from the customer's code.
public Size CellSize { get; }
Gets or sets collection of the custom items.
public GaugeCustomItemCollection CustomItems { get; set; }
CustomItemTemplate
DataTemplate
Gets or sets template of the custom item.
public DataTemplate CustomItemTemplate { get; set; }
CustomItemTemplateSelector
DataTemplateSelector
Gets or sets custom item template selector.
public DataTemplateSelector CustomItemTemplateSelector { get; set; }
Gets default group of the ranges.
protected GaugeRangeGroup DefaultRangeGroup { get; }
Indicators
UIElementCollection
Gets collection of the scale indicators.
public UIElementCollection Indicators { get; }
Gets or sets the scale multiplier.
public double Multiplier { get; set; }
Gets or sets scale ranges.
public GaugeRangeCollection Ranges { get; set; }
RangeTemplate
DataTemplate
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.
public DataTemplate RangeTemplate { get; set; }
Methods
Called to arrange and size the content of a scale.
protected override Size ArrangeOverride(Size finalSize)
The computed size that is used to arrange the content.
Returns:Size
The size of the scale.
Calculate cell size of the scale.
protected virtual Size CalculateCellSize()
Size
Undoes the effects of the PrepareContainerForItemOverride method.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
Returns new ContentPresenter object.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
ContentPresenter object.
Gets position of the object over the scale.
protected abstract Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)
Element to get position.
locationScaleObjectLocationScale object location.
offsetGaugeMeasureOffset from the location.
valuedoubleValue along the scale.
Returns:Point
Position of the object over the scale.
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
protected override Size MeasureOverride(Size availableSize)
The maximum size that the method can return.
Returns:Size
The size of the control, up to the maximum specified by constraint.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
public override void OnApplyTemplate()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Position object using relative measurement. This method supports internal gauge infrastructure and it shouldn't be used from the customer's code.
public void PositionObject(DependencyObject scaleObject)
Scale object.
Occurs when size of the content presenter is changed.
protected virtual void PresenterSizeChanged(object sender, SizeChangedEventArgs e)
Sender.
eSizeChangedEventArgsEvent args.
Resets the theme.
public void ResetTheme()
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.
public void ResizeObject(DependencyObject scaleObject)
Scale object.
Notifies that the element is changed.
protected virtual void ScaleObjectChanged(FrameworkElement element)
Element.
Update ticks and labels on the scale.
protected virtual void UpdateTicksAndLabels()