Class GaugeAdorner
Represents a Adorner that displays the child elements of the Gauge.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
public class GaugeAdorner : TemplatedAdornerBase, IDisposable
Remarks
The adorner is initialized by GaugeBase class. All the child elements of the gauge are drawn on the adorner. This class is derived by CircularGaugeAdorner class.
Constructors
GaugeAdorner(UIElement)
Initializes a new instance of the GaugeAdorner class.
Declaration
public GaugeAdorner(UIElement adornedElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | adornedElement | Represents adorned element. |
Fields
AdornerHeightProperty
Identifies the AdornerHeight dependency property.
Declaration
public static readonly DependencyProperty AdornerHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AdornerWidthProperty
Identifies the AdornerWidth dependency property.
Declaration
public static readonly DependencyProperty AdornerWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GaugeParentProperty
Identifies the GaugeParent dependency property.
Declaration
public static readonly DependencyProperty GaugeParentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AdornerHeight
Gets or sets the height of the adorner. This is a dependency property.
Declaration
public double AdornerHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double |
See Also
AdornerWidth
Gets or sets the width for the adorner. This is a dependency property.
Declaration
public double AdornerWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double |
See Also
ChildrenCollection
Gets the collection of visual elements.
Declaration
public VisualChildrenCollection<FrameworkElement> ChildrenCollection { get; }
Property Value
Type | Description |
---|---|
VisualChildrenCollection<System.Windows.FrameworkElement> |
GaugeParent
Gets or sets the parent of the adorner. This is a dependency property.
Declaration
public GaugeBase GaugeParent { get; set; }
Property Value
Type | Description |
---|---|
GaugeBase | Type: GaugeBase |
Methods
OnAdornerHeightChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises AdornerHeightChanged event.
Declaration
protected virtual void OnAdornerHeightChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnAdornerWidthChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises AdornerWidthChanged event.
Declaration
protected virtual void OnAdornerWidthChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnGaugeParentChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises GaugeParentChanged event.
Declaration
protected virtual void OnGaugeParentChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
SetStyle(Style)
Sets the needed style for the adorner.
Declaration
protected void SetStyle(Style style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Style | style | Style to be used |
Events
AdornerHeightChanged
Event that is raised when AdornerHeight property is changed.
Declaration
public event PropertyChangedCallback AdornerHeightChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
AdornerWidthChanged
Event that is raised when AdornerWidth property is changed.
Declaration
public event PropertyChangedCallback AdornerWidthChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
GaugeParentChanged
Event that is raised when GaugeParent property is changed.
Declaration
public event PropertyChangedCallback GaugeParentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |