<UserControl x:Class="ApNavegacionSilverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

  <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
    <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
      <sdk:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
                 Source="/Inicio"
                 Navigating="ContentFrame_Navigating"
                 NavigationFailed="ContentFrame_NavigationFailed">
        <sdk:Frame.UriMapper>
          <sdk:UriMapper>
            <sdk:UriMapping Uri="" MappedUri="/Paginas/Inicio.xaml"/>
            <sdk:UriMapping Uri="/{nombrePagina}" MappedUri="/Paginas/{nombrePagina}.xaml"/>
          </sdk:UriMapper>
        </sdk:Frame.UriMapper>
      </sdk:Frame>
    </Border>
    <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">
      <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
        <StackPanel x:Name="LinksStackPanel"
                    Style="{StaticResource LinksStackPanelStyle}">
          <HyperlinkButton x:Name="Link1" Content="Inicio"
                         Style="{StaticResource LinkStyle}"
                         NavigateUri="/Inicio"
                         TargetName="ContentFrame"/>
          <Rectangle Style="{StaticResource DividerStyle}"/>
          <HyperlinkButton x:Name="Link2" Content="Acerca de..."
                         Style="{StaticResource LinkStyle}"
                         NavigateUri="/AcercaDe"
                         TargetName="ContentFrame"/>
        </StackPanel>
      </Border>
    </Grid>
  </Grid>
</UserControl>
