Udostępnij za pośrednictwem


Adapter Class

Used to adapt logic for a particular item.

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

Syntax

'Declaration
Public MustInherit Class Adapter _
    Inherits FeatureProvider
'Usage
Dim instance As Adapter
public abstract class Adapter : FeatureProvider
public ref class Adapter abstract : public FeatureProvider
public abstract class Adapter extends FeatureProvider

Remarks

Derive from the Adapter class to adapt logic for a particular item. For example, moving an element in a panel uses the same task, but the implementation of the task differs depending on what panel type the element is in. The drag task for the element queries its parent panel for an adapter that can perform the move operation.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Features.FeatureProvider
    Microsoft.Windows.Design.Interaction.Adapter
      Microsoft.Windows.Design.Interaction.ParentAdapter
      Microsoft.Windows.Design.Interaction.PlacementAdapter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Adapter Members

Microsoft.Windows.Design.Interaction Namespace

ParentAdapter

Other Resources

Understanding WPF Designer Extensibility