开发者

Transparency for WPF UI elements

开发者 https://www.devze.com 2023-03-09 13:25 出处:网络
Is it possible in WPF to make a certai开发者_开发问答n element - say, a Canvas containing a button - semi-transparent? All I could find so far is how to make a whole window transparent or making the b

Is it possible in WPF to make a certai开发者_开发问答n element - say, a Canvas containing a button - semi-transparent? All I could find so far is how to make a whole window transparent or making the background of WPF shapes transparent; but that's not what I need.

Please provide the answers either in XAML or C# - I don't speak Visual Basic.


Something along the lines of this perhaps? Opacity is probably what you are looking for

<Button Width="200" Height="30" Opacity="0.5">
    Click Me!
</Button>
0

精彩评论

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