Share via


AdornerPlacementCollection.PositionRelativeToAdornerHeight Method (Double, Double, DependencyObject)

Adds a placement term that positions the adorner panel relative to the specified adorner's height.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub PositionRelativeToAdornerHeight ( _
    factor As Double, _
    offset As Double, _
    relativeTo As DependencyObject _
)
public void PositionRelativeToAdornerHeight(
    double factor,
    double offset,
    DependencyObject relativeTo
)
public:
void PositionRelativeToAdornerHeight(
    double factor, 
    double offset, 
    DependencyObject^ relativeTo
)
member PositionRelativeToAdornerHeight : 
        factor:float * 
        offset:float * 
        relativeTo:DependencyObject -> unit 
public function PositionRelativeToAdornerHeight(
    factor : double, 
    offset : double, 
    relativeTo : DependencyObject
)

Parameters

  • factor
    Type: System.Double
    A factor that is multiplied against the adorner's height.
  • offset
    Type: System.Double
    An offset that is added to the result.

Remarks

Values for factor and offset that are less than zero move the position of the AdornerPanel upward on the design surface.

.NET Framework Security

See Also

Reference

AdornerPlacementCollection Class

PositionRelativeToAdornerHeight Overload

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

PrimarySelectionAdornerProvider

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture