I am using below C# code to get the screen size of the monitor in UWP.
var displayInformation = DisplayInformation.GetForCurrentView();
var screenSize = new Size((int)displayInformation.ScreenWidthInRawPixels,
(int)displayInformation.ScreenHeightInRawPixels);
But the problem is it returns first monitor resolution. I have two monitors and I need to screen size of the monitor where the app is run. not first monitor. If the app runs on the second monitor then I need screen size of the second monitor instead of the first monitor. My monitor size is different.
How can I solve this puzzle?