WPF

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

    Show / Hide Table of Contents

    Class LinearScaleLayoutPanel

    Represents the layout panel for the Linear Gauge.

    Inheritance
    System.Object
    LinearScaleLayoutPanel
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Gauge
    Assembly: Syncfusion.Gauge.WPF.dll
    Syntax
    public class LinearScaleLayoutPanel : Panel, IDisposable
    Remarks

    All the elements of the LinearGauge are arranged at the center of the Panel and then transformed to their respective positions.

    Constructors

    LinearScaleLayoutPanel()

    Initializes a new instance of the LinearScaleLayoutPanel class.

    Declaration
    public LinearScaleLayoutPanel()

    Fields

    PanelHeightProperty

    Identifies the PanelHeight dependency property.

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

    PanelWidthProperty

    Identifies the PanelWidth dependency property.

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

    Properties

    PanelHeight

    Gets or sets the height of the panel. This is a dependency property.

    Declaration
    public double PanelHeight { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double

    See Also
    PanelWidth

    PanelWidth

    Gets or sets the width of the panel. This is a dependency property.

    Declaration
    public double PanelWidth { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double

    See Also
    PanelHeight

    Methods

    ArrangeOverride(Size)

    Positions child elements and determines a size for the element.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The final area within the parent that this element should use to arrange itself and its children.

    Returns
    Type Description
    System.Windows.Size

    The actual size used.

    Remarks

    The children(both the LinearScale and StateIndicator) are arranged at the center of the Panel,with its(i.e children's) center coinciding with that of the Panel's center.They are then transformed to their respective positions(ScaleBar stays at the center but the StateIndicator moves to the new position)all by themselves

    Dispose()

    Declaration
    public void Dispose()

    MeasureOverride(Size)

    Measures the size in layout required for child elements and determines a size for the element.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The available size that this element can give to child elements.

    Returns
    Type Description
    System.Windows.Size

    The size that this element determines it needs during layout.

    OnPanelHeightChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises PanelHeightChanged event.

    Declaration
    protected virtual void OnPanelHeightChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    OnPanelWidthChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises PanelWidthChanged event.

    Declaration
    protected virtual void OnPanelWidthChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    Events

    PanelHeightChanged

    Event that is raised when PanelHeight property is changed.

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

    PanelWidthChanged

    Event that is raised when PanelWidth property is changed.

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

    Implements

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