Share via


AdornerPanel.CoordinateSpace Property

Gets or sets the space to use for rendering the adorner panel. This is a dependency property.

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

Syntax

'Declaration
Public Property CoordinateSpace As AdornerCoordinateSpace
'Usage
Dim instance As AdornerPanel 
Dim value As AdornerCoordinateSpace 

value = instance.CoordinateSpace

instance.CoordinateSpace = value
public AdornerCoordinateSpace CoordinateSpace { get; set; }
public:
property AdornerCoordinateSpace^ CoordinateSpace {
    AdornerCoordinateSpace^ get ();
    void set (AdornerCoordinateSpace^ value);
}
public function get CoordinateSpace () : AdornerCoordinateSpace 
public function set CoordinateSpace (value : AdornerCoordinateSpace)

Property Value

Type: Microsoft.Windows.Design.Interaction.AdornerCoordinateSpace
An AdornerCoordinateSpaces value representing the adorner panel's coordinate space. The default is Render.

Dependency Property Information

Identifier field

CoordinateSpaceProperty

Metadata properties set to true

AffectsParentArrange

Examples

The following code example shows how to set the CoordinateSpace property to the layout space. 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;

.NET Framework Security

See Also

Reference

AdornerPanel Class

AdornerPanel Members

Microsoft.Windows.Design.Interaction Namespace

AdornerCoordinateSpaces

Other Resources

Adorner Architecture

Layout Space and Render Space

Feature Providers and Feature Connectors