RecognizesAccessKey Property
Collapse the table of content
Expand the table of content

ContentPresenter.RecognizesAccessKey Property


Gets or sets a value that indicates whether the ContentPresenter should use AccessText in its style.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool RecognizesAccessKey { get; set; }

Property Value

Type: System.Boolean

true if the ContentPresenter should use AccessText in its style; otherwise, false. The default is false.

Identifier field


Metadata properties set to true


The following example shows a style for the CheckBox control:

For more information about this example, see CheckBox Styles and Templates.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft