Hello. There is an application on WPF. I want to add two main windows with different XAML markup. Now I need to run the application depending on the size of the desktop computer / laptop.
How to determine the width and height of the desktop, I know, is done something like this:
int Width = SystemInformation.PrimaryMonitorSize.Width; int Height = SystemInformation.PrimaryMonitorSize.Height; But I don’t know how to implement the launch of the desired main application window. Is it possible to do this at all or not?