Skip to content

WindowStyle None + Enable Transparency true= Exception  #131

@TMS-Namespace

Description

@TMS-Namespace

After upgrading to stable, started getting the exception that above two properties should be on together, although they are indeed both on:

System.InvalidOperationException: 'WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.'

This happens in AcrylicWindow.cs at line:

else if (msg == WM_SIZE && wParam == (IntPtr)SizeEvents.SIZE_RESTORED) { var win = (Window)HwndSource.FromHwnd(hwnd).RootVisual; if (win != null && _internalStateTable.TryGetValue(win, out var internalState)) { win.ClearValue(WindowStyleProperty);

Reverting back only this file to alpha version, removes the exception again.
This happens with .Net core 3.1, Win10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions