AdornerCoordinateSpaces.Layout Property
Gets the layout coordinate space based on layout information provided by Windows Presentation Foundation (WPF).
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared ReadOnly Property Layout As AdornerCoordinateSpace
'Usage
Dim value As AdornerCoordinateSpace
value = AdornerCoordinateSpaces.Layout
public static AdornerCoordinateSpace Layout { get; }
public:
static property AdornerCoordinateSpace^ Layout {
AdornerCoordinateSpace^ get ();
}
public static function get Layout () : AdornerCoordinateSpace
Property Value
Type: Microsoft.Windows.Design.Interaction.AdornerCoordinateSpace
An AdornerCoordinateSpace specifying layout space.
Examples
The following code example shows how to assign the Layout 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;
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdornerCoordinateSpaces Members
Microsoft.Windows.Design.Interaction Namespace