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)

Public Shared Function GetLayoutSlot (
	element As FrameworkElement
) As Rect


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.

Legacy Code Example

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

Code snippet is not found. Confirm that the code snippet name 'LayoutInformation' is correct.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft