wpfui
wpfui copied to clipboard
White screen on Win10 + .NET Framework 4.8.0/4.7.2
Describe the bug
A brand new project using .NET Framework 4.8.0 (or 4.7.2) shows a blank screen if <ui:ControlsDictionary />
is present.
To Reproduce
Create a brand new WPF project, set the target to .NET Framework 4.8.0, and install WPF-UI.
Define the application resources as:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Dark" />
<ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Define the root element on MainWindow.xaml
as:
<StackPanel>
<Button Content="DEF"></Button>
<ui:Button Content="ABC"></ui:Button>
</StackPanel>
Run the project. It'll display a white screen:
If I remove the <ui:ControlsDictionary />
line from App.xaml
, it shows both buttons, although without any style:
Expected behavior
It should display both buttons as expected, with the ui:Button
one styled.
Screenshots
No response
OS version
Windows 10
.NET version
4.8.0 and 4.7.2
WPF-UI NuGet version
2.1.0
Additional context
No response
@rockisch Could you try Preview.12
to see if that resolves the issue?
@rockisch Could you try
Preview.12
to see if that resolves the issue?
Hi, I was having the same issue, was using 2.1.0, upgraded as you said but it seems that only the Icon would show now. If i put a button for example it doesnt show.
I'm having the same issue for 4.8.0 as well as 7.0.