Text content in a WPF button not being centred vertically

前端 未结 2 1178
日久生厌
日久生厌 2021-02-12 13:38

Is there a reason why the text content of a WPF button is appearing with unwanted space above the text?

I have a button in a StackPanel. This button is a simple close b

2条回答
  •  星月不相逢
    2021-02-12 14:08

    A simple way to accomplish this with a lower case "x" is to use a TextBlock as content and play with its upper margin:

    
    

提交回复
热议问题