Share via


AdornerCoordinateSpaces Class

Defines the two common coordinate spaces used in the designer.

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

Syntax

'Declaration
Public NotInheritable Class AdornerCoordinateSpaces
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class AdornerCoordinateSpaces
public ref class AdornerCoordinateSpaces abstract sealed
public final class AdornerCoordinateSpaces

Remarks

Layout space refers to the coordinate system that is used by the Windows Presentation Foundation (WPF) layout engine. Render space refers to the coordinate system that is used by the raw visuals on the WPF surface. Most adorners use render space.

Examples

The following code example shows how to assign an AdornerCoordinateSpaces value to the CoordinateSpace property. For more information, see Walkthrough: Implementing a Rail Inside a Control.

' Use layout space for the adorner panel. 
' If render space were used, the slider would skew along with the button.
panel.CoordinateSpace = AdornerCoordinateSpaces.Layout
// Use layout space for the adorner panel. 
// If render space were used, the slider would skew along with the button.
panel.CoordinateSpace = AdornerCoordinateSpaces.Layout;

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Interaction.AdornerCoordinateSpaces

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

AdornerCoordinateSpaces Members

Microsoft.Windows.Design.Interaction Namespace

AdornerCoordinateSpace

AdornerPanel

Other Resources

Layout Space and Render Space

Walkthrough: Implementing a Rail Inside a Control

Understanding WPF Designer Extensibility