Skip to content
Discussion options

You must be logged in to vote

Thank you @castorix ! I finally got it to work thanks to your suggestion of using regions.

I used something like this after my toolbar control is loaded in my example:

    private void CreateTransparencyRegions()
    {
        // Create region for the border.
        var hwnd = (HWND)this.GetWindowHandle();
        var region1 = CreateRectRgn(0, 0, AppWindow.Size.Width, AppWindow.Size.Height);
        var region2 = CreateRectRgn(
            (int)(0 + border.BorderThickness.Left),
            (int)(0 + border.BorderThickness.Top),
            (int)(AppWindow.Size.Width - border.BorderThickness.Right),
            (int)(AppWindow.Size.Height - border.BorderThickness.Bottom));
        var r…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@alegnicitrix
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@alegnicitrix
Comment options

@castorix
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alegnicitrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants