LinkPanel
A LinkPanel is a Panel used to position and orient elements along the route of a Link.
継承元: Panel
コンストラクター
LinkPanel()
Construct an empty LinkPanel.
プロパティ
Implementation : LinkPanelImplementation
Gets or sets the nature of the link implementation.
メソッド
ArrangeOverride(Size) : Size
Arrange the child elements of this panel and of any label nodes.
- finalSize
ComputeAngle(UIElement, LabelOrientation, double) : double
Dynamically compute the desired angle of an element along a segment of the route.
- elt
- the UIElement being rotated
- orient
- the LabelOrientation declared for the element
- angle
- the angle of the segment of the route where the element is attached
戻り値: the intended angle for the element
ComputeOffset(UIElement, int, double, Size, double) : Point
Compute the offset to use in determining the position of a label.
- elt
- the label being positioned, either a child element of the LinkPanel or the VisualElement of a label Node
- index
- the segment of the link, or a negative value if the label should be at the MidPoint
- segangle
- the angle of the th segment, or the MidAngle
- sz
- the size of the label
- labelangle
- the angle at which the label is rotated, from calling Double)
戻り値: an offset that is rotated according to the angle of the segment; this will be added to the midpoint of the link or to the fractional point along the segment
GetAlignment(DependencyObject) : Spot
Gets an element's alignment spot, which controls the point of the element that is positioned at a distance of the way along a particular segment of the route.
- d
- a child element of a LinkPanel
戻り値: The default value is Center.
GetFraction(DependencyObject) : double
Gets the fractional distance along a segment at which the element should be positioned.
- d
- a child element of a LinkPanel
戻り値: The default value is zero. For negative indexes, the fraction increases from zero to one as the point moves from the "to" end towards the "from" end.
GetFromArrow(DependencyObject) : Arrowhead
Gets the Arrowhead on a Path, at the FromNode end.
- d
- a child element of a LinkPanel
戻り値: The default value is None, meaning there is no Arrowhead on the element.
GetFromArrowScale(DependencyObject) : double
Gets the size of the Arrowhead on an element, at the FromNode end, as a scale multiple of its base size.
- d
- a child element of a LinkPanel
戻り値: The default value is 1.0, indicating the base size defined in Generic.xaml.
GetIndex(DependencyObject) : int
Gets an element's segment index along the link's route.
- d
- a child element of a LinkPanel
戻り値: Zero identifies the segment closest to the "from" end of the route. Positive values identify segments further along the route. Negative values identify segments starting at the "to" end of the route; -1 is the last segment, -2 is the next to last, etc. If the index is not specified for an element, the LinkPanel will arrange it to be at the Route's MidPoint.
GetIsLinkShape(DependencyObject) : bool
Gets whether a LinkShape is the primary stroke for the link.
GetOffset(DependencyObject) : Point
Gets the distances from the fractional point of a link segment at which the element should be positioned.
- d
- a child element of a LinkPanel
戻り値: The default value is (0, 0). The offset distances are in model coordinates. The offset is rotated to the angle of the link segment. Positive X values result in the element being positioned farther along the link segment; negative values are closer. Positive Y values result in the element being positioned away from the link segment on the right side of the path; negative values go toward the left side.
GetOrientation(DependencyObject) : LabelOrientation
Gets an element's intended rotation policy.
- d
- a child element of a LinkPanel
戻り値: The default value is None, meaning the element is not to be rotated.
GetToArrow(DependencyObject) : Arrowhead
Gets the Arrowhead on a Path, at the ToNode end.
- d
- a child element of a LinkPanel
戻り値: The default value is None, meaning there is no Arrowhead on the element.
GetToArrowScale(DependencyObject) : double
Gets the size of the Arrowhead on an element, at the ToNode end, as a scale multiple of its base size.
- d
- a child element of a LinkPanel
戻り値: The default value is 1.0, indicating the base size defined in the xaml.
IsFilled(Arrowhead) : bool
Returns whether an Arrowhead should be filled.
- arrow
- The Arrowhead which should or should not be filled.
戻り値: True if the Arrowhead should be filled.
MeasureOverride(Size) : Size
Determine the size of the union of the bounds of the positioned and rotated child elements.
- availableSize
SetAlignment(DependencyObject, Spot)
Sets an element's alignment spot, which controls the point of the element that is positioned at a distance of the way along a particular segment of the route.
- d
- a child element of a LinkPanel
- v
SetFraction(DependencyObject, double)
Sets the fractional distance along a segment at which the element should be positioned.
- d
- a child element of a LinkPanel
- v
- The fraction should be between zero and one, inclusive. For non-negative indexes, the fraction increases from zero to one as the point moves from the "from" end toward the "to" end. For negative indexes, the fraction increases from zero to one as the point moves from the "to" end towards the "from" end.
SetFromArrow(DependencyObject, Arrowhead)
Sets the Arrowhead on a Path, at the FromNode end.
- d
- a child element of a LinkPanel
- v
- the constant of the Arrowhead enum to which FromArrowProperty is being set.
SetFromArrowScale(DependencyObject, double)
Sets the size of the Arrowhead on an element at the FromNode end as a scale multiple of its base size.
- d
- a child element of a LinkPanel
- v
- the scale factor. Acceptable values are real numbers between zero and infinity.
SetIndex(DependencyObject, int)
Sets an element's segment index along the link's route.
- d
- a child element of a LinkPanel
- v
- Zero identifies the segment closest to the "from" end of the route. Positive values identify segments further along the route. Negative values identify segments starting at the "to" end of the route; -1 is the last segment, -2 is the next to last, etc. If the index is not specified for an element, the LinkPanel will arrange it to be at the Route's MidPoint.
SetIsLinkShape(DependencyObject, bool)
Sets whether a LinkShape is the primary stroke for the link.
SetOffset(DependencyObject, Point)
Sets the distances from the fractional point of a link segment at which the element should be positioned.
- d
- a child element of a LinkPanel
- v
- The offset distances are in model coordinates. The offset is rotated to the angle of the link segment. Positive X values result in the element being positioned farther along the link segment; negative values are closer. Positive Y values result in the element being positioned away from the link segment on the right side of the path; negative values go toward the left side.
SetOrientation(DependencyObject, LabelOrientation)
Sets an element's intended rotation policy.
- d
- a child element of a LinkPanel
- v
SetToArrow(DependencyObject, Arrowhead)
Sets the Arrowhead on a Path, at the ToNode end.
- d
- a child element of a LinkPanel
- v
- the constant of the Arrowhead enum to which ToArrowProperty is being set.
SetToArrowScale(DependencyObject, double)
Sets the size of the Arrowhead on an element, at the ToNode end, as a scale multiple of its base size.
- d
- a child element of a LinkPanel
- v
- the scale factor. Acceptable values are real numbers between zero and infinity.
フィールド
AlignmentProperty : DependencyProperty
Identifies the Alignment attached dependency property.
FractionProperty : DependencyProperty
Identifies the Fraction attached dependency property.
FromArrowProperty : DependencyProperty
Identifies the FromArrow attached dependency property.
FromArrowScaleProperty : DependencyProperty
Identifies the FromArrowScale attached dependency property.
ImplementationProperty : DependencyProperty
Identifies the Implementation dependency property.
IndexProperty : DependencyProperty
Identifies the Index attached dependency property.
IsLinkShapeProperty : DependencyProperty
Identifies the IsLinkShape dependency property.
OffsetProperty : DependencyProperty
Identifies the Offset attached dependency property.
OrientationProperty : DependencyProperty
Identifies the Orientation attached dependency property.
ToArrowProperty : DependencyProperty
Identifies the ToArrow attached dependency property.
ToArrowScaleProperty : DependencyProperty
Identifies the ToArrowScale attached dependency property.