RadDataBar
A control that contains a bar, the length of which represents a value in correspondence to the set minimum, maximum and origin value.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
[TelerikToolboxCategory("Data Visualization")]
public sealed class RadDataBar : RadDataBarBase
Inheritance: objectRadDataBarBaseRadDataBar
Inherited Members
Constructors
Initializes a new instance of the RadDataBar class.
public RadDataBar()
Fields
AppliedBarBorderBrushProperty
DependencyProperty
Identifies the AppliedBarBorderBrush dependency property.
public static readonly DependencyProperty AppliedBarBorderBrushProperty
AppliedBarBrushProperty
DependencyProperty
Identifies the AppliedBarBrush dependency property.
public static readonly DependencyProperty AppliedBarBrushProperty
AppliedLabelMarginProperty
DependencyProperty
Identifies the AppliedLabelMargin dependency property.
public static readonly DependencyProperty AppliedLabelMarginProperty
AppliedOutOfRangeRuleProperty
DependencyProperty
Identifies the AppliedOutOfRangeRule dependency property.
public static readonly DependencyProperty AppliedOutOfRangeRuleProperty
AppliedOutOfRangeTemplateProperty
DependencyProperty
Identifies the AppliedOutOfRangeTemplate dependency property.
public static readonly DependencyProperty AppliedOutOfRangeTemplateProperty
BarLeftPercentProperty
DependencyProperty
Identifies the BarLeftPercent dependency property.
public static readonly DependencyProperty BarLeftPercentProperty
BarRightPercentProperty
DependencyProperty
Identifies the BarRightPercent dependency property.
public static readonly DependencyProperty BarRightPercentProperty
LabelDistanceProperty
DependencyProperty
Identifies the LabelDistance dependency property.
public static readonly DependencyProperty LabelDistanceProperty
LabelFormatProperty
DependencyProperty
Identifies the LabelFormat dependency property.
public static readonly DependencyProperty LabelFormatProperty
LabelPositionProperty
DependencyProperty
Identifies the LabelPosition dependency property.
public static readonly DependencyProperty LabelPositionProperty
LabelStyleProperty
DependencyProperty
Identifies the LabelStyle dependency property.
public static readonly DependencyProperty LabelStyleProperty
LabelTextProperty
DependencyProperty
Identifies the LabelText dependency property.
public static readonly DependencyProperty LabelTextProperty
LabelVisibilityProperty
DependencyProperty
Identifies the LabelVisibility dependency property.
public static readonly DependencyProperty LabelVisibilityProperty
NegativeValueBorderBrushProperty
DependencyProperty
Identifies the NegativeValueBorderBrush dependency property.
public static readonly DependencyProperty NegativeValueBorderBrushProperty
NegativeValueBrushProperty
DependencyProperty
Identifies the NegativeValueBrush dependency property.
public static readonly DependencyProperty NegativeValueBrushProperty
ShowOutOfRangeIndicatorsProperty
DependencyProperty
Identifies the ShowOutOfRangeIndicators dependency property.
public static readonly DependencyProperty ShowOutOfRangeIndicatorsProperty
ValueBorderBrushProperty
DependencyProperty
Identifies the ValueBorderBrush dependency property.
public static readonly DependencyProperty ValueBorderBrushProperty
ValueBrushProperty
DependencyProperty
Identifies the ValueBrush dependency property.
public static readonly DependencyProperty ValueBrushProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets the brush that is set to the Stroke property of the DataBarShape.
public Brush AppliedBarBorderBrush { get; }
This property is set internally. If the Value is greater than the OriginValue, the value of this property is the same as the value of the ValueBorderBrush property. If the Value is less than the OriginValue, the value of this property is the same as the value of the NegativeValueBrush property.
AppliedBarBrush
Brush
Gets the brush that is set to the Fill property of the DataBarShape.
public Brush AppliedBarBrush { get; }
This property is set internally. If the Value is greater than the OriginValue, the value of this property is the same as the value of the ValueBrush property. If the Value is less than the OriginValue, the value of this property is the same as the value of the NegativeValueBrush property.
AppliedLabelMargin
Thickness
Gets the AppliedLabelMargin. This is the margin for the text block that contains the formatted value string.
public Thickness AppliedLabelMargin { get; }
This property is internally set in correspondence to the position of the DataBarShape and the value of the LabelPosition property.
Gets the rule that is applied when the Value is out of range.
public OutOfRangeRule AppliedOutOfRangeRule { get; }
AppliedOutOfRangeTemplate
DataTemplate
Gets the template that is applied when the Value is out of range.
public DataTemplate AppliedOutOfRangeTemplate { get; }
This property is set internally. If the Value is greater than the Maximum, the value of this property is the same as the value of the OverflowTemplate property. If the Value is less than the Minimum, the value of this property is the same as the value of the UnderflowTemplate property.
Gets the left percent.
public double BarLeftPercent { get; }
This property is internally set and is intended to set the LeftPercent property of the DataBarShape so that the bar shape is properly drawn in correspondence to the minimum, maximum and origin value.
Gets the right percent.
public double BarRightPercent { get; }
This property is internally set and is intended to set the RightPercent property of the DataBarShape so that the bar shape is properly drawn in correspondence to the minimum, maximum and origin value.
Gets or sets the minimal distance between the label and the DataBarShape.
public double LabelDistance { get; set; }
If the LabelPosition is set to Left, this is the AppliedLabelMargin.Left. If the LabelPosition is set to Right, this is the AppliedLabelMargin.Right.
Gets or sets the string used for formatting the numeric value.
public string LabelFormat { get; set; }
Gets or sets the position of the label - at the left hand side, right hand side or at the end of the DataBarShape.
public LabelPosition LabelPosition { get; set; }
LabelStyle
Style
Gets or sets the style that is applied to the label.
public Style LabelStyle { get; set; }
Gets the text of the label.
public string LabelText { get; }
This property is internally set. If you need to, you can use the LabelFormat property to format this text.
LabelVisibility
Visibility
Gets or sets the Visibility of the label.
public Visibility LabelVisibility { get; set; }
Gets or sets the brush that is set to the Stroke property of the DataBarShape when the Value is less than the OriginValue.
public Brush NegativeValueBorderBrush { get; set; }
NegativeValueBrush
Brush
Gets or sets the brush that is set to the Fill property of the DataBarShape when the Value is less than the OriginValue.
public Brush NegativeValueBrush { get; set; }
Gets or sets the ShowOutOfRangeIndicators. When this property is true and the Value is greater than the Maximum, an arrow is drawn at the right hand side of the DataBarShape indicating that the Value is out of range. When this property is true and the Value is less than the Minimum, an arrow is drawn at the right hand side of the DataBarShape indicating that the Value is out of range. When this property is false, no arrow is drawn.
public bool ShowOutOfRangeIndicators { get; set; }
ValueBorderBrush
Brush
Gets or sets the brush that is set to the Stroke property of the DataBarShape when the Value is greater than the OriginValue.
public Brush ValueBorderBrush { get; set; }
ValueBrush
Brush
Gets or sets the brush that is set to the Fill property of the DataBarShape when the Value is greater than the OriginValue.
public Brush ValueBrush { get; set; }
Methods
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the Maximum has changed.
protected override void OnMaximumPropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Overrides:
Called when the Minimum has changed.
protected override void OnMinimumPropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Overrides:
Called when the OriginValue has changed.
protected override void OnOriginValuePropertyChanged(DependencyPropertyChangedEventArgs e)
The DependencyPropertyChangedEventArgs instance containing the event data.
Overrides:
Checks if the Value is out of range, and if it is - applies the proper out of range template.
protected override void UpdateOutOfRangeTemplates()
Overrides: