An adapter that is used to get and set positions of objects in parent coordinates.
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Public MustInherit Class PlacementAdapter _
public abstract class PlacementAdapter : Adapter
public ref class PlacementAdapter abstract : public Adapter
type PlacementAdapter =
public abstract class PlacementAdapter extends Adapter
The PlacementAdapter type exposes the following members.
|Initializes a new instance of the PlacementAdapter class.
|Gets the type of adapter this class represents. (Overrides Adapter.AdapterType.)
|Begins the placement operation.
|Returns a value that indicates whether the specified coordinate can be set.
|Ends the placement operation.
|Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
|Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
|Serves as a hash function for a particular type. (Inherited from Object.)
|Returns a collection of positions that describe the placement of the specified item.
|Gets the boundary of the specified item parent.
|GetPlacementBoundary(ModelItem, PlacementIntent, array<RelativeValue)
|Gets the boundary of the specified item's parent.
|Gets the Type of the current instance. (Inherited from Object.)
|Creates a shallow copy of the current Object. (Inherited from Object.)
|SetNudgePlacements(ModelItem, NudgeIntent, array<RelativeValue)
|Assigns the specified array of positions for moving controls during keyboard nudges.
|SetNudgePlacements(ModelItem, NudgeIntent, RelativeValueCollection)
|Assigns the specified collection of positions for moving controls during keyboard nudges.
|SetPlacements(ModelItem, PlacementIntent, array<RelativeValue)
|Assigns the specified array of positions to the specified model item.
|SetPlacements(ModelItem, PlacementIntent, RelativeValueCollection)
|Assigns the specified collection of positions to the specified model item.
|Returns a string that represents the current object. (Inherited from Object.)
PlacementAdapter is used by grab handles to size and move controls. Placement adapters work by supporting reading and writing values as relative positions. To a PlacementAdapter everything is relative, so relative difference (deltas) are important. A PlacementAdapter takes a relative value and converts it into one or more property sets. To use a PlacementAdapter first query it to see whether it can set a position you are interested in setting. Then, use the results of this to get and set values through the GetPlacement and SetPlacements methods.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.