WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
In 3.0.0 version - ui:FluentWindow app crash with error:
WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.
In latest stable 2.0.3 - ui:UiWindow works fine.
To Reproduce
Just use simple demo project MainWindow and added:
WindowStyle="None"
AllowsTransparency="True"
to MainWIndow.xaml
Expected behavior
Expected behavior? Works without crashes.
Screenshots
No response
OS version
Win10, 22H2
.NET version
4.8 .net framework
VS2019
WPF-UI NuGet version
latest 3.0.0
Additional context
Also prints to errors: can't find resource AccentFillColorDisabled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the simple demo project's MainWindow.xaml and reproduce the crash using WindowStyle="None" and AllowsTransparency="True" on WPF UI 3.0.0 under Windows 10, .NET Framework 4.8, and VS2019; compare the behavior with WPF UI 2.0.3. Done means the window starts without the WindowStyle exception and the AccentFillColorDisabled resource error is resolved or explained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100