CodeDocu.com

 

 

Switch 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;

        }

        //---

 

Insert page

Add a page to the WPF application via Project-> Add-> Page

WPF: Navigate to a page

 

The page behaves like a window, except that pages are switched over the content of an existing page.

The page itself is defined as a Windows.xaml.

WPF: Navigate to a page

 

Switching is done by creating a new page at runtime for a current window or page in C # code and inserting it into the content.

pgProjekt pg = new pgProjekt();

this.Content = pg;

 

WPF: Navigate to a page

 


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel