<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <DataTemplate x:Key="DeflectionTextBox">
        <TextBlock Grid.Row="0" Text="{Binding Deflection, Converter={StaticResource LengthConverter}, ConverterParameter='Fixed2'}" HorizontalAlignment="Right">
            <TextBlock.Style>
                <Style TargetType="TextBlock">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsDeflectionLessThanUltimate}" Value="false">
                            <Setter Property="Background" Value="{StaticResource WarningColorBrush}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBlock.Style>
        </TextBlock>
    </DataTemplate>
    <DataTemplate x:Key="DeflectionGrid">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <ContentControl ContentTemplate="{StaticResource DeflectionTextBox}" Content="{Binding LongTermResult}"/>
            <ContentControl Grid.Row="1" ContentTemplate="{StaticResource DeflectionTextBox}" Content="{Binding ShortTermResult}"/>
        </Grid>
    </DataTemplate>
</ResourceDictionary>