It is necessary to use a transparent image in one of the windows in the WPF application; sample code:

<window> <image source="transparent image" /> </window> 

In the properties of the window set the background="transparent" , but still the image is displayed with a black background.

Tell me how to correctly display a transparent picture?

  • Strange - my png-picture with transparency was displayed without any of my actions regarding it ^^ " - Alexey Sonkin

2 answers 2

 <Window WindowStyle="None" AllowsTransparency="True" Background="Transparent"> <image source="transparent image" /> </Window> 

    Good day! And what is your picture? It is necessary png and make in Photoshop (or else where) it has a transparent background.

    In general, background = "transparent" at the window makes it black. There you need to set some property of the window so that it also becomes transparent - it seems AllowsTransparency. Then you can make a window, which will actually consist only of your picture and so drag across the screen.