LayoutInformation.GetLayoutSlot Method (FrameworkElement)

 

Returns a Rect that represents the layout partition that is reserved for a child element.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

static member GetLayoutSlot : 
        element:FrameworkElement -> Rect

Parameters

element
Type: System.Windows.FrameworkElement

The FrameworkElement whose layout slot is desired.

Return Value

Type: System.Windows.Rect

A Rect that represents the layout slot of the element.

The following example demonstrates how to use the GetLayoutSlot method to translate the bounding box of a FrameworkElement into a GeometryDrawing.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: