<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:system="clr-namespace:System;assembly=mscorlib" Name="A4" Grid.Column="0" Width="794"
      Height="1123" HorizontalAlignment="Center" Background="White" Tag="A4" Visibility="Visible">
    <Grid.Resources>
        <!--<converters:WidthConverter x:Key="widthConverter"></converters:WidthConverter>-->
        <SolidColorBrush x:Key="ExaminationBorderBrush" Color="Gray" />
        <system:String x:Key="NameTxtRes">Name:</system:String>
        <system:String x:Key="GenderTxtRes">Geschlecht:</system:String>
        <system:String x:Key="AgeTxtRes">Alter:</system:String>
        <system:String x:Key="NOTxtRes">ID:</system:String>
        <system:String x:Key="IDCardTxtRes">IDCard:</system:String>


        <system:String x:Key="InstitutionTxtRes">Krankenhaus</system:String>
        <system:String x:Key="ReoprtTileTxtRes">Ultraschall-Untersuchungsbericht</system:String>
        <system:String x:Key="ObsTxtRes">Obs:</system:String>
        <system:String x:Key="TipsTxtRes">Tips:</system:String>
        <system:String x:Key="ExamDcoTxtRes">Arzt/Ärztin:</system:String>
        <system:String x:Key="ApplyDcoTxtRes">Arzt/Ärztin:</system:String>
        <system:String x:Key="DateTxtRes">Datum:</system:String>
        <system:String x:Key="DisclaimerTxtRes">Nur für klinische Zwecke, nicht als rechtlicher Nachweis.</system:String>
        <!--  圆角button  -->
        <LinearGradientBrush x:Key="ButtonBorder" StartPoint="1,0.5" EndPoint="0,0.5">
            <GradientStop Offset="0" Color="#278af7" />
            <GradientStop Offset="1" Color="#5dd3aa" />
        </LinearGradientBrush>
        <Style x:Key="MyButton" TargetType="{x:Type Button}">
            <Setter Property="FontSize" Value="15" />
            <Setter Property="Margin" Value="4" />
            <!--<Setter Property="FontWeight" Value="Black"/>-->
            <Setter Property="Foreground" Value="White" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="Background" Value="Red" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border x:Name="border" Background="#7282B7EA" BorderBrush="#FF45C5D7" BorderThickness="0" CornerRadius="5">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"
                                              Content="{TemplateBinding Content}" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource {x:Static SystemColors.HighlightBrushKey}}" />
                                <Setter TargetName="border" Property="Background" Value="Red" />
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter TargetName="border" Property="BorderThickness" Value="2.5" />
                            </Trigger>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter TargetName="border" Property="Background" Value="#FF49CECA" />
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter TargetName="border" Property="Background" Value="{StaticResource ButtonBorder}" />
                                <!--<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
                                <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>-->
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="ExaminationFontBrush" Color="Black" />

        <ControlTemplate x:Key="DocumentViewerControlTemplate2" TargetType="{x:Type DocumentViewer}">
            <Border BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Focusable="False">
                <Grid Background="{TemplateBinding Background}" KeyboardNavigation.TabNavigation="Local">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <ContentControl Grid.Row="0" Grid.Column="0"
                                    Focusable="{TemplateBinding Focusable}"
                                    TabIndex="0" />
                    <ScrollViewer x:Name="PART_ContentHost" Grid.Row="1" Grid.Column="0" CanContentScroll="True"
                                  Focusable="{TemplateBinding Focusable}"
                                  HorizontalScrollBarVisibility="Auto" IsTabStop="True" TabIndex="1"
                                  Template="{DynamicResource ScrollViewerControlTemplate2}" />
                    <Border>
                        <DockPanel Grid.Row="1">
                            <FrameworkElement Width="{StaticResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
                            <Rectangle Height="10" VerticalAlignment="Top" Visibility="Visible">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Offset="0" Color="#66000000" />
                                        <GradientStop Offset="1" Color="Transparent" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </DockPanel>
                    </Border>
                    <!--  这一段屏蔽搜索框  -->
                    <!--<Border >
                        <ContentControl x:Name="PART_FindToolBarHost" Grid.Column="0" Focusable="{TemplateBinding Focusable}" Grid.Row="2" TabIndex="2"/>
                    </Border>-->
                </Grid>
            </Border>
        </ControlTemplate>
        <ControlTemplate x:Key="ScrollViewerControlTemplate2" TargetType="{x:Type ScrollViewer}">
            <Grid x:Name="Grid" Background="{TemplateBinding Background}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="22" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="0" />
                </Grid.RowDefinitions>
                <Rectangle x:Name="Corner" Grid.Row="1" Grid.Column="1"
                           Fill="{StaticResource {x:Static SystemColors.ControlBrushKey}}" />
                <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.Row="0" Grid.Column="0"
                                        Margin="{TemplateBinding Padding}"
                                        CanContentScroll="{TemplateBinding CanContentScroll}"
                                        CanHorizontallyScroll="False" CanVerticallyScroll="False"
                                        Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
                <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Row="0" Grid.Column="1" AutomationProperties.AutomationId="VerticalScrollBar" Cursor="Arrow"
                           Maximum="{TemplateBinding ScrollableHeight}"
                           Minimum="0"
                           ViewportSize="{TemplateBinding ViewportHeight}"
                           Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                           Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
                <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Row="1" Grid.Column="0" AutomationProperties.AutomationId="HorizontalScrollBar" Cursor="Arrow"
                           Maximum="{TemplateBinding ScrollableWidth}"
                           Minimum="0" Orientation="Horizontal"
                           ViewportSize="{TemplateBinding ViewportWidth}"
                           Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                           Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
            </Grid>
        </ControlTemplate>
        <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD" />
        <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070" />
        <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD" />
        <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1" />
        <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6" />
        <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B" />
        <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4" />
        <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5" />
        <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383" />
        <Style x:Key="FocusVisual">
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Rectangle Margin="2" SnapsToDevicePixels="true"
                                   Stroke="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}"
                                   StrokeDashArray="1 2" StrokeThickness="1" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ImageButtonStyle" TargetType="{x:Type Button}">
            <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
            <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
            <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
            <Setter Property="Foreground" Value="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Padding" Value="1" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border x:Name="border"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                SnapsToDevicePixels="true">
                            <ContentPresenter x:Name="contentPresenter"
                                              Margin="{TemplateBinding Padding}"
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                              Focusable="False" RecognizesAccessKey="True"
                                              SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource {x:Static SystemColors.HighlightBrushKey}}" />
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <!--<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
                                <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>-->
                            </Trigger>
                            <Trigger Property="IsPressed" Value="true">
                                <!--<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
                                <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>-->
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
                                <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
                                <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <System:Double x:Key="InfoFontSize">16</System:Double>
        <System:Double x:Key="X1">10</System:Double>
        <System:Double x:Key="Y1">0</System:Double>
        <System:Double x:Key="X2">770</System:Double>
        <System:Double x:Key="Y2">0</System:Double>
        <Thickness x:Key="MarginThickness">0,0,0,0</Thickness>
    </Grid.Resources>

    <Grid.RowDefinitions>
        <RowDefinition Height="1*" />
        <RowDefinition Height="98*" />
        <RowDefinition Height="1*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="6*" />
        <ColumnDefinition Width="88*" />
        <ColumnDefinition Width="6*" />
    </Grid.ColumnDefinitions>
    <Grid Grid.Row="1" Grid.Column="1" Background="#fffeff">
        <Grid.RowDefinitions>
            <!--  标题  -->
            <RowDefinition Height="11*" />
            <!--  病人信息  -->
            <RowDefinition Height="8*" />
            <!--  图片  -->
            <RowDefinition Height="18*" />
            <!--  Obs  -->
            <RowDefinition Height="20*" />
            <!--  Tips  -->
            <RowDefinition Height="20*" />
            <!--  医生信息  -->
            <RowDefinition Height="8*" />
            <!--  免责  -->
            <RowDefinition Height="3*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Image Name="InstitutionLogo_IMG" Grid.Column="0" Width="80" Height="80" Margin="0" VerticalAlignment="Center" />
            <Label Name="InstitutionName_TXT" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center"
                   Content="{StaticResource InstitutionTxtRes}"
                   FontSize="40" />

        </Grid>

        <Grid Grid.Row="1" VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid Margin="{StaticResource MarginThickness}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid Grid.ColumnSpan="3" Margin="0,-10,0,0">
                    <Line Grid.ColumnSpan="3" VerticalAlignment="Top" Stretch="Fill" Stroke="Black" StrokeThickness="1"
                          X1="{StaticResource X1}"
                          Y1="{StaticResource Y1}"
                          Y2="{StaticResource Y2}" />
                </Grid>

                <StackPanel Grid.Column="0" Margin="10,0" Orientation="Horizontal">
                    <Label Content="{StaticResource NameTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                    <Label Name="PatientName_TXT" Content=""
                           FontSize="{StaticResource InfoFontSize}" />
                </StackPanel>
                <StackPanel Grid.Column="1" Orientation="Horizontal">
                    <Label Content="{StaticResource GenderTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                    <Label Name="PatientGender_TXT" Content=""
                           FontSize="{StaticResource InfoFontSize}" />
                </StackPanel>
                <StackPanel Grid.Column="2" Orientation="Horizontal">
                    <Label Content="{StaticResource AgeTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                    <Label Name="PatientAge_TXT" Content=""
                           FontSize="{StaticResource InfoFontSize}" />
                </StackPanel>
            </Grid>
            <Grid Grid.Row="1" Margin="{StaticResource MarginThickness}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="0" Margin="10,0" Orientation="Horizontal">
                    <Label Content="{StaticResource NOTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                    <Label Name="PatientNO_TXT" Content=""
                           FontSize="{StaticResource InfoFontSize}" />
                </StackPanel>
                <StackPanel Grid.Column="1" Orientation="Horizontal" Visibility="Collapsed">
                    <Label Content="{StaticResource IDCardTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                    <Label Name="PatientIDNO_TXT" Content=""
                           FontSize="{StaticResource InfoFontSize}" />
                </StackPanel>
                <Grid Grid.Row="1" Grid.ColumnSpan="3" Margin="0,0,0,-10" VerticalAlignment="Bottom">
                    <Line Grid.ColumnSpan="3" VerticalAlignment="Bottom" Stretch="Fill" Stroke="Black" StrokeThickness="1"
                          X1="{StaticResource X1}"
                          Y1="{StaticResource Y1}"
                          Y2="{StaticResource Y2}" />
                </Grid>
            </Grid>
        </Grid>
        <!--<Line Grid.Row="1" X1="{StaticResource X1}" X2="{StaticResource X2}" Y1="{StaticResource Y1}" Y2="{StaticResource Y2}" Grid.ColumnSpan="3" VerticalAlignment="Bottom" Stroke="Black" StrokeThickness="1"/>-->
        <Grid Grid.Row="2" Margin="{StaticResource MarginThickness}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Border Grid.Row="0" Grid.Column="0" Margin="5" BorderBrush="Gray" BorderThickness="1">
                <Image Name="Exam0_IMG" Grid.Row="0" Grid.Column="0" />
            </Border>
            <Border Grid.Row="0" Grid.Column="1" Margin="5" BorderBrush="Gray" BorderThickness="1">
                <Image Name="Exam1_IMG" Grid.Row="0" Grid.Column="1" />
            </Border>
        </Grid>
        <Grid Grid.Row="3"
              Margin="{StaticResource MarginThickness}"
              VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="25" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Margin="10,0" Padding="0" VerticalAlignment="Center"
                   Content="{StaticResource ObsTxtRes}"
                   FontWeight="Bold" />
            <TextBox Name="Obs_TXT" Grid.Row="1" Margin="10,0" AcceptsReturn="True" MaxLines="15" TextWrapping="Wrap"
                     VerticalScrollBarVisibility="Hidden" />
        </Grid>
        <Grid Grid.Row="4"
              Margin="{StaticResource MarginThickness}"
              VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="25" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Margin="10,0" Padding="0" VerticalAlignment="Center"
                   Content="{StaticResource TipsTxtRes}"
                   FontWeight="Bold" />
            <TextBox Name="Tips_TXT" Grid.Row="1" Margin="10,0" AcceptsReturn="True" MaxLines="15" TextWrapping="Wrap"
                     VerticalScrollBarVisibility="Hidden" />
        </Grid>
        <Grid Grid.Row="5"
              Margin="{StaticResource MarginThickness}"
              VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="0" Grid.Column="0" Margin="10,0" VerticalAlignment="Center" Orientation="Horizontal">
                <Label Content="{StaticResource ExamDcoTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                <Label Name="Physician_TXT" Content=""
                       FontSize="{StaticResource InfoFontSize}" />
            </StackPanel>
            <StackPanel Grid.Row="0" Grid.Column="1" Margin="10,0" VerticalAlignment="Center" Orientation="Horizontal">
                <Label Content="{StaticResource ApplyDcoTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                <Label Name="Doctor_TXT" Content=""
                       FontSize="{StaticResource InfoFontSize}" />
            </StackPanel>
            <StackPanel Grid.Row="1" Grid.Column="1" Margin="10,0" VerticalAlignment="Center" Orientation="Horizontal">
                <Label Content="{StaticResource DateTxtRes}" FontSize="{StaticResource InfoFontSize}" />
                <Label Name="Date_TXT" Content=""
                       FontSize="{StaticResource InfoFontSize}" />
            </StackPanel>
        </Grid>
        <!--<Line Grid.Row="6"  X1="{StaticResource X1}" X2="{StaticResource X2}" Y1="{StaticResource Y1}" Y2="{StaticResource Y2}"  VerticalAlignment="Top"  Stroke="Black" StrokeThickness="1"/>-->
        <Grid Grid.Row="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid Grid.Row="1" Grid.ColumnSpan="3" Margin="0,-5,0,0" VerticalAlignment="Top">
                <Line Grid.ColumnSpan="3" VerticalAlignment="Top" Stretch="Fill" Stroke="Black" StrokeThickness="1"
                      X1="{StaticResource X1}"
                      Y1="{StaticResource Y1}"
                      Y2="{StaticResource Y2}" />
            </Grid>
            <Label Margin="0" Padding="-2" HorizontalAlignment="Center" VerticalAlignment="Center"
                   Content="{StaticResource DisclaimerTxtRes}"
                   FontSize="14" />
            <Label Name="Pagination_TXT" HorizontalAlignment="Right" VerticalAlignment="Center" Content="" />
        </Grid>
    </Grid>
</Grid>
