Reputation: 149
I have two monitor. I need to write logic according to monitor? if app run on monitor 1 (primary) then I need some logic and if app run on monitor 2 (non primary) then I need to write some other logic.
How to Identify that app run on which monitor in UWP C#
Thanks in advance.
Upvotes: 0
Views: 195
Reputation: 32785
How to Identify that app run on which monitor in UWP C#
We could use Windows.Graphics.Display.DisplayInformation.GetForCurrentView()
to get current display info, unfortunately, DisplayInformation
does not contain monitor device info. If you do want this feature, please feel free post this on UserVoice.
Upvotes: 1