<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" 
           Tag="A4"
          Name="A4" Grid.Column="0" Background="White" Visibility="Visible"  
           HorizontalAlignment="Center" Width="794" Height="1123">
    <Grid.Resources>
        <!--<converters:WidthConverter x:Key="widthConverter"></converters:WidthConverter>-->
        <SolidColorBrush x:Key="ExaminationBorderBrush" Color="Gray"/>
        <!--圆角button-->
        <LinearGradientBrush x:Key="ButtonBorder" EndPoint="0,0.5" StartPoint="1,0.5">
            <GradientStop Color="#278af7" Offset="0"/>
            <GradientStop Color="#5dd3aa" Offset="1"/>
        </LinearGradientBrush>
        <Style TargetType="{x:Type Button}" x:Key="MyButton">
            <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 BorderBrush="#FF45C5D7" BorderThickness="0" CornerRadius="5" x:Name="border" Background="#7282B7EA">
                            <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource {x:Static SystemColors.HighlightBrushKey}}"/>
                                <Setter Property="Background" TargetName="border" Value="Red"/>
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="BorderThickness" TargetName="border" Value="2.5"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter Property="Background" TargetName="border" Value="#FF49CECA"/>
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Background" TargetName="border" 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.Column="0" Focusable="{TemplateBinding Focusable}" Grid.Row="0" TabIndex="0"/>
                    <ScrollViewer x:Name="PART_ContentHost" CanContentScroll="True" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalScrollBarVisibility="Auto" IsTabStop="True" Grid.Row="1" TabIndex="1" Template="{DynamicResource ScrollViewerControlTemplate2}"/>
                    <Border >
                        <DockPanel Grid.Row="1">
                            <FrameworkElement DockPanel.Dock="Right" Width="{StaticResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
                            <Rectangle Height="10" Visibility="Visible" VerticalAlignment="Top">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                                        <GradientStop Color="#66000000" Offset="0"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </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.Column="1" Fill="{StaticResource {x:Static SystemColors.ControlBrushKey}}" Grid.Row="1"/>
                <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" Margin="{TemplateBinding Padding}" Grid.Row="0"/>
                <ScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Cursor="Arrow" Grid.Column="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}"/>
                <ScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId="HorizontalScrollBar" Cursor="Arrow" Grid.Column="0" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}"/>
            </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}}" StrokeThickness="1" StrokeDashArray="1 2"/>
                    </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" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                            <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter Property="BorderBrush" TargetName="border" 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 Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
                                <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>
        <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.Column="1" Grid.Row="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 Grid.Column="0" Margin="0" Name="InstitutionLogo_IMG" Height="80" Width="80" VerticalAlignment="Center" />
            <Label Grid.Column="0" Grid.ColumnSpan="3" Name="InstitutionName_TXT" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="40" Content="医療機関" />

        </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" Stretch="Fill" X1="{StaticResource X1}" Y1="{StaticResource Y1}" Y2="{StaticResource Y2}" VerticalAlignment="Top"  Stroke="Black" StrokeThickness="1"/>
                </Grid>

                <StackPanel Grid.Column="0" Orientation="Horizontal" Margin="10,0">
                    <Label FontSize="{StaticResource InfoFontSize}" Content="氏名:"/>
                    <Label Name="PatientName_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
                </StackPanel>
                <StackPanel Grid.Column="1"  Orientation="Horizontal">
                    <Label FontSize="{StaticResource InfoFontSize}"  Content="性別:"/>
                    <Label Name="PatientGender_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
                </StackPanel>
                <StackPanel Grid.Column="2"  Orientation="Horizontal">
                    <Label FontSize="{StaticResource InfoFontSize}"  Content="年齢:"/>
                    <Label Name="PatientAge_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
                </StackPanel>
            </Grid>
            <Grid Grid.Row="1"  Margin="{StaticResource MarginThickness}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="0" Orientation="Horizontal" Margin="10,0">
                    <Label FontSize="{StaticResource InfoFontSize}"  Content="番号:"/>
                    <Label Name="PatientNO_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
                </StackPanel>
                <StackPanel Grid.Column="1"  Orientation="Horizontal" Visibility="Hidden">
                    <Label FontSize="{StaticResource InfoFontSize}"  Content="ID番号:"/>
                    <Label Name="PatientIDNO_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
                </StackPanel>
                <Grid Grid.Row="1" Grid.ColumnSpan="3" Margin="0,0,0,-10" VerticalAlignment="Bottom">
                    <Line  X1="{StaticResource X1}" Grid.ColumnSpan="3" Stretch="Fill" Y1="{StaticResource Y1}" Y2="{StaticResource Y2}" VerticalAlignment="Bottom"  Stroke="Black" StrokeThickness="1"/>
                </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 BorderThickness="1" BorderBrush="Gray" Grid.Column="0" Grid.Row="0" Margin="5">
                <Image Name="Exam0_IMG" Grid.Column="0" Grid.Row="0" />
            </Border>
            <Border BorderThickness="1" BorderBrush="Gray"
                    Grid.Column="1" Grid.Row="0"  Margin="5">
                <Image Name="Exam1_IMG"  Grid.Column="1" Grid.Row="0"/>
            </Border>
            
            
            <!--<Image Name="Exam0_IMG" Grid.Column="0"  Margin="5" Grid.Row="0" />
            <Image Name="Exam1_IMG"  Grid.Column="1"    Margin="5"   Grid.Row="0" />-->
        </Grid>
        <Grid Grid.Row="3" VerticalAlignment="Stretch" Margin="{StaticResource MarginThickness}">
            <Grid.RowDefinitions>
                <RowDefinition Height="25"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Padding="0" FontWeight="Bold" VerticalAlignment="Center" Margin="10,0" Content="所見"/>
            <TextBox Name="Obs_TXT" TextWrapping="Wrap" AcceptsReturn="True" 
                        VerticalScrollBarVisibility="Hidden" Grid.Row="1" Margin="10,0" MaxLines="15"/>
        </Grid>
        <Grid Grid.Row="4"  VerticalAlignment="Stretch" Margin="{StaticResource MarginThickness}">
            <Grid.RowDefinitions>
                <RowDefinition Height="25"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Padding="0" FontWeight="Bold" VerticalAlignment="Center" Margin="10,0" Content="備考"/>
            <TextBox Name="Tips_TXT" TextWrapping="Wrap" AcceptsReturn="True"
                        VerticalScrollBarVisibility="Hidden" Grid.Row="1"  Margin="10,0" MaxLines="15"/>
        </Grid>
        <Grid Grid.Row="5" Margin="{StaticResource MarginThickness}" VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" Margin="10,0" VerticalAlignment="Center">
                <Label FontSize="{StaticResource InfoFontSize}"  Content="依頼医:"/>
                <Label Name="Physician_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
            </StackPanel>
            <StackPanel Grid.Column="1"  Grid.Row="0"  Orientation="Horizontal" Margin="10,0" VerticalAlignment="Center">
                <Label FontSize="{StaticResource InfoFontSize}"  Content="担当医:"/>
                <Label Name="Doctor_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
            </StackPanel>
            <StackPanel Grid.Column="1"  Grid.Row="1"  Orientation="Horizontal" Margin="10,0" VerticalAlignment="Center">
                <Label FontSize="{StaticResource InfoFontSize}"  Content="日付:"/>
                <Label Name="Date_TXT" FontSize="{StaticResource InfoFontSize}"  Content=""/>
            </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  X1="{StaticResource X1}" Grid.ColumnSpan="3" Stretch="Fill" Y1="{StaticResource Y1}" Y2="{StaticResource Y2}" VerticalAlignment="Top"  Stroke="Black" StrokeThickness="1"/>
            </Grid>
            <Label Margin="0" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center" Padding="-2" Content="臨床上の参考情報であり、証明資料ではありません"/>
            <Label Name="Pagination_TXT" HorizontalAlignment="Right" VerticalAlignment="Center" Content=""/>
        </Grid>
    </Grid>
</Grid>
   