When I have the contents of a button as a regular string, for example. <Button Content="Ok" />then the button behaves as usual. But if I change the contents to have a keyboard accelerator, for example. <Button Content="_Ok" />The button style changes to different fields and sizes.
I have a TextBlock style that does not have a key, so it applies to all TextBlocks, my question is why it is applied when it has an accelerator, and not when it does not?
Change: . Additional information: the default style is inside the StackPanel resources, inside which there is a button. I think the question really is , why the default TextBlock style is not applied when the button has an accelerator?
source
share