<UserControl x:Class="ICSharpCode.ILSpy.TextView.DecompilerTextView" x:ClassModifier="public" x:Name="self"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties"
             xmlns:ae="clr-namespace:ICSharpCode.AvalonEdit;assembly=ICSharpCode.AvalonEdit">
	<UserControl.Resources>
		<BooleanToVisibilityConverter x:Key="boolToVisibility" />
	</UserControl.Resources>
	<Grid>
		<Border BorderThickness="1,1,0,1" BorderBrush="#FF828790">
			<Grid>
				<ae:TextEditor Name="textEditor" AutomationProperties.Name="Decompilation"  FontFamily="Consolas" FontSize="10pt" IsReadOnly="True"
				               Background="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"
				               Foreground="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}">
					<ae:TextEditor.Resources>
						<!-- prevent App-wide button style from applying to the buttons in the search box -->
						<Style TargetType="{x:Type Button}" />
					</ae:TextEditor.Resources>
				</ae:TextEditor>
				<Border Name="waitAdorner" Background="#C0FFFFFF" Visibility="Collapsed">
					<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
						<TextBlock FontSize="14pt" Text="{x:Static properties:Resources.Decompiling}"/>
						<ProgressBar Name="progressBar" Height="16" Margin="0, 4" />
						<Button Click="CancelButton_Click" HorizontalAlignment="Center"  Content="{x:Static properties:Resources.Cancel}"/>
					</StackPanel>
				</Border>
			</Grid>
		</Border>
	</Grid>
</UserControl>