tags:

views:

378

answers:

3

Hi guys,

I have a border, i want the background of this border to be partially transparent (opacity 0.8) but i do not want the image behind it to be well defined. The effect i am after is similar to the Windows Vista window border effect, where you can see that something is behind it but you cant tell what it is.

A few clarifications:
I am working on Windows XP, so i cant use Vista Glass
I need this solution to be portable across any windows platform

Any help would be appreciated :)

+1  A: 

This is the best I could find on the net:

http://blogs.msdn.com/unnir/archive/2006/03/01/541154.aspx

Considering the above is by a Microsoft guy, you'd be hard pressed to find a better way to do it.

It does a simple transparency on the window, so not quite like Aero glass. Aero effect is hardware accelerated and most certainly uses Direct3D in some way.

This SO answer talks about it in some detail:

http://stackoverflow.com/questions/484130/is-it-possible-to-achieve-the-aero-glass-look-on-xp/484274#484274

Igor Zevaka
Thanks for the help mate. still working on imitating the Aero look, didnt quite get what i was after. Will post here if i do
TerrorAustralis
A: 

In Silverlight there is a Blur effect (http://www.silverlightshow.net/tips/Using-Blur-and-DropShadow-effects-in-Silverlight-3.aspx) should also be available for WPF (http://searchwindevelopment.techtarget.com/tip/0,289483,sid8_gci1377157,00.html) you can apply to controls. Maybe combining this with opacity would help you achive the desired goal?

texmex5
Thanks for the answer, blur only blurs the visuals within the display area of the control. For instance, if i have a red/whie gradient and i apply a blur, the red/white will blur to a more uniform color in the areas in which the blur is applied (a pinky color) but if it is transparent, the items and text behind the transparect control will still be sharply in focus
TerrorAustralis
A: 

What about this http://blog.wpfwonderland.com/2010/03/23/use-the-wpf-blur-effect-to-focus-attention/#comments? A simple way to bkur the background.

nportelli