Files
BeWoPlaner/BeWo/View/ExceptionMessageBox.xaml
2016-06-27 01:45:38 +02:00

33 lines
2.1 KiB
XML

<UserControl 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" mc:Ignorable="d" x:Class="BeWo.View.ExceptionMessageBox" x:Name="UserControl" Width="400" Height="300">
<Grid x:Name="LayoutRoot">
<Border BorderBrush="Black" BorderThickness="1" CornerRadius="10">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF152043" Offset="0" />
<GradientStop Color="#FF464674" Offset="1" />
<GradientStop Color="White" Offset="0.293" />
</LinearGradientBrush>
</Border.Background>
</Border>
<Border BorderBrush="Black" BorderThickness="1" CornerRadius="2,2,10,10" Margin="3,25,3,3" Background="White">
<Grid Margin="5,5,5,45">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock x:Name="lblError" Grid.Row="1" Text="Fehlerdetails:" d:LayoutOverrides="Height" TextDecorations="Underline" />
<ScrollViewer x:Name="contentError" Grid.Row="2" Margin="10" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<TextBox IsReadOnly="True" TextWrapping="Wrap" Name="tb_stack" FontStyle="Italic"></TextBox>
</ScrollViewer>
<TextBlock TextWrapping="Wrap" Name="tb_message" FontWeight="Bold" FontSize="13.333" Margin="0,10" />
</Grid>
</Border>
<Border BorderBrush="Black" BorderThickness="1" CornerRadius="0,0,10,10" Background="#FFEFE8E8" Height="40" VerticalAlignment="Bottom" Margin="3,0,3,3">
<Button HorizontalAlignment="Right" Click="Button_Click" Height="23" Content="OK" VerticalAlignment="Center" Width="100" Margin="0,0,7,0" />
</Border>
<TextBlock Margin="10,5,0,0" VerticalAlignment="Top" Width="332.826666666667" Text="Es ist ein Fehler aufgetreten." Foreground="#FFEFE8E8" HorizontalAlignment="Left" FontSize="13.333" />
</Grid>
</UserControl>