NodePanel

StockSharp.Xaml.Diagram.GXDiagram

This panel is useful for having a background shape as the primary object and positioning one or more child elements within that shape.

Inherits: Panel

Properties

Sizing
public NodePanelSizing Sizing { get; set; }
value = nodePanel.Sizing
nodePanel.Sizing = value

Defines how this panel should behave when it is resized. Possible values are: Fixed (default) or Auto

Methods

ArrangeAuto
private Size ArrangeAuto(Size finalSize)
result = nodePanel.ArrangeAuto(finalSize)

Arranges the children according to the rules defined by NodePanelSizing.Auto. Resizes the first shape to fit around the other children and wraps text appropriately if requested.

finalSize
ArrangeFixed
private Size ArrangeFixed(Size finalSize)
result = nodePanel.ArrangeFixed(finalSize)

Measures the children according to the rules defined by NodePanelSizing.Fixed.

finalSize
ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = nodePanel.ArrangeOverride(finalSize)

Position all of the children after the first one to be within the rectangular area specified by DependencyObject) and DependencyObject) of the first child element.

finalSize
FindLongestWord
private static string FindLongestWord(string input)
result = NodePanel.FindLongestWord(input)

Calculates the longest word in and returns it.

input
GetFigure
public static NodeFigure GetFigure(DependencyObject d)
result = NodePanel.GetFigure(d)

Gets the value of the FigureProperty attached dependency property.

d
GetFigureParameter1
internal static double GetFigureParameter1(DependencyObject d)
result = NodePanel.GetFigureParameter1(d)

Gets the value of the FigureParameter1Property attached dependency property.

d
GetFigureParameter2
internal static double GetFigureParameter2(DependencyObject d)
result = NodePanel.GetFigureParameter2(d)

Gets the value of the FigureParameter2Property attached dependency property.

d
GetSpot1
public static Spot GetSpot1(DependencyObject d)
result = NodePanel.GetSpot1(d)

Gets the value of the Spot1 attached property.

d
a UIElement

Returns: This defaults to TopLeft.

GetSpot2
public static Spot GetSpot2(DependencyObject d)
result = NodePanel.GetSpot2(d)

Gets the value of the Spot2 attached property.

d
a UIElement

Returns: This defaults to BottomRight.

MeasureAuto
private Size MeasureAuto(Size availableSize)
result = nodePanel.MeasureAuto(availableSize)

Measures the children according to the rules defined by NodePanelSizing.Auto. Resizes to fit its children and wraps text appropriately if requested.

availableSize
MeasureOverride
protected override Size MeasureOverride(Size availableSize)
result = nodePanel.MeasureOverride(availableSize)

Measure all of the children after the first one to fit within the rectangular area specified by DependencyObject) and DependencyObject) of the first child element.

availableSize
SetFigure
public static void SetFigure(DependencyObject d, NodeFigure v)
NodePanel.SetFigure(d, v)

Sets the value of the FigureProperty attached dependency property.

d
v
SetFigureParameter1
internal static void SetFigureParameter1(DependencyObject d, double v)
NodePanel.SetFigureParameter1(d, v)

Sets the value of the FigureParameter1Property attached dependency property.

d
v
SetFigureParameter2
internal static void SetFigureParameter2(DependencyObject d, double v)
NodePanel.SetFigureParameter2(d, v)

Sets the value of the FigureParameter2Property attached dependency property.

d
v
SetSpot1
public static void SetSpot1(DependencyObject d, Spot v)
NodePanel.SetSpot1(d, v)

Sets the value of the Spot1 attached property.

d
a UIElement
v
SetSpot2
public static void SetSpot2(DependencyObject d, Spot v)
NodePanel.SetSpot2(d, v)

Sets the value of the Spot2 attached property.

d
a UIElement
v

Fields

FigureParameter1Property
internal static readonly DependencyProperty FigureParameter1Property
value = NodePanel.FigureParameter1Property

Identifies the FigureParameter1 attached dependency property, for a NodeShape element inside a NodePanel.

FigureParameter2Property
internal static readonly DependencyProperty FigureParameter2Property
value = NodePanel.FigureParameter2Property

Identifies the FigureParameter2 attached dependency property, for a NodeShape element inside a NodePanel.

FigureProperty
public static readonly DependencyProperty FigureProperty
value = NodePanel.FigureProperty

Identifies the Figure attached dependency property, for a NodeShape element inside a NodePanel.

SizingProperty
public static readonly DependencyProperty SizingProperty
value = NodePanel.SizingProperty

Defines how this panel should behave when it is resized.

Spot1Property
public static readonly DependencyProperty Spot1Property
value = NodePanel.Spot1Property

Identifies the Spot1 attached dependency property.

Spot2Property
public static readonly DependencyProperty Spot2Property
value = NodePanel.Spot2Property

Identifies the Spot2 attached dependency property.