This documentation is archived and is not being maintained.

Microsoft.Windows.Design.Interaction Namespace

Provides types for implementing the user interface (UI) for a control's custom design time.

The Microsoft.Windows.Design.Interaction namespace provides classes for creating custom context menu items, adorners, and user gestures. Derive from PrimarySelectionAdornerProvider to implement an adorner provider for the selected element on the design surface. Derive from PrimarySelectionContextMenuProvider to implement a MenuGroup for a context menu. Derive from the Task class to implement gestures like drag-and-drop.

  ClassDescription
Public classAdapterUsed to adapt logic for a particular item.
Public classAdornerColorsProvides a set of common brushes that can be used on adorners.
Public classAdornerCoordinateSpaceDefines a 2D coordinate space for use in AdornerPanel.
Public classAdornerCoordinateSpacesDefines the two common coordinate spaces used in the designer.
Public classAdornerFontsProvides a set of common brushes that can be used on adorners.
Public classAdornerLayoutPerforms the layout of an adorner on the DesignerView.
Public classAdornerOrderSpecifies the z-order of adorners in Design view.
Public classAdornerPanelProvides a container for Windows Presentation foundation (WPF) controls, which are used at design time as adorners.
Public classAdornerPlacementCollectionEnables precise placement of adorners within an AdornerPanel.
Public classAdornerPropertiesDefines a set of attached properties for a UI element to enable adorner appearance and behavior.
Public classAdornerProviderA feature provider that you can add to a class to automatically add adorners to the designer surface.
Public classAdornerResourcesUsed to define a set of resources that can be used in XAML.
Public classCanExecuteToolEventArgsProvides data for the CanExecute event.
Public classCommandExceptionEventArgsProvides data for the CommandException event defined on the DesignerView class.
Public classContextMenuProviderDefines a set of menu items that are shown in a context menu.
Public classCreationCommandsRepresents a set of static command definitions for tool creation commands.
Public classCreationToolA tool that is used to create new instances of objects on the designer.
Public classCreationToolAttributeIdentifies the creation tool that should be used to create an instance of a specified type.
Public classCurrentDesignerViewA context item that is used to store and report the current designer view that is being used in the editing context.
Public classDesignerCommandsRepresents commands associated with a designer.
Public classDesignerViewProvides a visual design surface for the designer.
Public classDragGestureDataProvides additional information during a drag-and-drop operation.
Public classElementAlignmentProvides a container for element alignment settings in the Windows Presentation Foundation (WPF) Designer for Visual Studio.
Public classExecutedToolEventArgsProvides data for the Executed event.
Public classFocusedTaskContains the task that currently has the focus in a tool.
Public classGestureDataProvides information about a gesture.
Public classMatchGestureEventArgsProvides data for the MatchGesture event.
Public classMenuActionA context menu item which represents an action to take in the designer.
Public classMenuActionEventArgsProvides data for MenuAction events.
Public classMenuBaseProvides a base class for both actions and groups.
Public classMenuGroupRepresents a group of menu items.
Public classMouseGestureDataProvides information about the mouse position.
Public classParentAdapterProvides an extension point for any type that can be a parent of child objects.
Public classPlacementAdapterAn adapter that is used to get and set positions of objects in parent coordinates.
Public classPrimarySelectionAdornerProviderOffers a set of adorners that are shown for the primary selection.
Public classPrimarySelectionContextMenuProviderOffers a set of MenuGroup items that are shown for the current selection.
Public classPrimarySelectionTaskProviderProvides a set of tasks that are available from the selection tool when a class is in the primary selection.
Public classRelativePositionRepresents a position on the designer that remains independent of coordinate systems.
Public classRelativePositionsRepresents a set of static instances of common RelativePositions objects.
Public classRelativeValueCollectionRepresents a collection of values that describe the placement of an item within a panel or container on the designer surface.
Public classRootPlacementAdapterProvides placement support for any element that does not have a parent.
Public classSelectionRepresents a set of objects selected by a user in a designer.
Public classSelectionCommandsProvides standard commands that control the selection of objects in a designer.
Public classSelectionOperationsProvides standard operations that control the programmatic selection of objects in a designer.
Public classSelectionToolRepresents a tool that selects objects in a designer, such as a mouse pointer.
Public classTaskRepresents a collection of commands and input bindings to those commands.
Public classTaskProviderA feature provider that you can add to a class to automatically add tasks to the active tool.
Public classToolRepresents a tool that determines the mode of the designer.
Public classToolActionEventArgsProvides data for ToolAction events.
Public classToolCommandActs as a command identifier and as a unified way of invoking a particular command.
Public classToolCommandBindingActs as a bridge between a command and an event handler which implements it.
Public classToolCommandBindingCollectionRepresents a collection of tool command bindings.
Public classToolGestureRepresents a tool interaction with the mouse.
Public classWheelGestureDataProvides gesture data about the mouse wheel.

  StructureDescription
Public structureAdornerPlacementValueRepresents a single value in an AdornerPlacementCollection.
Public structureRelativePointDefines a point that consists of an X and Y location and a RelativePosition class that defines the relationship of those coordinates to some other object.
Public structureRelativeValueRepresents a coordinate on the designer.

  InterfaceDescription
Public interfaceIAdornerPlacementSpecifies a placement term for an AdornerPlacementCollection.

  DelegateDescription
Public delegateCanExecuteToolEventHandlerRepresents the method that will handle the CanExecute events for tool commands.
Public delegateExecutedToolEventHandlerRepresents the method that will handle the Executed events for tool commands.
Public delegateLoadResourcesCallbackUsed when a resource for the specified key must be located.
Public delegateModelHitTestFilterCallbackA callback delegate that can be assigned to the ModelFilter property of a transacted task.

  EnumerationDescription
Public enumerationAdornerPlacementDimensionAn enumeration that defines the dimension that should be applied to an AdornerPlacementValue structure.
Public enumerationAdornerStretchAn enumeration used to identify how the particular dimension (X or Y) of an adorner behaves when Design view is scaled.
Public enumerationNudgeIntentAn enumeration that indicates the method a PlacementAdapter uses to move controls during keyboard nudges.
Public enumerationPlacementIntentAn enumeration that indicates the method a PlacementAdapter uses to place controls.
Public enumerationToolActionRepresents a user gesture.
Show: