tags:

views:

1660

answers:

1

Hi,

I want to create floating child window in .NET 3.0 WPF application. What I'm doing is:

sideWindow = new SideWindow(this);
sideWindow.Left = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width -    sideWindow.Width;
sideWindow.Top = 125;
sideWindow.WindowStartupLocation = WindowStartupLocation.Manual;
sideWindow.Owner = this;
sideWindow.Show();

This is running fine except one customer. According to trace messages the window is created, but the client doesn't see it!

Any idea about similar problems?

Thank you very much.

A: 

Have you tried using the WPF native:

System.Windows.SystemParameters.PrimaryScreenWidth

I usually use SystemParameters.VirtualScreenWidth which works better with dual monitors.

Kelly
I dump positions, height and width of the window and they are correct. If I try to find child window using Snoop, there is no such window in objects tree. But I can't find it on computer displaying the window too.
Dusan Kocurek