Weird issue with 4.8 .Net framework - Controls are growing in size continuously during runtime whenever screen is rendering - WPF application

Yasmin Jahid 1 Reputation point
2022-06-09T14:47:13.483+00:00

Hello All,

I am finding a weird issue after migrating to 4.8 .Net framework. All my usercontrols and built-in controls in WPF application are growing in size continuously till i stop the application at run time.

With 4.6 framework it works fine. I have tried DPIAware, DPIAwareness in app settings, added manifest file to fix the issue with this, still issue is persist.

Whenever system goes to idle / remote session gets disconnected i am getting this issue. Please help me on this.

I see window size changed event is fired continuously and theme is getting changed as well.

Controls are in Grid Panel with start definitions mostly with stretch alignments.

Need your help on this.

Regards,
Yasmin

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,686 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,370 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
771 questions
{count} votes