GaugeElement Class
Represents the base class of all gauge elements.
public abstract class GaugeElement : FrameworkElement, ILogicalParent, IVisualParent
- Inheritance:
- object Visual UIElement FrameworkElement object
- 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
- VisualCollection:
The visual children.
VisualChildrenCount
Gets the number of visual child elements within this element.
ZIndex
Gets or sets the z-index of the this element. This is a dependency property.
public int ZIndex { get; set; }
Property Value
- int:
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(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
Identifies the ZIndex dependency property. This field is read-only.
public static readonly DependencyProperty ZIndexProperty