Button template with image and text in wpf

后端 未结 7 853
刺人心
刺人心 2020-12-06 00:59

I want to create buttons with images and text inside. For example, i would use different images and text for buttons like \'Browse folders\' and \'Import\'.

One of th

7条回答
  •  被撕碎了的回忆
    2020-12-06 01:50

    It doesn't have to be that complicated. Something as simple as putting a StackPanel inside a button will do the trick:

    
    

    Then you can configure the StackPanel to control where the text should appear, alignment, etc.

提交回复
热议问题