Styling a WPF Button with Image+Text

后端 未结 4 4973
忘了有多久
忘了有多久 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:21

    Try something like this:

    The Button:

    
    

    The Style:

    
    

    You might have to change the Height/Margin for the Image in the Style to fit your needs.

提交回复
热议问题