We currently working for automatical weighing system. Using C#, .NET, MVVM, WPF and XAML. When we start application, we log in and then menu show with some agendas and modules. I got a new computer in company, so I installed few things and Visual Studio 2019. I had 2015 version on my old pc. Installation was succesfull. Problem is, when I click on some agenda or modul in the menu.
Sometimes it opens correctly, but often it end on
InvalidOperationException: Cannot work with Freezable System.Windows.Shell.WindowChrome in threads, because it cannot be freezed.
That exception happend in xaml.cs, in this piece of code:
public DWTimeWindowDetail()
{
InitializeComponent(); - here is a exception
}
Maybe there is a problem in Visual Studio 2019, because in 2015 it never happend.