wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

White screen on Win10 + .NET Framework 4.8.0/4.7.2

Open rockisch opened this issue 1 year ago • 3 comments

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: image

If I remove the <ui:ControlsDictionary /> line from App.xaml, it shows both buttons, although without any style: image

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 avatar Nov 03 '23 00:11 rockisch

@rockisch Could you try Preview.12 to see if that resolves the issue?

niels9001 avatar Dec 11 '23 10:12 niels9001

@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.

Abdurrafey-Siddiqui avatar Dec 25 '23 23:12 Abdurrafey-Siddiqui

I'm having the same issue for 4.8.0 as well as 7.0.

robng avatar Jan 04 '24 17:01 robng