WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GaugeAdorner

    Show / Hide Table of Contents

    Class GaugeAdorner

    Represents a Adorner that displays the child elements of the Gauge.

    Inheritance
    System.Object
    TemplatedAdornerBase
    GaugeAdorner
    CircularGaugeAdorner
    Implements
    System.IDisposable
    Inherited Members
    TemplatedAdornerBase.OffsetXProperty
    TemplatedAdornerBase.OffsetYProperty
    TemplatedAdornerBase.Dispose()
    TemplatedAdornerBase.GetDesiredTransform(GeneralTransform)
    TemplatedAdornerBase.MeasureOverride(Size)
    TemplatedAdornerBase.ArrangeOverride(Size)
    TemplatedAdornerBase.GetVisualChild(Int32)
    TemplatedAdornerBase.InnerControl
    TemplatedAdornerBase.OffsetX
    TemplatedAdornerBase.OffsetY
    TemplatedAdornerBase.LogicalChildren
    TemplatedAdornerBase.VisualChildrenCount
    TemplatedAdornerBase.OffsetXChanged
    TemplatedAdornerBase.OffsetYChanged
    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 Description
    System.Windows.DependencyProperty

    AdornerWidthProperty

    Identifies the AdornerWidth dependency property.

    Declaration
    public static readonly DependencyProperty AdornerWidthProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GaugeParentProperty

    Identifies the GaugeParent dependency property.

    Declaration
    public static readonly DependencyProperty GaugeParentProperty
    Field Value
    Type Description
    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

    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
    AdornerHeight

    ChildrenCollection

    Gets the collection of visual elements.

    Declaration
    public VisualChildrenCollection<FrameworkElement> ChildrenCollection { get; }
    Property Value
    Type Description
    VisualChildrenCollection<System.Windows.FrameworkElement>

    Type: VisualChildrenCollection<T>

    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 Description
    System.Windows.PropertyChangedCallback

    AdornerWidthChanged

    Event that is raised when AdornerWidth property is changed.

    Declaration
    public event PropertyChangedCallback AdornerWidthChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    GaugeParentChanged

    Event that is raised when GaugeParent property is changed.

    Declaration
    public event PropertyChangedCallback GaugeParentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved