<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="was.touchcopy.features.controls.MediaPlayerUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:was.touchcopy.features.controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid  CornerRadius="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid Padding="20,3,15,-7">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <StackPanel  VerticalAlignment="Bottom">
                <TextBlock Text="Audio" VerticalAlignment="Bottom" Style="{ThemeResource BodyStrongTextBlockStyle}"/>
                <TextBlock x:Name="textBlockCreationDate" Style="{ThemeResource CaptionTextBlockStyle}" Visibility="Collapsed"/>
            </StackPanel>
      
            <Button x:Name="buttonDownload" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,0,-7"
                    Style="{ThemeResource EllipsisButton}" Click="buttonDownload_Click" >
                <Button.Content>
                    <FontIcon  Glyph="&#xE896;" Margin="0,3"/>
                </Button.Content>
            </Button>
        </Grid>
        <MediaPlayerElement Grid.Row="1" x:Name="mediaPlayerElement" AreTransportControlsEnabled="True" 
                            Loaded="mediaPlayerElement_Loaded"
                            HorizontalAlignment="Left" AutoPlay="False" Padding="0" Margin="0">
            <MediaPlayerElement.TransportControls >
                <MediaTransportControls IsCompact="True" IsSeekBarVisible="True" />
            </MediaPlayerElement.TransportControls>
        </MediaPlayerElement>
    </Grid>
</UserControl>
