
UserControls can be different, like in the above sample, but be used in a shared page.

PageTitleUserControl pageTitle = new PageTitleUserControl( this.navigationHelper) Private void InsertPageTitleUserControl() This.navigationHelper = new NavigationHelper( this)

You need to pass in a reference to the NavigationHelper for the back navigation. We have done this using a separate user control, PageTitleUserControl.xaml, for Windows and Windows Phone that will be instantiated from the CommonPage in the shared project.
#Windows grid window manager how to#
The sample demonstrates a CommonPage.XAML and how to tackle the back button problem. When sharing a page across Windows and Windows Phone projects, the first thing you must tackle is to ensure Windows has a software back button for in-app navigation and Windows Phone has a hardware back button for in-app navigation. For more background on XAML basics, refer to Create your first Windows Runtime app using C# or Visual Basic, Creating a UI (XAML), and Developing apps (XAML) in the documentation. To follow up from those talks, we wanted to share with you the golflink sample app used for our demos and use it as a basis to share a number of tips and tricks for working with XAML controls in universal apps.

