<UserControl x:Class="HavenSoft.HexManiac.WPF.Controls.PythonPanel"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="clr-namespace:HavenSoft.HexManiac.WPF.Controls"
      xmlns:hmar="clr-namespace:HavenSoft.HexManiac.WPF.Resources"
      Background="{DynamicResource Background}">
   <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="*"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="*"/>
      </Grid.RowDefinitions>
      <TextBox Grid.Row="0" Margin="5" Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}" FontFamily="Consolas" VerticalScrollBarVisibility="Visible"
               AcceptsReturn="True" PreviewKeyDown="PythonTextKeyDown" PreviewMouseWheel="ChangeInputTextSize" />
      <local:AngleButton HorizontalAlignment="Right" Margin="10,0" Grid.Row="1" Content="Run" Direction="Out" Height="24" Command="{hmar:MethodCommand RunPython}"/>
      <TextBox Grid.Row="2" Margin="5" Text="{Binding ResultText}" FontFamily="Consolas" VerticalScrollBarVisibility="Visible"
               IsReadOnly="True" TextWrapping="Wrap" BorderThickness="0" Background="{DynamicResource Background}" />
   </Grid>
</UserControl>
