<Window x:Class="Serein.Workbench.Themes.DynamicCompilerView"
        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:Serein.Workbench.Themes"
        mc:Ignorable="d"
        xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
        Title="动态编译器" Height="600" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="150"/>
        </Grid.RowDefinitions>

        <!-- 上方DLL引用部分 -->
        <Grid Grid.Row="0" Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,5">
                <Button x:Name="btnAdd" Content="添加引用" Click="btnAdd_Click" Width="100" Margin="0,0,10,0"/>
                <Button x:Name="btnBatchAdd" Content="批量添加" Click="btnBatchAdd_Click" Width="100" Margin="0,0,10,0"/>
                <Button x:Name="btnRemove" Content="删除引用" Click="btnRemove_Click" Width="100"/>
            </StackPanel>

            <ListBox x:Name="lstReferences" Grid.Row="1"
                     MouseDoubleClick="lstReferences_MouseDoubleClick" MaxHeight="150"/>
        </Grid>

        <!-- 中间代码编辑器部分 -->
        <avalonEdit:TextEditor Grid.Row="1" 
                              x:Name="codeEditor"
                              FontFamily="Consolas"
                              FontSize="12"
                              SyntaxHighlighting="C#"
                              ShowLineNumbers="True"
                              Margin="10"/>

        <!-- 下方编译结果部分 -->
        <Grid Grid.Row="2" Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel  Orientation="Horizontal"
                         HorizontalAlignment="Left"
                         >
                <TextBlock  Text="程序集名称：" Width="70" Margin="10,0,5,0"/>
                <TextBox x:Name="textboxAssemblyName" Text="FlowLibrary"  Width="150" Margin="10,0,10,0"/>
                <Button x:Name="btnCompile" 
                    Content="编译" 
                    Click="btnCompile_Click"
                    />
            </StackPanel>
            

            <TextBox x:Name="txtErrors"
                     Grid.Row="1"
                     IsReadOnly="True"
                     TextWrapping="Wrap"
                     VerticalScrollBarVisibility="Auto"
                     Background="LightYellow"/>
        </Grid>
    </Grid>
</Window>
