Icon inside of button?

前端 未结 4 1531
灰色年华
灰色年华 2021-02-02 09:03

How do i add an icon like in the screenshot below inside of a button? I cannot seem to find how to do it.

\"http://i

4条回答
  •  暖寄归人
    2021-02-02 09:47

    WPF (and Silverlight) is offering a control called Image. As the name implies it's a container which can hold an image inside. Use such a control to represent the icon you want and then place it inside your Button through its Content property

    like here:

    
    

提交回复
热议问题