Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
/** @property */ public final boolean get_Focusable () /** @property */ public final void set_Focusable (boolean value)
public final function get Focusable () : boolean public final function set Focusable (value : boolean)
Property Valuetrue if the element is focusable; otherwise false. The default is false; however, see Remarks.
Metadata properties set to true
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 inherited by Hyperlink or its derived classes, Hyperlink overrides the metadata for this dependency property and redefines the default value of this property to be true.Notes to Inheritors: 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: 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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.