Version

GetInViewRect Method

Returns the area of the specified container that is in view or will be in view when the current animations end.
Syntax
'Declaration
 
Public Function GetInViewRect( _
   ByVal container As DependencyObject _
) As Rect
public Rect GetInViewRect( 
   DependencyObject container
)

Parameters

container
The container in question.

Return Value

A rect (in coordinates relative to the container) that represents the area of the container that will be in view once all animations have ended. If no part of the container will be in view then an empty rect is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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