开发者

How to create a translucent client area in c#/.net?

开发者 https://www.devze.com 2023-02-03 06:47 出处:网络
How can I create a client area/control with开发者_运维技巧 translucent effect in WPF/Windows forms.Like the \"aero theme\" and the \"picasa photo viewer\"?

How can I create a client area/control with开发者_运维技巧 translucent effect in WPF/Windows forms.Like the "aero theme" and the "picasa photo viewer"?

Config:Win7/VS2008.

thanks.


In WPF windows have the property AllowsTransparency, if that is set to true WindowStyle needs to be set to None but the window may be transparent then, you can set Opacity and Background to appropriate values if you want some sort of glass effect.


In WPF, you can set WindowStyle to None and AllowsTransparency to true, then leave transparent areas in the content.

In WinForms, you'll need to make a layered window.

0

精彩评论

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

关注公众号