Windows Vista Forums

WPF ShowModal windows and popups appear behind parent

  1. #1


    James Guest

    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

  2. #2


    mengfc Guest

    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();

    >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

  3. #3


    cake Guest

    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:

    > 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

WPF ShowModal windows and popups appear behind parent

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parent Process ID David PowerShell 2 25 Feb 2009
Am having a couple of problems, popups and windows automatic updat KFritz .NET General 1 16 Nov 2008
Windows Live Messenger and Windows Installer popups neopets_35 Live Messenger 0 28 May 2008
windows defender popups keeps popping up telling me i have blocked Joe Vista General 1 25 Jan 2008
On Vista, IE stops working when using multiple windows (opening popups) after a certain amount of time Bradley Burton Vista General 1 07 Sep 2007