Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF: Vista style window

WPF: Vista style window

Scheduled Pinned Locked Moved WPF
csharpwpfperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Prasoon Chaudhary
    wrote on last edited by
    #1

    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?

    R 1 Reply Last reply
    0
    • P Prasoon Chaudhary

      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?

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      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.


      LinkedIn[^] | Blog[^] | Twitter[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups