RecognizesAccessKey Property

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

RecognizesAccessKeyProperty

Metadata properties set to true

None

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
Show:
© 2016 Microsoft