What is the previous window called in WPF

I know the current window can be used with "this" but is there anything I can use to call the previous window?

For example I have this code going off when I press a button

Buyer_Login BuyerWindow = new Buyer_Login();
            Visibility= Visibility.Hidden;
            BuyerWindow.Show();

I need to be able to go back to the first window and I need to close the BuyerWindow and I was going to do it with this.Close();

What can I do to make the first window’s visibility visible again?

Leave a Reply

Your email address will not be published.