Class
BarIndicatorSegment

This class represents a segment in a segmented bar indicator. A segment can have a distinctive color, length and thickness.

Definition

Namespace:Telerik.UI.Xaml.Controls.DataVisualization

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class BarIndicatorSegment : RadControl

Inheritance: objectRadControlBarIndicatorSegment

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

BarIndicatorSegment()

Initializes a new instance of the BarIndicatorSegment class.

Declaration

cs-api-definition
public BarIndicatorSegment()

Fields

LengthProperty

Identifies the Length property.

Declaration

cs-api-definition
public static readonly DependencyProperty LengthProperty

Field Value

DependencyProperty

StrokeProperty

Identifies the Stroke property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeProperty

Field Value

DependencyProperty

ThicknessProperty

Identifies the Thickness property.

Declaration

cs-api-definition
public static readonly DependencyProperty ThicknessProperty

Field Value

DependencyProperty

Properties

Length

Gets or sets the length of the current segment.

Declaration

cs-api-definition
public double Length { get; set; }

Property Value

double

Remarks

The length does not need to be an absolute value. Internally a ratio is calculated that determines the actual length of each segment, relative to the actual value range of the owning GaugePanel instance. For example if a segmented indicator has three segments of length 1, they will be of evenly placed over the available indicator space. This property is somewhat similar to the relative size of the Grid panel's columns and rows.

Stroke

Gets or sets the color of the segment.

Declaration

cs-api-definition
public Brush Stroke { get; set; }

Property Value

Brush

Thickness

Gets or sets the thickness of the segment.

Declaration

cs-api-definition
public double Thickness { get; set; }

Property Value

double

Methods

ApplyTemplateCore()

Initializes the template parts of the control (see the TemplatePart attributes for more information).

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadControl.OnCreateAutomationPeer()