Gets or sets a value that indicates whether the element can receive focus. This is a dependency property.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Only the focused element receives keyboard input.
Certain derived classes might override metadata for this dependency property such that the derived class is focusable by default.
When you derive from ContentElement, consider whether you want your element to be focusable, because by default it will not be focusable. If you want your element to be focusable, override the metadata for this property in your derived class static constructor as follows:
where myElement is the class name of the type that you are overriding the metadata value on.
The following example creates a style that makes a Paragraph focusable by default and gives it a visual behavior when it receives focus.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.