﻿<Animation:AnimatedBasePage
    x:Class="CleverSoftware.Phone.Translate.MainPageA"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:Animation="clr-namespace:CleverSoftware.Phone.Translate.Animation" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:mobfox="clr-namespace:MobFox.Ads;assembly=MobFox.Ads" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  
    OrientationChanged="PhoneApplicationPage_OrientationChanged"
    shell:SystemTray.IsVisible="False" IsTabStop="True" >
    <!--<Animation:AnimatedBasePage.Resources>
        <Storyboard x:Name="AnimationAfterTranslation">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="stackPanel">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.6">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="stackPanel">
                <EasingDoubleKeyFrame KeyTime="0" Value="-60"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="100"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Animation:AnimatedBasePage.Resources>-->

    <Grid x:Name="LayoutRoot" Background="Transparent" >

        <!--Portrait-->
        <Grid x:Name="Portrait" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="145"/>
                <RowDefinition Height="80"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="40"/>
                <!--Reklama-->
                <RowDefinition Height="*"/>
                <RowDefinition Height="45" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/background.jpg" Grid.RowSpan="7"/>

            <!--<google:BannerAd
            Grid.Row="5" 
            Margin="5,-20,5,0"
            xmlns:google="clr-namespace:Google.AdMob.Ads.WindowsPhone7.WPF;assembly=Google.AdMob.Ads.WindowsPhone7"
            AdUnitID="a14dcaec0288c3c" Visibility="Collapsed"/>-->

            <!--<mobfox:AdControl 
                Name="mobFoxadControl"    
                Grid.Row="5" 
                Margin="5,-20,5,0"
                PublisherID="ba5e6b8ec7a8e5cf0f138428a002f80a"
                TestMode="False"
                />-->


            <!--<adduplex:AdControl xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.AdControl.Silverlight"
                            Grid.Row="5" 
                            Margin="5,-20,5,0"
                            AppId="3035"                                
                            />-->

            <!--<adRotator:AdRotatorControl x:Name="AdRotatorControl" 
                xmlns:adRotator="clr-namespace:AdRotator;assembly=AdRotator"
                Width="480" Height="80"
                    Grid.Row="5" 
                    Margin="0,-20,0,0"
                    SettingsUrl="http://clever-software.net/AdControlSettings.xml"
                    DefaultAdType="None"
                    DefaultSettingsFileUri="/CleverSoftware.Phone.Translate;component/AdControlSettings.xml"                    
                    AdDuplexAppId="3035"
                    AdMobAdUnitId="ba5e6b8ec7a8e5cf0f138428a002f80a"
                                        />-->




            <TextBlock Text="{Binding PoweredBy, Mode=TwoWay}" Margin="150,75,0,0" Foreground="{StaticResource LabelForegroundStyle}" FontSize="12"/>

            <Border   Width="130"
                            Height="90"
                            
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="5,8">

                <ListBox  
                                  ItemsSource="{Binding ProviderCollection, Mode=TwoWay}" 
                                  SelectedItem="{Binding SelectedProvider,Mode=TwoWay}"
                                  ItemContainerStyle="{StaticResource ListBoxItemStyle}" Margin="6" FontSize="14" HorizontalContentAlignment="Center" VerticalAlignment="Center">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="-8,3" VerticalAlignment="Center">
                                <Image Source="{Binding ImageName}" VerticalAlignment="Center" Width="24" Height="24" Margin="0,0,5,0"/>
                                <TextBlock Text="{Binding ProviderText}" VerticalAlignment="Center" Foreground="{StaticResource PhoneAccentBrush}" />
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Border>



            <!--ComboBoxes-->

            <StackPanel x:Name="spComboBoxes" Grid.Row="1" Margin="10,0,10,0" Orientation="Horizontal">
                <!--Translate from-->
                <StackPanel>
                    <TextBlock Text="Translate from" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="15,0,0,0" FontSize="16"/>
                    <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                        <ComboBox x:Name="src" 
                              Width="187"
                              Height="42"
                                  MaxDropDownHeight="500"
                                  ItemsSource="{Binding AvailableLanguages, Mode=TwoWay}" 
                                  SelectedItem="{Binding SourceLanguage,Mode=TwoWay}" 
                                  Style="{StaticResource ClasicComboBoxStyle}" 
                              BorderThickness="0" ItemContainerStyle="{StaticResource ComboBoxItemStyle}">
                        </ComboBox>
                    </Border>
                </StackPanel>
                <Button x:Name="btnSwitchLanguages" VerticalAlignment="Bottom"  Click="BtnSwitchLanguageClick" Margin="10,0,10,20" Style="{StaticResource ImageButtonStyle}" Padding="0">
                    <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/switch.png" Width="36" Height="36" Visibility="Collapsed"/>
                </Button>

<Button x:Name="cmdSubmit" Click="cmdSubmit_Click" BorderThickness="0" Style="{StaticResource ImageButtonStyle}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="30,0,0,-3">
                <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                    <Border
                                Width="187"
                                Height="42"
                                Background="{StaticResource RedGradientStyle}"
                                BorderBrush="{StaticResource RedBorderGradientStyle}"
                                BorderThickness="1"
                                CornerRadius="5">
                        <TextBlock Text="Translate!" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="25" Foreground="White"/>
                    </Border>
                </Border>
            </Button>

                <!--Translate To-->
                <!--<StackPanel>
                    <TextBlock Text="Translate to" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="15,0,0,0" FontSize="16"/>
                    <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                        <ComboBox x:Name="dest" Width="187" Height="42" MaxDropDownHeight="500"
                                  SelectedItem="{Binding DestinationLanguage,  Mode=TwoWay}"
                                  ItemsSource="{Binding AvailableLanguages}" 
                                  Style="{StaticResource ClasicComboBoxStyle}"
                                  BorderThickness="0" 
                                  ItemContainerStyle="{StaticResource ComboBoxItemStyle}">
                        </ComboBox>
                    </Border>
                </StackPanel>-->
            </StackPanel>

            <!--<StackPanel Orientation="Horizontal" Grid.Row="2" Margin="15,-3,6,0">
                <TextBlock Text="from:" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="6,0,0,0" FontSize="16"/>
                <TextBlock Text="{Binding SourceLanguage}" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="6,0,0,0" FontSize="16"/>
            </StackPanel>-->

            <Grid x:Name="gridSource" Grid.Row="2" Margin="10,5,10,10">
                <Border Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        Background="{StaticResource BlackGradientStyle}"
                        CornerRadius="5,5,5,5" BorderThickness="2,2,2,2" BorderBrush="{StaticResource BorderGradientStyle}" Margin="0,0,0,48">


                    <TextBox Style="{StaticResource roundTextBox}" Grid.Row="0"
                             Margin="6,6,6,6" HorizontalAlignment="Stretch" 
                             VerticalAlignment="Stretch" 
                             Text="{Binding SourceText, Mode=TwoWay}" 
                             KeyUp="srcTxt_KeyUp" 
                             TextWrapping="Wrap"
                             AcceptsReturn="True" InputScope="Text"/>
                </Border>
               				
				 <Button Style="{StaticResource ClearButtonStyle}" Margin="0,0,10,2" VerticalAlignment="Bottom" HorizontalAlignment="Right" Click="hpClearSource_Click">
                        <Border Background="#70000000"  Padding="10,5" CornerRadius="5" Width="75" >
                            <TextBlock Text="clear" Margin="0,0,0,2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Foreground="{StaticResource LabelForegroundStyle}" FontFamily="Segoe WP SemiLight" />
                        </Border>
                    </Button>
            </Grid>



            

				<StackPanel Orientation="Vertical" Grid.Row="4" Margin="10,-65,6,0">
                    <TextBlock Text="Translate to" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="15,0,0,0" FontSize="16"/>
                    <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" HorizontalAlignment="Left">
                        <ComboBox x:Name="dest" Width="187" Height="42" MaxDropDownHeight="500"
                                  SelectedItem="{Binding DestinationLanguage,  Mode=TwoWay}"
                                  ItemsSource="{Binding AvailableLanguages}" 
                                  Style="{StaticResource ClasicComboBoxStyle}"
                                  BorderThickness="0" 
                                  ItemContainerStyle="{StaticResource ComboBoxItemStyle}" >
                        </ComboBox>
                    </Border>
                </StackPanel>

            <!--<StackPanel Orientation="Horizontal" Grid.Row="4" Margin="15,-3,6,0">
                <TextBlock Text="to:" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="6,0,0,0" FontSize="16"/>
                <TextBlock Text="{Binding DestinationLanguage}" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="6,0,0,0" FontSize="16"/>
            </StackPanel>-->

            <Grid x:Name="gridTranslation" Grid.Row="4" Margin="10,20,10,5" >

                <Border  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        Background="{StaticResource BlackGradientStyle}"
                        CornerRadius="5,5,5,5" BorderThickness="2,2,2,2" BorderBrush="{StaticResource BorderGradientStyle}" Margin="0,0,0,50">

                    <TextBox AcceptsReturn="True" Style="{StaticResource roundTextBox}" Margin="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="{Binding DestinationText, Mode=TwoWay}" TextWrapping="Wrap"  IsReadOnly="True"/>

                </Border>

                <StackPanel Orientation="Horizontal" Margin="6,0,6,0"  VerticalAlignment="Bottom" HorizontalAlignment="Right" >
                    <Button Style="{StaticResource ClearButtonStyle}" Margin="0,0,10,2" Click="hpEmail_Click" VerticalAlignment="Bottom"> 
                        <Border Background="#70000000"  Padding="10,5" CornerRadius="5">
                            <TextBlock Text="e-mail" Margin="0,0,0,2" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="20" Foreground="{StaticResource LabelForegroundStyle}" FontFamily="Segoe WP SemiLight" />
                        </Border>
                    </Button>
                    
                    <Button Style="{StaticResource ClearButtonStyle}" Margin="0,0,10,2" Click="hpSms_Click" VerticalAlignment="Bottom">
                        <Border Background="#70000000"  Padding="10,5" CornerRadius="5" Width="75">
                            <TextBlock Text="sms" Margin="0,0,0,2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Foreground="{StaticResource LabelForegroundStyle}" FontFamily="Segoe WP SemiLight" />
                        </Border>
                    </Button>
                           
                    <Button Style="{StaticResource ClearButtonStyle}" Margin="0,0,10,2" Click="hpListen_Click" VerticalAlignment="Bottom">
                        <Border Background="#70000000"  Padding="5,5" CornerRadius="5">
                            <Image Source="Resources/Images/speach.png" Width="29" Height="29"/>
                        </Border>
                    </Button>
                </StackPanel>
            </Grid>

            <Grid Grid.Row="6" HorizontalAlignment="Center" Margin="0,-40,0,0" Visibility="Visible">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Button  BorderThickness="0"   Style="{StaticResource ImageButtonStyle}">
                    <Grid>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonPressed.png" Width="90" Height="87"/>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/home.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button Grid.Column="1" Click="BtnSettingsClick" BorderThickness="0" Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="90" Height="87" />
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/settings.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button Grid.Column="2" Visibility="Collapsed" Click="BtnSendSmsClick" BorderThickness="0"  Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="90" Height="87" />
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/sms.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button Grid.Column="3" Visibility="Collapsed" Click="BtnSendMailClick" BorderThickness="0"  Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="90" Height="87" />
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/mail.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>
            </Grid>
        </Grid>

        <!--Landscape mode-->
        <Grid x:Name="Landscape" Visibility="Collapsed" d:IsHidden="True">
            <Grid.RowDefinitions>
                <RowDefinition Height="100"/>
                <RowDefinition Height="80" />
                <RowDefinition Height="*"/>
                <RowDefinition Height="20" />
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/backgroundLandscape.jpg" Grid.RowSpan="6" Grid.ColumnSpan="2"/>

            <!--<moad:AdDisplayControl
                Style="{StaticResource AnimationAdMobStyle}" 
                Height="50"
                Width="300"
                RefreshSeconds="10"  HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0,0,10,0">
                <moad:AdDisplayControl.AdAdapters>
                    <adadapters:AdAdapterCollection>
                        <admob:AdMobAdapter 
                            Priority="1"
                            AdCount="3"
                            UseTestMode="True"
                            PublisherId="a14cb363852a916" 
                            />
                    </adadapters:AdAdapterCollection>
                </moad:AdDisplayControl.AdAdapters>
            </moad:AdDisplayControl>-->

            <TextBlock FontSize="12" Text="{Binding PoweredBy, Mode=TwoWay}" Margin="140,65,0,0" Grid.Column="1" Foreground="{StaticResource LabelForegroundStyle}"/>

            <Border   Width="130"
                            Height="90"
                            Grid.Column="1"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="5,2">

                <ListBox  
                                  ItemsSource="{Binding ProviderCollection, Mode=TwoWay}" 
                                  SelectedItem="{Binding SelectedProvider,Mode=TwoWay}"
                                  ItemContainerStyle="{StaticResource ListBoxItemStyle}" Margin="6" FontSize="14" HorizontalContentAlignment="Center" VerticalAlignment="Center">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="-8,3" VerticalAlignment="Center">
                                <Image Source="{Binding ImageName}" VerticalAlignment="Center" Width="24" Height="24" Margin="0,0,5,0"/>
                                <TextBlock Text="{Binding ProviderText}" VerticalAlignment="Center" Foreground="{StaticResource PhoneAccentBrush}"/>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Border>

            <StackPanel   Grid.Column="1" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="20,0,0,0">
                <StackPanel>
                    <TextBlock Text="Translate from" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="20,0,0,0" FontSize="16"/>
                    <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                        <ComboBox 
                              Width="187"
                              Height="42"
                              MaxDropDownHeight="300"
                              ItemsSource="{Binding AvailableLanguages, Mode=TwoWay}" 
                              SelectedItem="{Binding SourceLanguage,Mode=TwoWay}" 
                              Style="{StaticResource ClasicComboBoxStyle}" 
                              BorderThickness="0" ItemContainerStyle="{StaticResource ComboBoxItemStyle}">
                        </ComboBox>
                    </Border>
                </StackPanel>

                <Button Width="35" Height="50" Click="BtnSwitchLanguageClick" Margin="2,0,2,5" VerticalAlignment="Bottom">
                    <Button.Template>
                        <ControlTemplate>
                            <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/switch.png" />
                        </ControlTemplate>
                    </Button.Template>
                </Button>

                <StackPanel>
                    <TextBlock Text="Translate to" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="15,0,0,0" FontSize="16"/>
                    <Border
                            Width="200"
                            Height="56"
                            Background="{StaticResource BlackGradientStyle}"
                            CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                        <ComboBox  Width="187" Height="42"
                             MaxDropDownHeight="300"
                             SelectedItem="{Binding DestinationLanguage,  Mode=TwoWay}"
                             ItemsSource="{Binding AvailableLanguages}" Style="{StaticResource ClasicComboBoxStyle}" BorderThickness="0"  ItemContainerStyle="{StaticResource ComboBoxItemStyle}">
                        </ComboBox>
                    </Border>
                </StackPanel>

                <Button Click="cmdSubmit_Click" BorderThickness="0" Margin="12,18,0,0">
                    <Button.Template>
                        <ControlTemplate>
                            <Border
                                Width="200"
                                Height="56"
                                Background="{StaticResource BlackGradientStyle}"
                                CornerRadius="5" BorderBrush="{StaticResource BorderGradientStyle}" BorderThickness="2" >
                                <Border
                                    Width="187"
                                    Height="42"
                                    Background="{StaticResource RedGradientStyle}"
                                    BorderBrush="{StaticResource RedBorderGradientStyle}"
                                    BorderThickness="1"
                                    CornerRadius="5">
                                    <TextBlock Text="Translate!" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="25" Foreground="White"/>
                                </Border>
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
            </StackPanel>

            <Grid x:Name="gridSourceLandscape" Grid.Row="2" Grid.Column="1" Margin="40,10,20,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <!--<TextBlock Text="Translate from" HorizontalAlignment="Left" Foreground="{StaticResource LabelForegroundStyle}" Margin="15,0,0,0" FontSize="16"/>-->
                <Border Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        Background="{StaticResource BlackGradientStyle}"
                        CornerRadius="5,5,5,0" BorderThickness="2,2,2,2" BorderBrush="{StaticResource BorderGradientStyle}" >
                    <TextBox Style="{StaticResource roundTextBox}" 
                             Margin="6" HorizontalAlignment="Stretch" 
                             VerticalAlignment="Stretch" 
                             x:Name="srcTxt"  
                             Text="{Binding SourceText, Mode=TwoWay}" 
                             KeyUp="srcTxt_KeyUp" 
                             TextWrapping="Wrap"
                             AcceptsReturn="True" InputScope="Text"/>
                </Border>
            </Grid>

            <Grid x:Name="gridTranslationLandscape" Grid.Row="4" Grid.Column="1" Margin="40,0,20,10">
                <Border  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                        Background="{StaticResource BlackGradientStyle}"
                        CornerRadius="5,5,5,5" BorderThickness="2,2,2,2" BorderBrush="{StaticResource BorderGradientStyle}" >
                    <TextBox Style="{StaticResource roundTextBox}" Margin="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="dstTxt"  Text="{Binding DestinationText, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" IsReadOnly="True"/>
                </Border>
                <Button Width="35" Height="50" Click="btnSpeak_Click" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,4">
                    <Button.Template>
                        <ControlTemplate>
                            <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/speach.png"/>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
            </Grid>

            <StackPanel Orientation="Vertical" Grid.Row="1" Grid.RowSpan="5" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,0,0">
                <Button  BorderThickness="0" Margin="20,30,0,0" Style="{StaticResource ImageButtonStyle}">
                    <Grid>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonPressedLandscape.png" Width="80" Height="77"/>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/home.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button  Click="BtnSettingsClick" BorderThickness="0" Margin="20,5,0,0" Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="80" Height="77"/>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/settings.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button  Click="BtnSendSmsClick" BorderThickness="0" Margin="20,5,0,0" Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="80" Height="77"/>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/sms.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>

                <Button  Click="BtnSendMailClick" BorderThickness="0" Margin="20,5,0,0" Style="{StaticResource ImageButtonStyle}">
                    <Grid >
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/buttonNormal.png" Width="80" Height="77"/>
                        <Image Source="/CleverSoftware.Phone.Translate;Component/Resources/Images/mail.png" Width="38" Height="38" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </Button>
            </StackPanel>
        </Grid>
    </Grid>
	
    <!--<phone:PhoneApplicationPage.ApplicationBar Visibility="Collapsed">
        <shell:ApplicationBar  IsVisible="True" IsMenuEnabled="True" Opacity="0.1" >
            <shell:ApplicationBarIconButton x:Name="btnAppBarTranslate" IconUri="/Resources/AppBar/appbar.download.rest.png" Text="Translate" Click="btnAppBarTranslate_Click"/>
            <shell:ApplicationBarIconButton x:Name="btnAppBarSettings" IconUri="/Resources/AppBar/appbar.feature.settings.rest.png" Text="Settings" Click="btnAppBarSettings_Click"/>
            <shell:ApplicationBarIconButton x:Name="btnAppBarHistory" IconUri="/Resources/AppBar/appbar.folder.rest.png" Text="history" Click="btnAppBarHistory_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->
</Animation:AnimatedBasePage>