I would like to make a small WPF app window semi-transparent and on top of other windows.
When I change settings on the top level Window it only seems to effect the contents, not the titlebar or border.
Is this possible with WPF??
Thanks
I would like to make a small WPF app window semi-transparent and on top of other windows.
When I change settings on the top level Window it only seems to effect the contents, not the titlebar or border.
Is this possible with WPF??
Thanks
I'm not sure this is the best answer, but:
AllowsTransparency="True" WindowStyle="None"
gets rid of the title and border -- now Opacity effects everything else. I then added my own border and Close button. Now I just need some Move functionality.
AllowsTransparency seems to do the trick, but it forces WindowStyle to None.
WindowStyle and AllowsTransparency are the two properties you'll have to change.
In order to have your window sit on top of all the other windows, you're going to want to set Window.Topmost to True as well. To move the window, handle one of the Mouse events on the border you added then call Window.DragMove in the event handler.