<controls:ChildWindow x:Class="SilverlightDataApp.ErrorWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="Auto" Height="Auto" 
           DataContext="{Binding RelativeSource={RelativeSource Self}}"
           HorizontalAlignment="Center" VerticalAlignment="Center">
    <Grid x:Name="LayoutRoot" Width="Auto" >
        <!--The rows of the grid are defined here.-->
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="Veateade:"/>
        <!--A TextBox which contents are bound to ErrorDetails. This is used as a container for the error messages.-->
        <TextBox Grid.Row="1" Text="{Binding ErrorDetails}" Height="Auto" TextWrapping="Wrap" Width="400" />
        <!--An OK button.-->
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Stretch" Grid.Row="3" />
    </Grid>
</controls:ChildWindow>