In This Article

GaugeElement Class

Represents the base class of all gauge elements.

public abstract class GaugeElement : FrameworkElement, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement object
Derived:
GaugeBase PointerBase RangeBase ScaleBase TickBase TickSetBase
Implements:
ILogicalParent IVisualParent

Constructors

GaugeElement()

Initializes an instance of the class.

protected GaugeElement()

Properties

VisualChildren

The visual child elements within this element.

protected virtual VisualCollection VisualChildren { get; }

Property Value

VisualCollection

VisualChildrenCount

Gets the number of visual child elements within this element.

protected override int VisualChildrenCount { get; }

Property Value

int:

The number of visual child elements for this element.

ZIndex

The z-index of the this element.

public int ZIndex { get; set; }

Property Value

int:

The default value is 0.

Remarks

This z-index is only used when the visual parent of this element is a GaugeElement.

Methods

GetVisualChild(int)

Overrides GetVisualChild(int), and returns a child at the specified index from a collection of child elements.

protected override Visual GetVisualChild(int index)
Parameter Type Description
index int

The zero-based index of the requested child element in the collection.

Returns

Visual:

The requested child element. This should not return null; if the provided index is out of range, an exception is thrown.

GetZIndex(UIElement)

Gets the value of the ZIndexProperty attached property for a specified object.

public static int GetZIndex(UIElement element)
Parameter Type Description
element UIElement

The object to which the attached property is retrieved.

Returns

int:

The z-index.

SetZIndex(UIElement, int)

Sets the value of the ZIndexProperty attached property to a specified object.

public static void SetZIndex(UIElement element, int value)
Parameter Type Description
element UIElement

The object to which the attached property is written.

value int

The z-index.

Fields

ZIndexProperty

Defines the ZIndex property.

public static readonly DependencyProperty ZIndexProperty

Extension Methods