Class
GraphicScale

Base class for the radial and linear scales.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public abstract class GraphicScale : ScaleBase

Inheritance: objectScaleBaseGraphicScale

Derived Classes: LinearScaleRadialScale

Inherited Members ScaleBase.CustomItemsPropertyScaleBase.CustomItemTemplatePropertyScaleBase.CustomItemTemplateSelectorPropertyScaleBase.MaxPropertyScaleBase.MinPropertyScaleBase.MultiplierPropertyScaleBase.RangesPropertyScaleBase.RangeTemplatePropertyScaleBase.PositionObject(DependencyObject)ScaleBase.ResizeObject(DependencyObject)ScaleBase.ResetTheme()ScaleBase.OnCreateAutomationPeer()ScaleBase.CalculateCellSize()ScaleBase.GetContainerForItemOverride()ScaleBase.IsItemItsOwnContainerOverride(object)ScaleBase.GetObjectPosition(FrameworkElement, ScaleObjectLocation, GaugeMeasure, double)ScaleBase.CellSizeScaleBase.CustomItemsScaleBase.CustomItemTemplateScaleBase.CustomItemTemplateSelectorScaleBase.IndicatorsScaleBase.MaxScaleBase.MinScaleBase.MultiplierScaleBase.RangesScaleBase.RangeTemplateScaleBase.DefaultRangeGroup

Constructors

GraphicScale()

Initializes a new instance of the GraphicScale class.

Declaration

cs-api-definition
protected GraphicScale()

Fields

DistributionProperty

Identifies the Distribution dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DistributionProperty

Field Value

DependencyProperty

EndTickOffsetProperty

Identifies the EndTickOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EndTickOffsetProperty

Field Value

DependencyProperty

EndWidthProperty

Identifies the EndWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EndWidthProperty

Field Value

DependencyProperty

FillProperty

Identifies the Fill dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FillProperty

Field Value

DependencyProperty

IsInteractiveProperty

Identifies the IsInteractive dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInteractiveProperty

Field Value

DependencyProperty

IsReversedProperty

Identifies the IsReversed dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReversedProperty

Field Value

DependencyProperty

LabelFormatProperty

Identifies the LabelFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelFormatProperty

Field Value

DependencyProperty

LabelLocationProperty

Identifies the LabelLocation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelLocationProperty

Field Value

DependencyProperty

LabelOffsetProperty

Identifies the LabelOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelOffsetProperty

Field Value

DependencyProperty

LabelTemplateProperty

Identifies the LabelTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTemplateProperty

Field Value

DependencyProperty

LabelToolTipStyleProperty

Identifies the LabelToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelToolTipStyleProperty

Field Value

DependencyProperty

LabelToolTipTemplateProperty

Identifies the LabelToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelToolTipTemplateProperty

Field Value

DependencyProperty

LabelTooltipFormatProperty

Identifies the LabelTooltipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTooltipFormatProperty

Field Value

DependencyProperty

LabelUseRangeColorProperty

Identifies the LabelUseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelUseRangeColorProperty

Field Value

DependencyProperty

MajorTickBackgroundProperty

Identifies the MajorTickBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickBackgroundProperty

Field Value

DependencyProperty

MajorTickListProperty

Identifies the MajorTickList dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickListProperty

Field Value

DependencyProperty

MajorTickLocationProperty

Identifies the MajorTickLocation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickLocationProperty

Field Value

DependencyProperty

MajorTickOffsetProperty

Identifies the MajorTickOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickOffsetProperty

Field Value

DependencyProperty

MajorTickRelativeHeightProperty

Identifies the MajorTickRelativeHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickRelativeHeightProperty

Field Value

DependencyProperty

MajorTickRelativeWidthProperty

Identifies the MajorTickRelativeWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickRelativeWidthProperty

Field Value

DependencyProperty

MajorTickStepProperty

Identifies the MajorTickStep dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickStepProperty

Field Value

DependencyProperty

MajorTickStrokeProperty

Identifies the MajorTickStroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickStrokeProperty

Field Value

DependencyProperty

MajorTickStrokeThicknessProperty

Identifies the MajorTickStrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickStrokeThicknessProperty

Field Value

DependencyProperty

MajorTickTemplateProperty

Identifies the MajorTickTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickTemplateProperty

Field Value

DependencyProperty

MajorTickToolTipStyleProperty

Identifies the MajorTickToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickToolTipStyleProperty

Field Value

DependencyProperty

MajorTickToolTipTemplateProperty

Identifies the MajorTickToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickToolTipTemplateProperty

Field Value

DependencyProperty

MajorTickTooltipFormatProperty

Identifies the MajorTickTooltipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickTooltipFormatProperty

Field Value

DependencyProperty

MajorTickUseRangeColorProperty

Identifies the MajorTickUseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickUseRangeColorProperty

Field Value

DependencyProperty

MajorTicksProperty

Identifies the MajorTicks dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTicksProperty

Field Value

DependencyProperty

MiddleTickBackgroundProperty

Identifies the MiddleTickBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickBackgroundProperty

Field Value

DependencyProperty

MiddleTickLocationProperty

Identifies the MiddleTickLocation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickLocationProperty

Field Value

DependencyProperty

MiddleTickOffsetProperty

Identifies the MiddleTickOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickOffsetProperty

Field Value

DependencyProperty

MiddleTickRelativeHeightProperty

Identifies the MiddleTickRelativeHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickRelativeHeightProperty

Field Value

DependencyProperty

MiddleTickRelativeWidthProperty

Identifies the MiddleTickRelativeWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickRelativeWidthProperty

Field Value

DependencyProperty

MiddleTickStrokeProperty

Identifies the MiddleTickStroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickStrokeProperty

Field Value

DependencyProperty

MiddleTickStrokeThicknessProperty

Identifies the MiddleTickStrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickStrokeThicknessProperty

Field Value

DependencyProperty

MiddleTickTemplateProperty

Identifies the MiddleTickTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickTemplateProperty

Field Value

DependencyProperty

MiddleTickToolTipStyleProperty

Identifies the MiddleTickToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickToolTipStyleProperty

Field Value

DependencyProperty

MiddleTickToolTipTemplateProperty

Identifies the MiddleTickToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickToolTipTemplateProperty

Field Value

DependencyProperty

MiddleTickTooltipFormatProperty

Identifies the MiddleTickTooltipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickTooltipFormatProperty

Field Value

DependencyProperty

MiddleTickUseRangeColorProperty

Identifies the MiddleTickUseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTickUseRangeColorProperty

Field Value

DependencyProperty

MiddleTicksProperty

Identifies the MiddleTicks dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MiddleTicksProperty

Field Value

DependencyProperty

MinorTickBackgroundProperty

Identifies the MinorTickBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickBackgroundProperty

Field Value

DependencyProperty

MinorTickLocationProperty

Identifies the MinorTickLocation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickLocationProperty

Field Value

DependencyProperty

MinorTickOffsetProperty

Identifies the MinorTickOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickOffsetProperty

Field Value

DependencyProperty

MinorTickRelativeHeightProperty

Identifies the MinorTickRelativeHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickRelativeHeightProperty

Field Value

DependencyProperty

MinorTickRelativeWidthProperty

Identifies the MinorTickRelativeWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickRelativeWidthProperty

Field Value

DependencyProperty

MinorTickStrokeProperty

Identifies the MinorTickStroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickStrokeProperty

Field Value

DependencyProperty

MinorTickStrokeThicknessProperty

Identifies the MinorTickStrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickStrokeThicknessProperty

Field Value

DependencyProperty

MinorTickTemplateProperty

Identifies the MinorTickTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickTemplateProperty

Field Value

DependencyProperty

MinorTickToolTipStyleProperty

Identifies the MinorTickToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickToolTipStyleProperty

Field Value

DependencyProperty

MinorTickToolTipTemplateProperty

Identifies the MinorTickToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickToolTipTemplateProperty

Field Value

DependencyProperty

MinorTickTooltipFormatProperty

Identifies the MinorTickTooltipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickTooltipFormatProperty

Field Value

DependencyProperty

MinorTickUseRangeColorProperty

Identifies the MinorTickUseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTickUseRangeColorProperty

Field Value

DependencyProperty

MinorTicksProperty

Identifies the MinorTicks dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinorTicksProperty

Field Value

DependencyProperty

RangeLocationProperty

Identifies the RangeLocation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RangeLocationProperty

Field Value

DependencyProperty

RangeOffsetProperty

Identifies the RangeOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RangeOffsetProperty

Field Value

DependencyProperty

ShowFirstLabelProperty

Identifies the ShowFirstLabel dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowFirstLabelProperty

Field Value

DependencyProperty

ShowLastLabelProperty

Identifies the ShowLastLabel dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowLastLabelProperty

Field Value

DependencyProperty

StartTickOffsetProperty

Identifies the StartTickOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartTickOffsetProperty

Field Value

DependencyProperty

StartWidthProperty

Identifies the StartWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartWidthProperty

Field Value

DependencyProperty

StrokeProperty

Identifies the Stroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeProperty

Field Value

DependencyProperty

StrokeThicknessProperty

Identifies the StrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeThicknessProperty

Field Value

DependencyProperty

TickRangeGroupProperty

Identifies the TickRangeGroup dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TickRangeGroupProperty

Field Value

DependencyProperty

Properties

Distribution

Gets or sets the scale's value distribution.

Declaration

cs-api-definition
public IValueDistribution Distribution { get; set; }

Property Value

IValueDistribution

EndTickOffset

Gets or sets the offset of the last major tick on the scale from scale's maximal value.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double EndTickOffset { get; set; }

Property Value

double

EndValue

Value at the last major tick mark on the scale.

Declaration

cs-api-definition
protected double EndValue { get; set; }

Property Value

double

EndWidth

Gets or sets the end width of the scale bar.

Declaration

cs-api-definition
[SRCategory("Layout")]
public double EndWidth { get; set; }

Property Value

double

Fill

Gets or sets the fill of the scale path.

Declaration

cs-api-definition
[SRCategory("Layout")]
public Brush Fill { get; set; }

Property Value

Brush

IsInteractive

Gets or sets value that indicates whether the scale's interactive features are enabled.

Declaration

cs-api-definition
public bool IsInteractive { get; set; }

Property Value

bool

IsReversed

Gets or sets value that indicates whether the scale should be shown in the reverse mode.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool IsReversed { get; set; }

Property Value

bool

LabelFormat

Gets or sets the tick label format.

Declaration

cs-api-definition
[SRCategory("Scale")]
public string LabelFormat { get; set; }

Property Value

string

LabelLocation

Gets or sets the tick label location.

Declaration

cs-api-definition
[SRCategory("Scale")]
public ScaleObjectLocation LabelLocation { get; set; }

Property Value

ScaleObjectLocation

LabelOffset

Gets or sets the tick label offset.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure LabelOffset { get; set; }

Property Value

GaugeMeasure

LabelTemplate

Gets or sets the tick label data template.

Declaration

cs-api-definition
[SRCategory("Scale")]
public DataTemplate LabelTemplate { get; set; }

Property Value

DataTemplate

LabelToolTipStyle

Gets or sets the style applied to the toolTip of the label.

Declaration

cs-api-definition
public Style LabelToolTipStyle { get; set; }

Property Value

Style

LabelToolTipTemplate

Gets or sets the template of the label tooltip.

Declaration

cs-api-definition
public DataTemplate LabelToolTipTemplate { get; set; }

Property Value

DataTemplate

LabelTooltipFormat

Gets or sets the format of the label tooltip.

Declaration

cs-api-definition
public string LabelTooltipFormat { get; set; }

Property Value

string

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

LabelUseRangeColor

Gets or sets value which indicates whether the tick label will use range color as its background.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool LabelUseRangeColor { get; set; }

Property Value

bool

MajorTickBackground

Gets or sets the major tick background.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MajorTickBackground { get; set; }

Property Value

Brush

MajorTickList

Gets or sets a list of doubles which specify positions of the major ticks.

Declaration

cs-api-definition
[SRCategory("Scale")]
public IEnumerable<double> MajorTickList { get; set; }

Property Value

IEnumerable<double>

MajorTickLocation

Gets or sets location of the major tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public ScaleObjectLocation MajorTickLocation { get; set; }

Property Value

ScaleObjectLocation

MajorTickOffset

Gets or sets offset the major tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MajorTickOffset { get; set; }

Property Value

GaugeMeasure

MajorTickRelativeHeight

Gets or sets the relative height of the major tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MajorTickRelativeHeight { get; set; }

Property Value

GaugeMeasure

MajorTickRelativeWidth

Gets or sets the relative width of the major tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MajorTickRelativeWidth { get; set; }

Property Value

GaugeMeasure

MajorTickStep

Gets or sets the interval between major ticks.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double MajorTickStep { get; set; }

Property Value

double

MajorTickStroke

Gets or sets the major tick stroke.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MajorTickStroke { get; set; }

Property Value

Brush

MajorTickStrokeThickness

Gets or sets the major tick stroke thickness.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double MajorTickStrokeThickness { get; set; }

Property Value

double

MajorTickTemplate

Gets or sets the major tick data template.

Declaration

cs-api-definition
[SRCategory("Scale")]
public DataTemplate MajorTickTemplate { get; set; }

Property Value

DataTemplate

MajorTickToolTipStyle

Gets or sets the style applied to the toolTip of the major tick mark.

Declaration

cs-api-definition
public Style MajorTickToolTipStyle { get; set; }

Property Value

Style

MajorTickToolTipTemplate

Gets or sets the template of the major tick mark tooltip.

Declaration

cs-api-definition
public DataTemplate MajorTickToolTipTemplate { get; set; }

Property Value

DataTemplate

MajorTickTooltipFormat

Gets or sets format of the major tick mark tooltip.

Declaration

cs-api-definition
public string MajorTickTooltipFormat { get; set; }

Property Value

string

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

MajorTickUseRangeColor

Gets or sets value which indicates whether the major tick will use range color as its background.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool MajorTickUseRangeColor { get; set; }

Property Value

bool

MajorTicks

Gets or sets number of the major ticks along the scale.

Declaration

cs-api-definition
[SRCategory("Scale")]
public int MajorTicks { get; set; }

Property Value

int

MajorTicksCount

Calculate number of the major tick marks using this.MajorTicks, this.MajorTickStep and this.ShowLastLabel property.

Declaration

cs-api-definition
protected int MajorTicksCount { get; }

Property Value

int

MiddleTickBackground

Gets or sets the background of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MiddleTickBackground { get; set; }

Property Value

Brush

MiddleTickLocation

Gets or sets location of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public ScaleObjectLocation MiddleTickLocation { get; set; }

Property Value

ScaleObjectLocation

MiddleTickOffset

Gets or sets offset of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MiddleTickOffset { get; set; }

Property Value

GaugeMeasure

MiddleTickRelativeHeight

Gets or sets the relative height of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MiddleTickRelativeHeight { get; set; }

Property Value

GaugeMeasure

MiddleTickRelativeWidth

Gets or sets the relative width of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MiddleTickRelativeWidth { get; set; }

Property Value

GaugeMeasure

MiddleTickStroke

Gets or sets stroke of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MiddleTickStroke { get; set; }

Property Value

Brush

MiddleTickStrokeThickness

Gets or sets stroke thickness of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double MiddleTickStrokeThickness { get; set; }

Property Value

double

MiddleTickTemplate

Gets or sets the data template of the middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public DataTemplate MiddleTickTemplate { get; set; }

Property Value

DataTemplate

MiddleTickToolTipStyle

Gets or sets the style applied to the toolTip of the middle tick mark.

Declaration

cs-api-definition
public Style MiddleTickToolTipStyle { get; set; }

Property Value

Style

MiddleTickToolTipTemplate

Gets or sets template of the middle tick mark tooltip.

Declaration

cs-api-definition
public DataTemplate MiddleTickToolTipTemplate { get; set; }

Property Value

DataTemplate

MiddleTickTooltipFormat

Gets or sets format of the middle tick mark tooltip.

Declaration

cs-api-definition
public string MiddleTickTooltipFormat { get; set; }

Property Value

string

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

MiddleTickUseRangeColor

Gets or sets value which indicates whether the middle tick will use the range color as its background.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool MiddleTickUseRangeColor { get; set; }

Property Value

bool

MiddleTicks

Gets or sets number of the middle ticks per one major tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public int MiddleTicks { get; set; }

Property Value

int

MinorTickBackground

Gets or sets the background of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MinorTickBackground { get; set; }

Property Value

Brush

MinorTickLocation

Gets or sets the location of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public ScaleObjectLocation MinorTickLocation { get; set; }

Property Value

ScaleObjectLocation

MinorTickOffset

Gets or sets offset of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MinorTickOffset { get; set; }

Property Value

GaugeMeasure

MinorTickRelativeHeight

Gets or sets the relative height of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MinorTickRelativeHeight { get; set; }

Property Value

GaugeMeasure

MinorTickRelativeWidth

Gets or sets the relative width of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure MinorTickRelativeWidth { get; set; }

Property Value

GaugeMeasure

MinorTickStroke

Gets or sets stroke of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public Brush MinorTickStroke { get; set; }

Property Value

Brush

MinorTickStrokeThickness

Gets or sets stroke thickness of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double MinorTickStrokeThickness { get; set; }

Property Value

double

MinorTickTemplate

Gets or sets the data template of the minor tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public DataTemplate MinorTickTemplate { get; set; }

Property Value

DataTemplate

MinorTickToolTipStyle

Gets or sets the style applied to the toolTip of the minor tick mark.

Declaration

cs-api-definition
public Style MinorTickToolTipStyle { get; set; }

Property Value

Style

MinorTickToolTipTemplate

Gets or sets template of the minor tick mark tooltip.

Declaration

cs-api-definition
public DataTemplate MinorTickToolTipTemplate { get; set; }

Property Value

DataTemplate

MinorTickTooltipFormat

Gets or sets the format of the minor tick mark tooltip.

Declaration

cs-api-definition
public string MinorTickTooltipFormat { get; set; }

Property Value

string

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

MinorTickUseRangeColor

Gets or sets value which indicates whether the minor tick will use range color as its background.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool MinorTickUseRangeColor { get; set; }

Property Value

bool

MinorTicks

Gets or sets number of the minor ticks per one middle tick.

Declaration

cs-api-definition
[SRCategory("Scale")]
public int MinorTicks { get; set; }

Property Value

int

RangeLocation

Gets or sets the default range location.

Declaration

cs-api-definition
[SRCategory("Scale")]
public ScaleObjectLocation RangeLocation { get; set; }

Property Value

ScaleObjectLocation

RangeOffset

Gets or sets default range offset.

Declaration

cs-api-definition
[SRCategory("Scale")]
public GaugeMeasure RangeOffset { get; set; }

Property Value

GaugeMeasure

ShowFirstLabel

Gets or sets value that indicates whether the first tick and its label should be shown.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool ShowFirstLabel { get; set; }

Property Value

bool

ShowLastLabel

Gets or sets value that indicates whether the last tick and its label should be shown.

Declaration

cs-api-definition
[SRCategory("Scale")]
public bool ShowLastLabel { get; set; }

Property Value

bool

StartTickOffset

Gets or sets the offset of the first major tick on the scale from scale's minimal value.

Declaration

cs-api-definition
[SRCategory("Scale")]
public double StartTickOffset { get; set; }

Property Value

double

StartValue

Value at the first major tick mark on the scale.

Declaration

cs-api-definition
protected double StartValue { get; set; }

Property Value

double

StartWidth

Gets or sets the start width of the scale bar.

Declaration

cs-api-definition
[SRCategory("Layout")]
public double StartWidth { get; set; }

Property Value

double

Stroke

Gets or sets the Brush that specifies how the scale bar outline is painted.

Declaration

cs-api-definition
[SRCategory("Layout")]
public Brush Stroke { get; set; }

Property Value

Brush

StrokeThickness

Gets or sets gets or sets stroke thickness of the scale bar.

Declaration

cs-api-definition
[SRCategory("Layout")]
public double StrokeThickness { get; set; }

Property Value

double

TickRangeGroup

Gets or sets range group which will be used with tick list.

Declaration

cs-api-definition
public GaugeRangeGroup TickRangeGroup { get; set; }

Property Value

GaugeRangeGroup

UseTickList

Returns true when the MajorTickList property should be used.

Declaration

cs-api-definition
protected bool UseTickList { get; }

Property Value

bool

UseTickSteps

Returns true when the MajorTickStep property should be used.

Declaration

cs-api-definition
protected bool UseTickSteps { get; }

Property Value

bool

Methods

ArrangeOverride(Size)

Called to arrange and size the content of a scale.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The computed size that is used to arrange the content.

Returns

Size

The size of the scale.

Overrides ScaleBase.ArrangeOverride(Size)

ClearContainerForItemOverride(DependencyObject, object)

Undoes the effects of the PrepareContainerForItemOverride method.

Declaration

cs-api-definition
protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The container element.

item

object

The item.

Overrides ScaleBase.ClearContainerForItemOverride(DependencyObject, object)

GetValueByPoint(Point)

Gets the value which corresponds to the point on scale.

Declaration

cs-api-definition
public abstract double GetValueByPoint(Point point)

Parameters

point

Point

Point on the scale to get value for.

Returns

double

Double value corresponds to the given point.

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The maximum size that the method can return.

Returns

Size

The size of the control, up to the maximum specified by constraint.

Overrides ScaleBase.MeasureOverride(Size)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides ScaleBase.OnApplyTemplate()

PrepareContainerForItemOverride(DependencyObject, object)

Prepares object for the container.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

Element.

item

object

Item.

PresenterSizeChanged(object, SizeChangedEventArgs)

Occurs when size of the content presenter is changed.

Declaration

cs-api-definition
protected override void PresenterSizeChanged(object sender, SizeChangedEventArgs e)

Parameters

sender

object

Sender.

e

SizeChangedEventArgs

Event args.

Overrides ScaleBase.PresenterSizeChanged(object, SizeChangedEventArgs)

ScaleObjectChanged(FrameworkElement)

Notifies that the element is changed.

Declaration

cs-api-definition
protected override void ScaleObjectChanged(FrameworkElement element)

Parameters

element

FrameworkElement

Element.

Overrides ScaleBase.ScaleObjectChanged(FrameworkElement)

UpdateScaleBar()

Update geometry of the scale bar.

Declaration

cs-api-definition
protected abstract void UpdateScaleBar()

UpdateTicksAndLabels()

Update tick and label lists.

Declaration

cs-api-definition
protected override void UpdateTicksAndLabels()

Overrides ScaleBase.UpdateTicksAndLabels()

In this article
DefinitionConstructorsGraphicScale()FieldsDistributionPropertyEndTickOffsetPropertyEndWidthPropertyFillPropertyIsInteractivePropertyIsReversedPropertyLabelFormatPropertyLabelLocationPropertyLabelOffsetPropertyLabelTemplatePropertyLabelToolTipStylePropertyLabelToolTipTemplatePropertyLabelTooltipFormatPropertyLabelUseRangeColorPropertyMajorTickBackgroundPropertyMajorTickListPropertyMajorTickLocationPropertyMajorTickOffsetPropertyMajorTickRelativeHeightPropertyMajorTickRelativeWidthPropertyMajorTickStepPropertyMajorTickStrokePropertyMajorTickStrokeThicknessPropertyMajorTickTemplatePropertyMajorTickToolTipStylePropertyMajorTickToolTipTemplatePropertyMajorTickTooltipFormatPropertyMajorTickUseRangeColorPropertyMajorTicksPropertyMiddleTickBackgroundPropertyMiddleTickLocationPropertyMiddleTickOffsetPropertyMiddleTickRelativeHeightPropertyMiddleTickRelativeWidthPropertyMiddleTickStrokePropertyMiddleTickStrokeThicknessPropertyMiddleTickTemplatePropertyMiddleTickToolTipStylePropertyMiddleTickToolTipTemplatePropertyMiddleTickTooltipFormatPropertyMiddleTickUseRangeColorPropertyMiddleTicksPropertyMinorTickBackgroundPropertyMinorTickLocationPropertyMinorTickOffsetPropertyMinorTickRelativeHeightPropertyMinorTickRelativeWidthPropertyMinorTickStrokePropertyMinorTickStrokeThicknessPropertyMinorTickTemplatePropertyMinorTickToolTipStylePropertyMinorTickToolTipTemplatePropertyMinorTickTooltipFormatPropertyMinorTickUseRangeColorPropertyMinorTicksPropertyRangeLocationPropertyRangeOffsetPropertyShowFirstLabelPropertyShowLastLabelPropertyStartTickOffsetPropertyStartWidthPropertyStrokePropertyStrokeThicknessPropertyTickRangeGroupPropertyPropertiesDistributionEndTickOffsetEndValueEndWidthFillIsInteractiveIsReversedLabelFormatLabelLocationLabelOffsetLabelTemplateLabelToolTipStyleLabelToolTipTemplateLabelTooltipFormatLabelUseRangeColorMajorTickBackgroundMajorTickListMajorTickLocationMajorTickOffsetMajorTickRelativeHeightMajorTickRelativeWidthMajorTickStepMajorTickStrokeMajorTickStrokeThicknessMajorTickTemplateMajorTickToolTipStyleMajorTickToolTipTemplateMajorTickTooltipFormatMajorTickUseRangeColorMajorTicksMajorTicksCountMiddleTickBackgroundMiddleTickLocationMiddleTickOffsetMiddleTickRelativeHeightMiddleTickRelativeWidthMiddleTickStrokeMiddleTickStrokeThicknessMiddleTickTemplateMiddleTickToolTipStyleMiddleTickToolTipTemplateMiddleTickTooltipFormatMiddleTickUseRangeColorMiddleTicksMinorTickBackgroundMinorTickLocationMinorTickOffsetMinorTickRelativeHeightMinorTickRelativeWidthMinorTickStrokeMinorTickStrokeThicknessMinorTickTemplateMinorTickToolTipStyleMinorTickToolTipTemplateMinorTickTooltipFormatMinorTickUseRangeColorMinorTicksRangeLocationRangeOffsetShowFirstLabelShowLastLabelStartTickOffsetStartValueStartWidthStrokeStrokeThicknessTickRangeGroupUseTickListUseTickStepsMethodsArrangeOverride(Size)ClearContainerForItemOverride(DependencyObject, object)GetValueByPoint(Point)MeasureOverride(Size)OnApplyTemplate()PrepareContainerForItemOverride(DependencyObject, object)PresenterSizeChanged(object, SizeChangedEventArgs)ScaleObjectChanged(FrameworkElement)UpdateScaleBar()UpdateTicksAndLabels()
Not finding the help you need?
Contact Support