We have a WPF project developed using .NET 3.5, which we converted to .NET 4 to take advantage of the new features, but our top
and left
properties of the main window get different results than in .NET. 3.5
In 3.5: top
reads -7, in 4.0: it reads 0 (when the application starts)
but if we run the following code, it will read normally as usual:
(this as Window).WindowState = System.Windows.WindowState.Normal; (this as Window).WindowState = System.Windows.WindowState.Maximized;
source share