dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.04k stars 1.17k forks source link

WPF form doesn't render the same way in the vs2019 designer and at runtime #658

Open gghart opened 5 years ago

gghart commented 5 years ago
gghart commented 5 years ago

DemoProject.zip DesignView RuntimeView

When you look at the a WPF form in the VS2019 designer, and when you view the form at runtime, the spacing always seems to be a bit different. Attached a sample project showing the issue, and a screenshot on my PC showing the same form at runtime and in the designer. You can see the amount of space under the OK button is different in both screenshots, and the way the legal wording is wrapped is also a bit different.

Our expectation is that the form would be rendered the same way in the designer and a runtime.

vatsan-madhavan commented 5 years ago

@chabiss, is this a known issue?

ryalanms commented 5 years ago

Thanks for identifying the bug and providing a repro project, @gghart.

grubioe commented 5 years ago

@diverdan92 can you take a look?

diverdan92 commented 5 years ago