代码:
<UserControl x:Class="MXS_WPF.View.DoctorOrders.UC_NursingRecord"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MXS_WPF.View.DoctorOrders"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
FontFamily="华文新魏"
Loaded="NursingRecord_Loaded">
<Grid Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="36"/>
<RowDefinition Height="0.2"/>
<RowDefinition Height="2"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<!--病人信息与查询框 开始-->
<Grid Grid.Row="0" Background="#FFFFFF">
<Grid Grid.Column="0" Height="36">
<TextBlock.FontSize>18</TextBlock.FontSize>
<TextBlock.Foreground>#888888</TextBlock.Foreground>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.7*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<!--查询输入框 开始-->
<WrapPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock Text="病人:"/>
<TextBox BorderBrush="Black" x:Name="SelectTextBox"
AutomationProperties.HelpText="住院号搜索"
Foreground="#555555"
FontSize="16" Width="200" Height="25"
VerticalContentAlignment="Center"
MaxLength="12"
KeyUp="SelectPatient"/>
</WrapPanel>
<!--查询输入框 结束-->
<WrapPanel Grid.Column="1" Margin="0,8.5,0,0">
<TextBlock Te