Share via


AdornerPlacementCollection.SizeRelativeToContentWidth Method (Double, Double)

Adds a placement term that sizes the adorner panel relative to the adorned content's width.

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

Syntax

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

Parameters

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

Examples

The following code example shows how to use the SizeRelativeToContentWidth method to specify the position of an adorner in an adorner panel. For more information, see Walkthrough: Creating a Design-time Adorner.

.NET Framework Security

See Also

Reference

AdornerPlacementCollection Class

SizeRelativeToContentWidth Overload

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

PrimarySelectionAdornerProvider

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture