Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - WPF ShowModal windows and popups appear behind parent

 
 
Old 09-24-2008   #1 (permalink)
James


 
 

WPF ShowModal windows and popups appear behind parent

I'm main developer on a WPF project which is in the early stages of
being rolled out to a large number of customers. A few maybe 5% of
customers are experiencing an issue where windows are appearing behind
other windows when they should not. This has happened both with
Popups and windows opened with ShowModal, and is occurring on XP
machines. I've heard reports that rebooting the machine can solve the
problem!

The application is structured with a large container window that is
the Owner of the other windows created in the app. One reproducible
bug I've encountered is that closing one of these child windows can
leave the container in a non-active state causing another application
to become activated and show in front of the container window.

Window z-ordering in win XP has always seemed flaky to me, is WPF
interacting with it in an unpleasant way? Anyone experienced this?
Any work arounds gratefully received.

James

My System SpecsSystem Spec
Old 09-24-2008   #2 (permalink)
mengfc


 
 

Re: WPF ShowModal windows and popups appear behind parent

On Wed, 24 Sep 2008 05:02:59 -0700 (PDT), James <jim_ej@xxxxxx>
wrote:

Sorry, my English is poor, I can't understand what you talk very
clearly, but I experience the Modal dialog behind parent.
my solution is :

ModalWindow dialog = new ModalWindow();
dialog.Owner = parentWindow;
dialog.ShowModal();
Quote:

>I'm main developer on a WPF project which is in the early stages of
>being rolled out to a large number of customers. A few maybe 5% of
>customers are experiencing an issue where windows are appearing behind
>other windows when they should not. This has happened both with
>Popups and windows opened with ShowModal, and is occurring on XP
>machines. I've heard reports that rebooting the machine can solve the
>problem!
>
>The application is structured with a large container window that is
>the Owner of the other windows created in the app. One reproducible
>bug I've encountered is that closing one of these child windows can
>leave the container in a non-active state causing another application
>to become activated and show in front of the container window.
>
>Window z-ordering in win XP has always seemed flaky to me, is WPF
>interacting with it in an unpleasant way? Anyone experienced this?
>Any work arounds gratefully received.
>
>James
My System SpecsSystem Spec
Old 10-26-2008   #3 (permalink)
cake


 
 

RE: WPF ShowModal windows and popups appear behind parent

Hi James,

I'm experiencing the same problems. Did you ever found a solution to this?

/Carl

"James" wrote:
Quote:

> I'm main developer on a WPF project which is in the early stages of
> being rolled out to a large number of customers. A few maybe 5% of
> customers are experiencing an issue where windows are appearing behind
> other windows when they should not. This has happened both with
> Popups and windows opened with ShowModal, and is occurring on XP
> machines. I've heard reports that rebooting the machine can solve the
> problem!
>
> The application is structured with a large container window that is
> the Owner of the other windows created in the app. One reproducible
> bug I've encountered is that closing one of these child windows can
> leave the container in a non-active state causing another application
> to become activated and show in front of the container window.
>
> Window z-ordering in win XP has always seemed flaky to me, is WPF
> interacting with it in an unpleasant way? Anyone experienced this?
> Any work arounds gratefully received.
>
> James
>
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Parent Process ID PowerShell
Am having a couple of problems, popups and windows automatic updat .NET General
Windows Live Messenger and Windows Installer popups Live Messenger
windows defender popups keeps popping up telling me i have blocked Vista General
On Vista, IE stops working when using multiple windows (opening popups) after a certain amount of time Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46