开发者

WPF: How to make a button background transparent

开发者 https://www.devze.com 2023-01-28 17:18 出处:网络
I want to know how to set a wpf button background to transparent. 开发者_开发问答thank you<Button Background=\"Transparent\"/>

I want to know how to set a wpf button background to transparent.

开发者_开发问答thank you


<Button Background="Transparent"/>


Transparency Declaratively

<Button Background="Transparent"/>

Transparency programatically

this.btnTransparent.Background = Brushes.Transparent;

Semi-transparency declaratively

Opacity="0.5"

Semi-transparency programmatically

this.Opacity = 0.5;
0

精彩评论

暂无评论...
验证码 换一张
取 消