What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea
for the monitor that the window is currently on.
Clarification: The window in question is WPF
, not WinForm
.
c++wpf
What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea
for the monitor that the window is currently on.
Clarification: The window in question is WPF
, not WinForm
.
Best Solution
Screen.FromControl
,Screen.FromPoint
andScreen.FromRectangle
should help you with this. For example in WinForms it would be:I don't know of an equivalent call for WPF. Therefore, you need to do something like this extension method.