from a window to a page
In MainWindows with the code
private void btnTest_Click(object sender, RoutedEventArgs e)
pgProjekt pg = new pgProjekt();
this.Content = pg;
page to the WPF application via Project-> Add-> Page
page behaves like a window, except that pages are switched over the content of
an existing page.
page itself is defined as a Windows.xaml.
is done by creating a new page at runtime for a current window or page in C #
code and inserting it into the content.
= new pgProjekt();