WPF AccessText

The AccessKey control in WPF is used to add underscore to a character. This article demonstrates how to create and use an AccessText control in WPF using XAML and C#.
  • 4476
The AccessKey control in WPF is used to add underscore to a character. This article demonstrates how to create and use an AccessText control in WPF using XAML and C#.

Creating an AccessText

The AccessText element represents an AccessText control in XAML.
 

 <AccessText>_Click Me</AccessText>

If there are multiple underscore characters, only the first one is converted into an AccessKey the other underscores appear as normal text. If the underscore that you want converted to the access key is not the first underscore, use two consecutive underscores for any underscores that precede the one that you want to convert.


Further Readings

You may also want to read these related articles.

Ask Your Question 

Got a programming related question? You may want to post your question here
© 2020 DotNetHeaven. All rights reserved.