Disable WPF label accelerator key (text underscore is missing)

Posted by Richard Morgan on Stack Overflow See other posts from Stack Overflow or by Richard Morgan
Published on 2008-09-02T21:32:37Z Indexed on 2010/03/25 8:33 UTC
Read the original article Hit count: 1440

Filed under:
|

I am setting the .Content value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key.

Without changing the underlying string (by replacing all _ with __), is there a way to disable the accelerator for Labels?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about gui