PlacementAdapter.SetPlacements Method (ModelItem, PlacementIntent, array<RelativeValue )

Assigns the specified array of positions to the specified model item.

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

Syntax

'Declaration
Public MustOverride Sub SetPlacements ( _
    item As ModelItem, _
    intent As PlacementIntent, _
    ParamArray positions As RelativeValue() _
)
public abstract void SetPlacements(
    ModelItem item,
    PlacementIntent intent,
    params RelativeValue[] positions
)
public:
virtual void SetPlacements(
    ModelItem^ item, 
    PlacementIntent intent, 
    ... array<RelativeValue>^ positions
) abstract
abstract SetPlacements : 
        item:ModelItem * 
        intent:PlacementIntent * 
        positions:RelativeValue[] -> unit 
public abstract function SetPlacements(
    item : ModelItem, 
    intent : PlacementIntent, 
    ... positions : RelativeValue[]
)

Parameters

Remarks

The PlacementIntent is used by the placement adapter to fill in missing values from the specified placement positions. For example, if the PlacementIntent is Move and you pass in a value for LeftSide, but not RightSide, the placement adapter adjusts the right side so that the size of the control remains constant.

.NET Framework Security

See Also

Reference

PlacementAdapter Class

SetPlacements Overload

Microsoft.Windows.Design.Interaction Namespace

ModelItem

PlacementIntent

AdornerPlacementCollection

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture