<Page x:Class="NawigationStyleApplication.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	Title="Aplikacja Nawigacyjna" Height="172" Width="190" xmlns:my="clr-namespace:NawigationStyleApplication">

    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <Grid>
            <Button Content="Backward" Name="buttonBackward"  BorderBrush="#00000000" Background="#00000000" IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type NavigationWindow}}, Path=CanGoBack}" Click="buttonBackward_Click" Margin="0,0,80,0"/>
            <Button Name="buttonForward" Content="Forward"  Background="#00000000" BorderBrush="#00000000" IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type NavigationWindow}}, Path=CanGoForward}" Click="buttonForward_Click" Margin="80,0,0,0"/>
        </Grid>
        <Button Content="Page1"   Name="button1"  Click="buttonPage1_Click" />
        <Button Content="Page2"  Name="button2"  Click="buttonPage2_Click" />
    </StackPanel>
</Page>
