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

The base class for RadDataBars implementing common properties and logic.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class RadDataBarBase : Control

Inheritance: objectRadDataBarBase

Derived Classes: RadDataBarRadStackedDataBar

Constructors

Initializes a new instance of the RadDataBarBase class.

C#
protected RadDataBarBase()

Fields

AppliedAxisMarginProperty

DependencyProperty

Identifies the AppliedAxisMargin dependency property.

C#
public static readonly DependencyProperty AppliedAxisMarginProperty

Identifies the AppliedAxisVisibility dependency property.

C#
public static readonly DependencyProperty AppliedAxisVisibilityProperty

AxisStrokeProperty

DependencyProperty

Identifies the AxisStroke dependency property.

C#
public static readonly DependencyProperty AxisStrokeProperty

AxisStyleProperty

DependencyProperty

Identifies the AxisStyle dependency property.

C#
public static readonly DependencyProperty AxisStyleProperty

AxisVisibilityProperty

DependencyProperty

Identifies the AxisVisibility dependency property.

C#
public static readonly DependencyProperty AxisVisibilityProperty

BarBorderThicknessProperty

DependencyProperty

Identifies the BarBorderThickness dependency property.

C#
public static readonly DependencyProperty BarBorderThicknessProperty

BarHeightPercentProperty

DependencyProperty

Identifies the BarHeightPercent dependency property.

C#
public static readonly DependencyProperty BarHeightPercentProperty

BarStyleProperty

DependencyProperty

Identifies the BarStyle dependency property.

C#
public static readonly DependencyProperty BarStyleProperty

MaximumProperty

DependencyProperty

Identifies the Maximum dependency property.

C#
public static readonly DependencyProperty MaximumProperty

MinimumProperty

DependencyProperty

Identifies the Minimum dependency property.

C#
public static readonly DependencyProperty MinimumProperty

OriginValueProperty

DependencyProperty

Identifies the OriginValue dependency property.

C#
public static readonly DependencyProperty OriginValueProperty

OverflowTemplateProperty

DependencyProperty

Identifies the OverflowTemplate dependency property.

C#
public static readonly DependencyProperty OverflowTemplateProperty

UnderflowTemplateProperty

DependencyProperty

Identifies the UnderflowTemplate dependency property.

C#
public static readonly DependencyProperty UnderflowTemplateProperty

Properties

Gets the Margin that is actually applied to the axis.

C#
public Thickness AppliedAxisMargin { get; }
Remarks:

This property is set internally depending on the Minimum, Maximum, OriginValue properties and the ActualWidth of the data bar.

Gets the visibility that is actually applied to the axis.

C#
public Visibility AppliedAxisVisibility { get; }
Remarks:

This property is set internally depending on the AxisVisibility property and whether the OriginValue is between the Minimum and Maximum.

Gets or sets the stroke of the axis, which is positioned vertically at the origin value.

C#
public Brush AxisStroke { get; set; }

Gets or sets the style that is applied to the axis.

C#
public Style AxisStyle { get; set; }
Remarks:

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.

C#
public Visibility AxisVisibility { get; set; }

Gets or sets the Stroke of the DataBarShape.

C#
public double BarBorderThickness { get; set; }

Gets or sets the height percent (from 0 to 1) of the bar shape.

C#
public double BarHeightPercent { get; set; }

Gets or sets the style that is applied to the DataBarShape.

C#
public Style BarStyle { get; set; }

Gets or sets the Maximum.

C#
public double Maximum { get; set; }

Gets or sets the Minimum.

C#
public double Minimum { get; set; }

Gets or sets the origin value.

C#
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.

C#
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.

C#
public DataTemplate UnderflowTemplate { get; set; }

Methods

Overrides the Measure pass to define a specific behavior for measuring.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSizeReturns:

Size

Normalizes the value in correspondence to the minimum and maximum and coerces it to be a number between 0 and 1.

C#
protected double NormalizeAndCoerceValue(double value)
Parameters:valuedouble

The value that is to be normalized and coerced.

Returns:

double

The coerced normalized value.

Remarks:

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.

Normalizes the value in correspondence to the Minimum and Maximum.

C#
protected double NormalizeValue(double value)
Parameters:valuedouble

The value that is to be normalized.

Returns:

double

The normalized value.

Remarks:

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.

C#
protected virtual void OnMaximumPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the Minimum has changed.

C#
protected virtual void OnMinimumPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the OriginValue has changed.

C#
protected virtual void OnOriginValuePropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the visibility of the out-of-range templates should be updated.

C#
protected virtual void UpdateOutOfRangeTemplates()