Image fill the space on the button in WPF

后端 未结 4 1598

I have Button on my WPF app and I want an Image to fill the Button completely. Currently I have The following code and it does not fil

4条回答
  •  悲&欢浪女
    2021-01-20 06:11

    Set HorizontalContentAlignment and VerticalContentAlignment Properties of the Button to be Stretch :

    
        
            
        
             
    

    See this question and this link for more

提交回复
热议问题