RelativePlacement Class
Definition
Placement class providing properties for different kinds of relative placements.
Syntax
public sealed class RelativePlacement : AdornerPlacement
Constructors
RelativePlacement() | Creates a new RelativePlacement instance. The default instance is a adorner with zero size, you have to set some properties to define the placement. |
RelativePlacement(HorizontalAlignment, VerticalAlignment) | Creates a new RelativePlacement instance from the specified horizontal and vertical alignments. |
Properties
HeightOffset | Gets/Sets an offset that is added to the adorner height for the size calculation. |
HeightRelativeToContentHeight | Gets/Sets the height of the adorner as factor relative to the height of the adorned item. |
HeightRelativeToDesiredHeight | Gets/Sets the height of the adorner as factor relative to the desired adorner height. |
WidthOffset | Gets/Sets an offset that is added to the adorner width for the size calculation. |
WidthRelativeToContentWidth | Gets/Sets the width of the adorner as factor relative to the width of the adorned item. |
WidthRelativeToDesiredWidth | Gets/Sets the width of the adorner as factor relative to the desired adorner width. |
XOffset | Gets/Sets an offset that is added to the adorner position. |
XRelativeToAdornerWidth | Gets/Sets the left border of the adorner element as factor relative to the width of the adorner. |
XRelativeToContentWidth | Gets/Sets the left border of the adorner element as factor relative to the width of the adorned content. |
YOffset | Gets/Sets an offset that is added to the adorner position. |
YRelativeToAdornerHeight | Gets/Sets the top border of the adorner element as factor relative to the height of the adorner. |
YRelativeToContentHeight | Gets/Sets the top border of the adorner element as factor relative to the height of the adorned content. |
Methods
Arrange(AdornerPanel, UIElement, Size) | Arranges the adorner element on the specified adorner panel. |