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.
精彩评论