WPF: Vista style window
-
How can we have vista style window (i.e. with drop-shadow and rounded corner) in Windows XP? If I add 'PresentationFramework.Aero', it changes look for controls and not for main window. I've set WindowStyle>None, Background>null and AllowTransparency>True for the window. And then, added a rectangle with rounded corner and drop-shadow. It emulates style perfectly but causing serious performance threat. Can you people suggest me better approach?
-
How can we have vista style window (i.e. with drop-shadow and rounded corner) in Windows XP? If I add 'PresentationFramework.Aero', it changes look for controls and not for main window. I've set WindowStyle>None, Background>null and AllowTransparency>True for the window. And then, added a rectangle with rounded corner and drop-shadow. It emulates style perfectly but causing serious performance threat. Can you people suggest me better approach?
Nope :) Face it, any time you are bypassing the native rendering engine the OS uses you are going to take a performance hit. I don't care what anyone says. This is why Vista and 7 are 'NEW'. They were written with the intent to support this new look and feel so the OS internals, all the way down to the rendering engines, were optimised towards that purpose intentionally. On older OSes if you turn off native rendering and do all your own window drawing in your code you are always going to incur a performance hit because you are essentially moving that code up a layer, or at very least adding cycles in the way to signal an alternate rendering routine.