Button template with image and text in wpf

后端 未结 7 839
刺人心
刺人心 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 02:06

    I added a few things to line them up nicely

    <Button>
       <StackPanel Orientation="Horizontal">
           <Image Source="/ApplicationName;component/Images/MyImage.ico"/>
           <Label Padding="0">My Button Text</Label>
       </StackPanel>
    </Button>
    
    0 讨论(0)
提交回复
热议问题