S
S
SomeDeveloper2021-04-01 09:53:42
WPF
SomeDeveloper, 2021-04-01 09:53:42

How to switch between windows without opening and closing WPF forms?

There are 2 forms. By clicking on the button located on form1, there should be a switch to form2 without opening this form and closing form1, i.e. in the 1st form there is a switch between the contents of the 2 forms.
How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris the Animal, 2021-04-01
@SomeDeveloper

Here I showed an example of what to do and how to do it:
How to navigate between pages in Windows Presentation Foundation?

S
soloveid, 2021-04-28
@soloveid

if (window.WindowState == WindowState.Minimized)
    window.WindowState = WindowState.Normal;
window.Activate();

Try this if your forms are windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question