2

I am trying to play a video with c# wpf to tv screen from mylaptop.
On the laptop another program may be running.
How can I direct the screen output of wpf to tv screen
while having another program playing something on the laptop's screen ?

Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398
SteveTheGrk
  • 352
  • 1
  • 7

1 Answers1

2

If the TV is your second screen, you can try show your wpf window on second screen:

var mainWindow = new MainWindow();
if (Screen.AllScreens.Length > 1)
{
   Screen s = Screen.AllScreens[1];
   Rectangle r = s.WorkingArea;
   mainWindow.Top = r.Top;
   mainWindow.Left = r.Left;
   mainWindow.Show();
}
Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398