NodePanel
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
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
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
private Size ArrangeFixed(Size finalSize)
result = nodePanel.ArrangeFixed(finalSize)
Measures the children according to the rules defined by NodePanelSizing.Fixed.
- finalSize
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
private static string FindLongestWord(string input)
result = NodePanel.FindLongestWord(input)
Calculates the longest word in and returns it.
- input
public static NodeFigure GetFigure(DependencyObject d)
result = NodePanel.GetFigure(d)
Gets the value of the FigureProperty attached dependency property.
- d
internal static double GetFigureParameter1(DependencyObject d)
result = NodePanel.GetFigureParameter1(d)
Gets the value of the FigureParameter1Property attached dependency property.
- d
internal static double GetFigureParameter2(DependencyObject d)
result = NodePanel.GetFigureParameter2(d)
Gets the value of the FigureParameter2Property attached dependency property.
- d
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.
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.
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
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
public static void SetFigure(DependencyObject d, NodeFigure v)
NodePanel.SetFigure(d, v)
Sets the value of the FigureProperty attached dependency property.
- d
- v
internal static void SetFigureParameter1(DependencyObject d, double v)
NodePanel.SetFigureParameter1(d, v)
Sets the value of the FigureParameter1Property attached dependency property.
- d
- v
internal static void SetFigureParameter2(DependencyObject d, double v)
NodePanel.SetFigureParameter2(d, v)
Sets the value of the FigureParameter2Property attached dependency property.
- d
- v
public static void SetSpot1(DependencyObject d, Spot v)
NodePanel.SetSpot1(d, v)
Sets the value of the Spot1 attached property.
- d
- a UIElement
- v
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
internal static readonly DependencyProperty FigureParameter1Property
value = NodePanel.FigureParameter1Property
Identifies the FigureParameter1 attached dependency property, for a NodeShape element inside a NodePanel.
internal static readonly DependencyProperty FigureParameter2Property
value = NodePanel.FigureParameter2Property
Identifies the FigureParameter2 attached dependency property, for a NodeShape element inside a NodePanel.
public static readonly DependencyProperty FigureProperty
value = NodePanel.FigureProperty
Identifies the Figure attached dependency property, for a NodeShape element inside a NodePanel.
public static readonly DependencyProperty SizingProperty
value = NodePanel.SizingProperty
Defines how this panel should behave when it is resized.
public static readonly DependencyProperty Spot1Property
value = NodePanel.Spot1Property
Identifies the Spot1 attached dependency property.
public static readonly DependencyProperty Spot2Property
value = NodePanel.Spot2Property
Identifies the Spot2 attached dependency property.