Windows in WPF
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Windows in WPF

  1. #1
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    198

    Windows in WPF

    Hi All,

    in the 'old days' I used;

    Code:
                this.Hide();
    
                COD01Window COD01 = new COD01Window();
                COD01.ShowDialog();
    
                this.Show();
    The calling Window (Main Window) "waited" until the COD01 was closed.
    In WPF it does not do the same it displays the COD01 window over the Main window, and yes the main window
    is still visible. The hide and show gives a kind of flash.
    Where do I go wrong?

    Regards,

    Ger

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,255

    Re: Windows in WPF

    Pass in the parent window to ShowDialog.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center