Class ChartDockPanel
Arranges child elements around the edges of the panel. Optionally, last added child element can occupy the remaining space.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ChartDockPanel : Panel
Constructors
ChartDockPanel()
Declaration
public ChartDockPanel()
Fields
DockProperty
The DependencyProperty for Dock property.
Declaration
public static readonly DependencyProperty DockProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ElementMarginProperty
The DependencyProperty for ElementMargin property.
Declaration
public static readonly DependencyProperty ElementMarginProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LastChildFillProperty
The DependencyProperty for LastChildFill property.
Declaration
public static readonly DependencyProperty LastChildFillProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
m_rootElement
Initializes m_rootElement
Declaration
public UIElement m_rootElement
Field Value
Type |
---|
System.Windows.UIElement |
RootElementProperty
The DependencyProperty for RootElement property.
Declaration
public static readonly DependencyProperty RootElementProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
ElementMargin
Gets or sets the element margin. This is a dependency property.
Declaration
public Thickness ElementMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Thickness | The element margin. |
LastChildFill
Gets or sets a value indicating whether to enable the lastChildFillProperty.
Declaration
public bool LastChildFill { get; set; }
Property Value
Type |
---|
System.Boolean |
RootElement
Gets or sets the root element. This is a dependency property.
Declaration
public UIElement RootElement { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.UIElement | The root element. |
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.
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. |
GetDock(UIElement)
Gets an element's dock position in the Chart area.
Declaration
public static ChartDock GetDock(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | element | any UIElement |
Returns
Type | Description |
---|---|
ChartDock | returns dock position of UIElement. |
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The Available Size |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. |
SetDock(UIElement, ChartDock)
Sets an element's dock position in the Chart area.
Declaration
public static void SetDock(UIElement element, ChartDock dock)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | element | |
ChartDock | dock |