February 14, 2014
Queries the Windows Phone focus system to determine which object has focus.
Assembly: System.Windows (in System.Windows.dll)
can return null in certain cases. This might happen if there are no true Control class instances anywhere in the Windows Phone UI, or if the hosting browser does not have focus.
Windows Phone focus has the characteristic that while the focus-reporting events GotFocus and LostFocus are raised asynchronously, the focus returned by is determined synchronously. This design attempts to loosen constraints on runtime adjustments to element trees that could result from having to wait for the focus to be determined and moved.