Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Last active September 28, 2016 20:21
Show Gist options
  • Save ChrisMoney/cd90e7dc304078273de64c283a41051c to your computer and use it in GitHub Desktop.
Save ChrisMoney/cd90e7dc304078273de64c283a41051c to your computer and use it in GitHub Desktop.
WPF - Uses MainWindow.xaml as source. Allows for page navigation. All pages are hosted in a window. App.xaml uses as StartupUri. Used for event listening.
namespace RegistrationKiosk
{
/// <summary>
/// Interaction logic for NavWindow.xaml
/// </summary>
public partial class NavWindow : System.Windows.Navigation.NavigationWindow, INotifyPropertyChanged
{
public NavWindow()
{
InitializeComponent();
}
public event PropertyChangedEventHandler PropertyChanged;
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
{
base.OnPropertyChanged(e);
}
}
}
<NavigationWindow x:Class="RegistrationKiosk.NavWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Welcome"
Height="{Binding SystemParameters.PrimaryScreenHeight }"
Width="{Binding SystemParameters.PrimaryScreenWidth}"
Source="MainWindow.xaml">
</NavigationWindow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment