Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#

 

 

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

 

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.

 

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;

 

 

Mobile
»
C # Application: Webrobot to read all Ebay Kleinanzeigen
»
WPF: Navigate to a page
»
WPF: create a selectable list
»
WPF: Set Startup Window
»
Add WPF Local SQL Database to Application and Connect Data
»
WPF / UWP: Canvas with relative positions and sizes
»
C #, WPF, UWP: ScreenShot to save an app or window area as a file
»
C #: Windows ScreenShot save as file
»
WPF Color Picker on Color Cube
»
WPF: Draw ColorWheel in C# by drawing Lines

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de