Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageBox on WPF on .NET 5 does not follow modern system design #1851

Closed
ManuelHu opened this issue Dec 20, 2020 · 3 comments · Fixed by #2046
Closed

MessageBox on WPF on .NET 5 does not follow modern system design #1851

ManuelHu opened this issue Dec 20, 2020 · 3 comments · Fixed by #2046
Labels
Milestone

Comments

@ManuelHu
Copy link
Contributor

Expected Behavior

A more modern / more integrated look of the message box (built with WPF for net461):
grafik

Actual Behavior

"Old" look
grafik

Specifications

  • Version: 2.5.8
  • Platform(s): WPF on .NET 5
  • Operating System(s): Windows10 20H2
@cwensley
Copy link
Member

Looks like a WPF problem: dotnet/wpf#179

However, I did add code that worked for WPF on .NET Framework to enable the visual styles.. I guess it doesn't work on .NET 5 so I'll have to investigate that. Perhaps the only way is to add a manifest like shown here.

@ManuelHu
Copy link
Contributor Author

Ah okay, I'll try that ;-)

@ManuelHu
Copy link
Contributor Author

Adding a manifest file worked - even in my hacky cross-build on Linux setup... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants