创建身份证绑定数据的文本框。
代码:
<TextBlock Text="证件号:" Grid.Column="0" Grid.Row="5" />
<TextBox Grid.Column="1" Grid.Row="5" x:Name="txt_CertificateType" TextChanged="txt_CertificateType_TextChanged"/>
<TextBlock Text="性别:" Grid.Column="3" Grid.Row="5" />
<ComboBox Grid.Column="4" Grid.Row="5" x:Name="cbo_Gender" />
<TextBlock Text="年龄:" Grid.Column="0" Grid.Row="7" />
<TextBox Grid.Column="1" Grid.Row="7" x:Name="txt_Age"/>
<TextBlock Text="出生年月:" Grid.Column="3" Grid.Row="7"/>
效果图: