Pretend I have 2 monitors. Primary display is just a normal PC desktop monitor, the other other one is a touchscreen. When I load a program (WinForm, WPF, ...), it will load on the primary monitor.
Question: if I replace the program to the touchscreen, how can I know if the current screen/display/monitor is a touchscreen or has touch enabled?
In other words, how can I detect the current screen/display/monitor and its settings?
So far i worked with the Screen
class (Windows.Forms), Tablet
Class (Windows.Input) and with DLLImport
of User32.dll (GetSystemMetrics()). None of them or a combination of them works.
I want something to find like: Monitor.Current.IsTouch
or Display.CurrentDisplay.TouchEnabled