Styling a WPF Button with Image+Text

后端 未结 4 3652
忘了有多久
忘了有多久 2021-02-20 19:04

In my C#/WPF/.NET 4.5 application I have buttons with images that I implemented in the following fashion:

4条回答
  •  醉酒成梦
    2021-02-20 19:36

    Use height property to fix Image height to let say 30(depend on your reqirement) and use HorzontalAllignment to center for textblock It wil work fine

提交回复
热议问题