Share via


PlacementAdapter.SetPlacements Method (ModelItem, PlacementIntent, RelativeValueCollection)

Assigns the specified collection 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, _
    placement As RelativeValueCollection _
)
public abstract void SetPlacements(
    ModelItem item,
    PlacementIntent intent,
    RelativeValueCollection placement
)
public:
virtual void SetPlacements(
    ModelItem^ item, 
    PlacementIntent intent, 
    RelativeValueCollection^ placement
) abstract
abstract SetPlacements : 
        item:ModelItem * 
        intent:PlacementIntent * 
        placement:RelativeValueCollection -> unit 
public abstract function SetPlacements(
    item : ModelItem, 
    intent : PlacementIntent, 
    placement : RelativeValueCollection
)

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