How do you completely remove the button border in wpf?

前端 未结 8 1372
花落未央
花落未央 2020-11-28 21:33

I\'m trying to create a button that has an image in it and no border - just like the Firefox toolbar buttons before you hover over them and see the full button.

I\'v

8条回答
  •  伪装坚强ぢ
    2020-11-28 22:02

    Programmatically, you can do this:

    btn.BorderBrush = new SolidColorBrush(Colors.Transparent);
    

提交回复
热议问题