Pop-up window in a WPF application RRS feed

  • Question

  • Hello,

    I've a C# WPF application which uses Grid control in the xaml(P screen).For every row in the grid, I've a column called Details.Clicking on item in this column shows a pop-up window which also has a grid in the xaml(C screen). My row item click event in the P's viewmodel has the following code:

    var myChildWindow = new MyGridView(rowSpecificDataFromParent);


    As you can see, for every row item, I'm passing information from parent window to child window.
    If the user clicks on the row item multiple times, I just want to activate the existing C pop-up window.If there's no existing windows open, then only I want to open a new window.
    So for e.g.say if row # 5 pop-up window is already open and user clicks on row #7, then a new pop-up window should open.And if user clicks on row # 5 pop-up window again, that window should be activated.

    How do I go about this for a WPF application please?


    Friday, September 22, 2017 7:16 PM


All replies