SpotPanel
This panel is useful for positioning child elements relative either to the bounds of a particular child or to a computed rectangle.
Herda de: Panel
Métodos
ArrangeOverride(Size) : Size
Arrange all of the children according to the Spot and Alignment attached properties and the size of the first child with the Main attached property.
- finalSize
ComputeBorder() : Rect
Compute the rectangle in which the elements should be positioned.
Retorna: If this panel is in an Adornment and is its LocationElement, return the AdornedElement's size. Otherwise return a Rect based on this first child's DesiredSize. Only the Width and Height of the Rect matter in the calculations performed by Size) and Size).
GetAlignment(DependencyObject) : Spot
Gets the Spot point of the element that should be positioned at the DependencyObject) point.
- d
- a UIElement
Retorna: This defaults to Center
GetMain(DependencyObject) : bool
Gets whether the element is considered the "main" element for the SpotPanel, around which all of the sibling elements are positioned.
- d
- this should be a child of a SpotPanel
Retorna: This defaults to false.
GetSpot(DependencyObject) : Spot
Gets the Spot at which the element should be positioned.
- d
- a UIElement
Retorna: This defaults to Center
MeasureOverride(Size) : Size
Measure all of the children and return the size of the union of the bounds of the elements positioned according to the Spot and Alignment attached properties and the size of the element with the Main attached property.
- availableSize
SetAlignment(DependencyObject, Spot)
Sets the Spot point of the element that should be positioned at the DependencyObject) point.
- d
- a UIElement
- v
- a Spot for which IsSpot is true; the panel assumes Center otherwise
SetMain(DependencyObject, bool)
Sets whether the element is considered the "main" element for the SpotPanel, around which all of the sibling elements are positioned.
- d
- this should be a child of a SpotPanel
- v
- only one such child of the SpotPanel should have this property set to true
SetSpot(DependencyObject, Spot)
Sets the Spot at which the element should be positioned.
- d
- a UIElement
- v
- a Spot for which IsSpot is true; the panel assumes Center otherwise
Campos
AlignmentProperty : DependencyProperty
Identifies the Alignment attached dependency property.
MainProperty : DependencyProperty
Identifies the Main attached dependency property.
SpotProperty : DependencyProperty
Identifies the Spot attached dependency property.