Avalonia: Add support for window transparency

Created on 19 May 2017  路  6Comments  路  Source: AvaloniaUI/Avalonia

borderlesswindow

enhancement

Most helpful comment

Windows with transparent areas aren't supported at the moment. On Linux/OS X it should be a fairly easy task, on windows it would be a bit complicated (UpdateLayeredWindow is slow, so this approach should be used instead, which in turn introduces compatibility issue, since WS_EX_NOREDIRECTIONBITMAP was introduced only in Win8).

All 6 comments

HasSystemDecorations = false and then make your own header. Good example AvaloniaStudio

Cool !
but how to let @WarFollowsMe window background transparent(Rounded corner background).

Windows with transparent areas aren't supported at the moment. On Linux/OS X it should be a fairly easy task, on windows it would be a bit complicated (UpdateLayeredWindow is slow, so this approach should be used instead, which in turn introduces compatibility issue, since WS_EX_NOREDIRECTIONBITMAP was introduced only in Win8).

https://msdn.microsoft.com/en-us/library/windows/desktop/aa969508(v=vs.85).aspx seems to be another option for Win7

I am also in need of this feature (to be able to port my application over correctly from WPF).
How does WPF handle transparent windows on Windows 7?

It appears that WPF uses WS_EX_LAYERED on Windows 10 even, so this talk about having to do WS_EX_NOREDIRECTIONBITMAP would be a straight upgrade from WPF.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grokys picture grokys  路  4Comments

JonathaN7Shepard picture JonathaN7Shepard  路  4Comments

khoshroomahdi picture khoshroomahdi  路  4Comments

MarchingCube picture MarchingCube  路  4Comments

Suriman picture Suriman  路  3Comments