In This Article

GaugeElement Class

Represents the base class of all gauge elements.

public abstract class GaugeElement : FrameworkElement, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, ILogicalParent, IVisualParent
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement Object
Derived:
GaugeBase PointerBase RangeBase ScaleBase TickBase TickSetBase
Implements:
ILogicalParent IVisualParent

Remarks

For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.

Constructors

GaugeElement()

Initializes a new instance of the GaugeElement class.

protected GaugeElement()

Properties

VisualChildren

Gets the visual child elements within this element.

protected virtual VisualCollection VisualChildren { get; }

Property Value

System.Windows.Media.VisualCollection:

The visual children.

VisualChildrenCount

Gets the number of visual child elements within this element.

protected override int VisualChildrenCount { get; }

Property Value

System.Int32

ZIndex

Gets or sets the z-index of the this element. This is a dependency property.

public int ZIndex { get; set; }

Property Value

System.Int32:

The z-index of the this element. The default value is 0.

Remarks

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

Methods

GetVisualChild(Int32)

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

protected override Visual GetVisualChild(int index)
Parameter Type Description
index System.Int32

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

Returns

System.Windows.Media.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 System.Windows.UIElement

The object to which the attached property is retrieved.

Returns

System.Int32:

The z-index.

SetZIndex(UIElement, Int32)

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

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

The object to which the attached property is written.

value System.Int32

The z-index.

Explicit Interface Implementations

ILogicalParent.AddLogicalChild(Object)

Adds the provided object to the logical tree of this element.

void ILogicalParent.AddLogicalChild(object child)
Parameter Type Description
child System.Object

Child element to be added.

ILogicalParent.RemoveLogicalChild(Object)

Removes the provided object from the logical tree of this element.

void ILogicalParent.RemoveLogicalChild(object child)
Parameter Type Description
child System.Object

The element to remove.

IVisualParent.AddVisualChild(Visual)

Defines the parent-child relationship between two visuals.

void IVisualParent.AddVisualChild(Visual child)
Parameter Type Description
child System.Windows.Media.Visual

The child visual object to add to parent visual.

IVisualParent.RemoveVisualChild(Visual)

Removes the parent-child relationship between two visuals.

void IVisualParent.RemoveVisualChild(Visual child)
Parameter Type Description
child System.Windows.Media.Visual

The child visual object to remove from the parent visual.

Fields

ZIndexProperty

Identifies the ZIndex dependency property. This field is read-only.

public static readonly DependencyProperty ZIndexProperty

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods