RadDataBarBase
The base class for RadDataBars implementing common properties and logic.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class RadDataBarBase : Control
Inheritance: objectRadDataBarBase
Derived Classes:
Constructors
Initializes a new instance of the RadDataBarBase class.
protected RadDataBarBase()
Fields
AppliedAxisMarginProperty
DependencyProperty
Identifies the AppliedAxisMargin dependency property.
public static readonly DependencyProperty AppliedAxisMarginProperty
AppliedAxisVisibilityProperty
DependencyProperty
Identifies the AppliedAxisVisibility dependency property.
public static readonly DependencyProperty AppliedAxisVisibilityProperty
AxisStrokeProperty
DependencyProperty
Identifies the AxisStroke dependency property.
public static readonly DependencyProperty AxisStrokeProperty
AxisStyleProperty
DependencyProperty
Identifies the AxisStyle dependency property.
public static readonly DependencyProperty AxisStyleProperty
AxisVisibilityProperty
DependencyProperty
Identifies the AxisVisibility dependency property.
public static readonly DependencyProperty AxisVisibilityProperty
BarBorderThicknessProperty
DependencyProperty
Identifies the BarBorderThickness dependency property.
public static readonly DependencyProperty BarBorderThicknessProperty
BarHeightPercentProperty
DependencyProperty
Identifies the BarHeightPercent dependency property.
public static readonly DependencyProperty BarHeightPercentProperty
BarStyleProperty
DependencyProperty
Identifies the BarStyle dependency property.
public static readonly DependencyProperty BarStyleProperty
MaximumProperty
DependencyProperty
Identifies the Maximum dependency property.
public static readonly DependencyProperty MaximumProperty
MinimumProperty
DependencyProperty
Identifies the Minimum dependency property.
public static readonly DependencyProperty MinimumProperty
OriginValueProperty
DependencyProperty
Identifies the OriginValue dependency property.
public static readonly DependencyProperty OriginValueProperty
OverflowTemplateProperty
DependencyProperty
Identifies the OverflowTemplate dependency property.
public static readonly DependencyProperty OverflowTemplateProperty
UnderflowTemplateProperty
DependencyProperty
Identifies the UnderflowTemplate dependency property.
public static readonly DependencyProperty UnderflowTemplateProperty
Properties
AppliedAxisMargin
Thickness
Gets the Margin that is actually applied to the axis.
public Thickness AppliedAxisMargin { get; }
This property is set internally depending on the Minimum, Maximum, OriginValue properties and the ActualWidth of the data bar.
AppliedAxisVisibility
Visibility
Gets the visibility that is actually applied to the axis.
public Visibility AppliedAxisVisibility { get; }
This property is set internally depending on the AxisVisibility property and whether the OriginValue is between the Minimum and Maximum.
AxisStroke
Brush
Gets or sets the stroke of the axis, which is positioned vertically at the origin value.
public Brush AxisStroke { get; set; }
AxisStyle
Style
Gets or sets the style that is applied to the axis.
public Style AxisStyle { get; set; }
The axis is the vertical line positioned at the origin value.
AxisVisibility
Visibility
Gets or sets the visibility of the axis, which is positioned vertically at the origin value.
public Visibility AxisVisibility { get; set; }
Gets or sets the Stroke of the DataBarShape.
public double BarBorderThickness { get; set; }
Gets or sets the height percent (from 0 to 1) of the bar shape.
public double BarHeightPercent { get; set; }
BarStyle
Style
Gets or sets the style that is applied to the DataBarShape.
public Style BarStyle { get; set; }
Gets or sets the origin value.
public double OriginValue { get; set; }
OverflowTemplate
DataTemplate
Gets or sets the OverflowTemplate. This is used to denote that (and is shown only if) the value (in DataBar) or the positive sum (in StackedDataBar) is greater than the specified Maximum.
public DataTemplate OverflowTemplate { get; set; }
UnderflowTemplate
DataTemplate
Gets or sets the UnderflowTemplate. This is used to denote that (and is shown only if) the value (in DataBar) or the negative sum (in StackedDataBar) is less than the specified Minimum.
public DataTemplate UnderflowTemplate { get; set; }
Methods
Overrides the Measure pass to define a specific behavior for measuring.
protected override Size MeasureOverride(Size availableSize)
Size
Normalizes the value in correspondence to the minimum and maximum and coerces it to be a number between 0 and 1.
protected double NormalizeAndCoerceValue(double value)
The value that is to be normalized and coerced.
Returns:The coerced normalized value.
For instance the normalized value of 1120 is 1.0 if the minimum is 1000 and maximum is 1100. The normalized value of 1000 is 0.0 if the minimum is 2000 and maximum is 3000.
protected double NormalizeValue(double value)
The value that is to be normalized.
Returns:The normalized value.
For example, the normalized value of 140 is 0.4 if the minimum is 100 and maximum is 200. The normalized value of 1120 is 1.2 if the minimum is 1000 and maximum is 1100.
Called when the Maximum has changed.
protected virtual void OnMaximumPropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Called when the Minimum has changed.
protected virtual void OnMinimumPropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Called when the OriginValue has changed.
protected virtual void OnOriginValuePropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Called when the visibility of the out-of-range templates should be updated.
protected virtual void UpdateOutOfRangeTemplates()