Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements.
Assembly: PresentationCore (in PresentationCore.dll)
Metadata properties set to true
IsKeyboardFocused and are typically used within class event handlers for other input-related events, for instance to determine whether the element already has keyboard focus, or to make determinations when mouse events and keyboard events occur in conjunction.
is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.
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