<UserControl x:Class="ApSilverlight.SilverlightVideo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="400">

  <Grid x:Name="LayoutRoot" Background="Linen">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*" />
      <ColumnDefinition Width="*" />
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="*" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <MediaElement x:Name="meReproductor"
                  Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3"
                  Source="/ApSilverlight;component/Media/Butterfly.wmv"
                  AutoPlay="False"
                  Width="300" Height="300" 
                  MediaEnded="meReproductor_MediaEnded" />

    <Button Grid.Column="0" Grid.Row="1" Content="Reproducir"
            Margin="5" Click="btReproducir_Click" />
    <Button Grid.Column="1" Grid.Row="1" Content="Pausa" Margin="5"
            Click="btPausa_Click" />
    <Button Grid.Column="2" Grid.Row="1" Content="Parar" Margin="5"
            Click="btParar_Click" />
  </Grid>
</UserControl>
