<Window x:Class="QcloudTranslate.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:QcloudTranslate"
        mc:Ignorable="d"
        Title="MainWindow" Height="595.065" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0" Margin="0,12.5,0,0" >
            <TextBlock Text="Secret ID:" Margin="25,0,0,0"/>
            <TextBox Name="id" Text="ID" Width="250" Margin="12.5,0,10,0"/>
            <TextBlock Text="Secret Key:" Margin="25,0,0,0"/>
            <TextBox Name="key" Text="Key" Width="250" Margin="12.5,0,0,0"/>
        </WrapPanel>
        <TextBox Grid.Row="1" Margin="25,12.5" TextWrapping="Wrap" Text="Source Text" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Name="src" VerticalAlignment="Stretch"/>
        <Button Grid.Row="2" Content="↓Translate↓" HorizontalAlignment="Center" VerticalAlignment="Top" Width="Auto" Click="Button_Click"/>
        <TextBox Grid.Row="3" Margin="25,12.5,25,25" TextWrapping="Wrap" Text="Translated Text" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Name="tgt" VerticalAlignment="Stretch"/>
    </Grid>
</Window>
