Version

Configuring Orientation and Direction (UltraLinearGauge)

Purpose

This topic explains how to configure the UltraLinearGauge™ control with vertical scale and/or inverted scale direction.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides conceptual information about the UltraLinearGauge control including its main features, minimum requirements, and user functionality.

Introduction

Scale orientation and direction configuration summary

The UltraLinearGauge control supports vertical and horizontal orientations of the scale. By default, the scale orientation is horizontal. In vertical orientation, the scale values increase in upward direction and the numbering labels are positioned on its left.

xamLinearGauge Configuring the Orientation and Direction 1 17 1.png

It is defined by the Orientation property of the control.

The scale direction is the direction in which the values of the scale increase. It can be standard (left-to-right at horizontal orientation and bottom-to-top at vertical orientation) or inverted (right-to-left at horizontal orientation and top-to-bottom at vertical orientation).

Inverted direction at horizontal orientation Inverted direction at vertical orientation
xamLinearGauge Configuring the Orientation and Direction 2 17 1.png
xamLinearGauge Configuring the Orientation and Direction 3 17 1.png

Scale direction is defined by the IsScaleInverted property of the control. The default orientation is standard.

Scale orientation and direction configuration summary chart

The following table explains briefly the configurable aspects of the UltraLinearGauge ’s control orientation and scale inversion and maps them to properties that configure them.

Configurable aspect Details Properties

Scale orientation

Horizontal or vertical orientation of the linear gauge scale inside the control.

Scale direction

Direction of the linear gauge, standard or inverted.

Configuring the Scale Orientation

Overview

The orientation (horizontal or vertical) of the linear gauge is specified by the Orientation property of the control.

Property settings

The following table maps the desired configuration to its respective property settings.

In order to: Use this property: And set it to:

Specify horizontal orientation

ScaleOrientation.Horizontal

Specify vertical orientation

Orientation

ScaleOrientation.Vertical

Example

The screenshot below demonstrates how the UltraLinearGauge looks as a result of the following settings:

Property Value

“Vertical”

xamLinearGauge Configuring the Orientation and Direction 1 17 1.png

Following is the code that implements this example.

In C#:

linearGauge.Orientation = LinearScaleOrientation.Vertical;

In Visual Basic:

linearGauge.Orientation = LinearScaleOrientation.Vertical

Configuring the Scale Direction (Scale Inversion)

Overview

With horizontal orientation, the standard (default) direction of the scale is left-to-right, which means that the scale begins at the left edge of the Graph area and ends at its right edge (the ScaleStartExtent indicates an outset from the left edge of the Graph area and the ScaleEndExtent – the distance from the left edge of the Graph area to the end of the scale):

xamLinearGauge Overview 5.png

When the direction is inverted, the scale begins at the right edge of the Graph area and ends at its left edge (the ScaleStartExtent indicates an outset from the right edge of the Graph area and the ScaleEndExtent – the distance from the right edge of the Graph area to the end of the scale):

xamLinearGauge Configuring the Orientation and Direction 4.png

With vertical orientation, the standard (default) direction of the scale is bottom-to-top, which means that the scale begins at the bottom of the Graph area and ends at its top (the ScaleStartExtent indicates an outset from the bottom edge of the Graph area and the ScaleEndExtent – the distance from the bottom edge of the Graph area to the end of the scale):

xamLinearGauge Configuring the Orientation and Direction 5.png

When the direction is inverted, the scale begins at the top edge of the Graph area and ends at its bottom edge (the ScaleStartExtent indicates an outset from the top edge of the Graph area and the ScaleEndExtent – the distance from the top edge of the Graph area to the end of the scale):

xamLinearGauge Configuring the Orientation and Direction 6.png

Property settings

The following table maps the desired configuration to its respective property settings.

In order to: Use this property: And set it to:

Configure standard direction

“false”

Configure inverted direction

“true”

Example – inverted direction at horizontal orientation

The screenshot below demonstrates how the UltraLinearGauge looks as a result of the following settings:

Property Value

“true”

“Horizontal”

xamLinearGauge Configuring the Orientation and Direction 2 17 1.png

Following is the code that implements this example.

In C#:

linearGauge.Orientation = LinearScaleOrientation.Horizontal;
linearGauge.IsScaleInverted = true;

In Visual Basic:

linearGauge.Orientation = LinearScaleOrientation.Horizontal
linearGauge.IsScaleInverted = True

Example – inverted direction at vertical orientation

The screenshot below demonstrates how the UltraLinearGauge looks as a result of the following settings:

Property Value

“true”

“Vertical”

xamLinearGauge Configuring the Orientation and Direction 3 17 1.png

Following is the code that implements this example.

In C#:

linearGauge.Orientation = LinearScaleOrientation.Vertical;
linearGauge.IsScaleInverted = true;

In Visual Basic:

linearGauge.Orientation = LinearScaleOrientation.Vertical
linearGauge.IsScaleInverted = True

Related Content

Topic Purpose

This is a group of topics covering in detail the visual elements of the UltraLinearGauge control (like the scale elements, performance bar, comparative marker and ranges, etc.) and explaining, with code examples, how to configure them.