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

This class is intended to represent the bar of a RadDataBar.

Definition

Namespace:Telerik.Windows.Controls.DataBars

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class DataBarShape : Shape

Inheritance: objectDataBarShape

Constructors

Initializes a new instance of the DataBarShape class.

C#
public DataBarShape()

Fields

HeightPercentProperty

DependencyProperty

Identifies the HeightPercent dependency property.

C#
public static readonly DependencyProperty HeightPercentProperty

LeftPercentProperty

DependencyProperty

Identifies the LeftPercent dependency property.

C#
public static readonly DependencyProperty LeftPercentProperty

OutOfRangeRuleProperty

DependencyProperty

Identifies the OutOfRangeRule dependency property.

C#
public static readonly DependencyProperty OutOfRangeRuleProperty

RightPercentProperty

DependencyProperty

Identifies the RightPercent dependency property.

C#
public static readonly DependencyProperty RightPercentProperty

ShowToolTipProperty

DependencyProperty

Identifies the ShowToolTip dependency property.

C#
public static readonly DependencyProperty ShowToolTipProperty

Properties

Gets a value that represents the Geometry of the Shape.

C#
protected override Geometry DefiningGeometry { get; }
Property Value:

The Geometry of the Shape.

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

C#
public double HeightPercent { get; set; }

Gets or sets the percent (from 0 to 1) that represents the offset from the left boundary that the bar shape will have.

C#
public double LeftPercent { get; set; }

Gets or sets the OutOfRangeRule.

C#
public OutOfRangeRule OutOfRangeRule { get; set; }
Remarks:

Depending on the value of this property an arrow might be drawn at the left or right hand side of the bar shape. The purpose of the arrow is for the RadDataBar to denote that its value is out of the specified range.

Gets or sets the percent (from 0 to 1) that represents the offset from the top boundary that the bar shape will have.

C#
public double RightPercent { get; set; }

Gets or sets a value that determines whether a tooltip should be shown or not.

C#
public bool ShowToolTip { get; set; }

Methods

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

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

Size