use second monitor with wpf?

Hi all,
i'm relatively new to C# and WPF altogether. It looks great so far.
I'm wondering if anyone can tell me how to assign a Window or Canvas to the second monitor on a multi-monitor PC? I basically want to mirror what is happening on a Canvas on primary monitor, on a canvas on the secondary monitor.
any thoughts?
Steve Sterling
Adidam.org
[377 byte] By [bigshiny90] at [2008-2-13]
# 1

AFAIK there is currently no way to do this purely with WPF.

However you should be able to :
* use the "System.Windows.Forms.Screen" class to get information about the screen(s) -- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsscreenclasstopic.asp
* reposition your window
Application.Current.MainWindow.Left = xxx;
Application.Current.MainWindow.Top= yyy;

Thx !

MarcCauchy at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
... Or PInvoke into GDI / User32, but I assumed you wanted your code to be strictly managed.

Thx !

MarcCauchy at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
You have to position your canvas's. Each to be displayed on the different monitors.

You could then use the VisualBrush for the mirror effect. From one canvas to the other.
JINXz at 2008-2-14 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified