开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜