GetBoundsRelativeTo(FrameworkElement,UIElement) Method
Get the bounds of an element relative to another element.
Syntax
[Extension()] public static Nullable<Rect> GetBoundsRelativeTo( FrameworkElement element, UIElement otherElement )
Parameters
- element
- The element.
- otherElement
- The element relative to the other element.
Return Value
The bounds of the element relative to another element, or null if
the elements are not related.
Exceptions
Exception | Description |
---|---|
System.ArgumentNullException | element is null. |
System.ArgumentNullException | otherElement is null. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also