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:
- Object DispatcherObject DependencyObject 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
- 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 | Int32 | 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
- 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 | UIElement | The object to which the attached property is written. |
value | 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 | 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 | 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 | 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 | 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
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()