<s:SurfaceWindow x:Class="SliderTest.SurfaceWindow1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    Title="SliderTest" Activated="SurfaceWindow_Activated"
    >
  <s:SurfaceWindow.Resources>
    <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
  </s:SurfaceWindow.Resources>

  <Grid Background="{StaticResource WindowBackground}" >
  	<s:SurfaceSlider Margin="106,89,147,0" VerticalAlignment="Top" Height="24" x:Name="slider" Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted"/>
  	<MediaElement Margin="147,189,232,126" Source="Butterfly.wmv" x:Name="media" MediaOpened="media_MediaOpened"/>
  	<Button HorizontalAlignment="Right" Margin="0,217,25,0" VerticalAlignment="Top" Width="77" Height="32" Content="Button" x:Name="buttonPlay" Click="buttonPlay_Click"/>
  	<s:SurfaceButton HorizontalAlignment="Right" Margin="0,0,25,190" VerticalAlignment="Bottom" Width="77" Height="36" Content="SurfaceButton" x:Name="surfacebuttonPlay" ContactDown="surfacebuttonPlay_ContactDown" Click="surfacebuttonPlay_Click"/>

  </Grid>
</s:SurfaceWindow>
