<Page x:Class="WpfBrowserApplication.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Title="MainPage">
   <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
		<Grid HorizontalAlignment="Center" >
			<Button Content="Backward" Name="buttonBackward"  BorderBrush="#00000000" Background="#00000000" IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=NavigationWindow, AncestorLevel=1}, Path=CanGoBack}" Click="buttonBackward_Click" Margin="0,0,80,0"></Button>
			<Button Name="buttonForward" Content="Forward"  Background="#00000000" BorderBrush="#00000000" IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=NavigationWindow, AncestorLevel=1}, Path=CanGoForward}" Click="buttonForward_Click" Margin="77,0,0,0">
			</Button>
		</Grid>
		<Button Content="Page1" Height="23"  Name="button1"  Click="buttonPage1_Click" />
		<Button Content="Page2" Height="23"  Name="button2"  Click="buttonPage2_Click" />
	</StackPanel>
</Page>
