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 window transparancy

WPF window transparancy

Scheduled Pinned Locked Moved WPF
csharpwpfcomquestion
3 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.
  • J Offline
    J Offline
    Jeroen De Dauw
    wrote on last edited by
    #1

    Hey, I want to make a window with WindowStyle ThreeDBorderWindow transparent. This solution[^] does not work for windows with that WindowStyle :( Is this possible, and if so, how? Cheers!

    Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

    M 1 Reply Last reply
    0
    • J Jeroen De Dauw

      Hey, I want to make a window with WindowStyle ThreeDBorderWindow transparent. This solution[^] does not work for windows with that WindowStyle :( Is this possible, and if so, how? Cheers!

      Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      jeroen de dauw wrote:

      Is this possible, and if so, how?

      AllowsTransparency can only be used when the WindowStyle is None. You could use WindowStyle="None" AllowsTransparency="True" and provide the titlebar and borders yourself.

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      J 1 Reply Last reply
      0
      • M Mark Salsbery

        jeroen de dauw wrote:

        Is this possible, and if so, how?

        AllowsTransparency can only be used when the WindowStyle is None. You could use WindowStyle="None" AllowsTransparency="True" and provide the titlebar and borders yourself.

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        J Offline
        J Offline
        Jeroen De Dauw
        wrote on last edited by
        #3

        Hey, I'm aware of that, but don't want to go construct my own titlebar, borders and WindowState buttons myself. The approach would be viable if there was an easy way to get all those things onto my window by using some native properties or so, but I guess that's not possible. Cheers!

        Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

        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