Share via


PlacementAdapter.BeginPlacement Method

Begins the placement operation.

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

Syntax

'Declaration
Public Overridable Sub BeginPlacement ( _
    item As ModelItem _
)
public virtual void BeginPlacement(
    ModelItem item
)
public:
virtual void BeginPlacement(
    ModelItem^ item
)
abstract BeginPlacement : 
        item:ModelItem -> unit 
override BeginPlacement : 
        item:ModelItem -> unit 
public function BeginPlacement(
    item : ModelItem
)

Parameters

Remarks

Override the BeginPlacement method to set up a placement operation. For moving or sizing operations, this usually involves caching the initial bounding Rect of the item or its parent.

The default implementation has no effect.

.NET Framework Security

See Also

Reference

PlacementAdapter Class

Microsoft.Windows.Design.Interaction Namespace

ModelItem

AdornerPlacementCollection

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture