AddChild.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <Page x:Class="Детский_сад.AddChild"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Детский_сад"
  7. mc:Ignorable="d"
  8. d:DesignHeight="630" d:DesignWidth="1250"
  9. Title="AddChild">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition/>
  13. <RowDefinition Height="65"/>
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition/>
  17. <ColumnDefinition/>
  18. </Grid.ColumnDefinitions>
  19. <ScrollViewer Grid.ColumnSpan="2">
  20. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <StackPanel Orientation="Horizontal">
  22. <StackPanel VerticalAlignment="Center" Width="416.6">
  23. <StackPanel HorizontalAlignment="Center">
  24. <StackPanel Style="{StaticResource spAvtorReg}">
  25. <TextBlock Text="Фамилия" Style="{StaticResource tbAvtorReg}"/>
  26. <TextBox Name="tboxSurname" Style="{StaticResource tboxReg}"/>
  27. </StackPanel>
  28. <StackPanel Style="{StaticResource spAvtorReg}">
  29. <TextBlock Text="Имя" Style="{StaticResource tbAvtorReg}"/>
  30. <TextBox Name="tboxName" Style="{StaticResource tboxReg}"/>
  31. </StackPanel>
  32. <StackPanel Style="{StaticResource spAvtorReg}">
  33. <TextBlock Text="Отчество" Style="{StaticResource tbAvtorReg}"/>
  34. <TextBox Name="tboxPatronymic" Style="{StaticResource tboxReg}"/>
  35. </StackPanel>
  36. <StackPanel Style="{StaticResource spAvtorReg}">
  37. <TextBlock Text="Дата рождения" Style="{StaticResource tbAvtorReg}"/>
  38. <DatePicker Name="dpBirthdate" Style="{StaticResource dpReg}"/>
  39. </StackPanel>
  40. </StackPanel>
  41. </StackPanel>
  42. <StackPanel VerticalAlignment="Center" Width="416.6">
  43. <StackPanel HorizontalAlignment="Center">
  44. <StackPanel Name="spSize">
  45. <StackPanel Style="{StaticResource spAvtorReg}">
  46. <TextBlock Text="Группа" Style="{StaticResource tbAvtorReg}"/>
  47. <ComboBox Name="cbGroup" Style="{StaticResource cbReg}"/>
  48. </StackPanel>
  49. <StackPanel Style="{StaticResource spAvtorReg}">
  50. <TextBlock Text="Пол" Style="{StaticResource tbAvtorReg}"/>
  51. <ComboBox Name="cbGender" Style="{StaticResource cbReg}"/>
  52. </StackPanel>
  53. <StackPanel Style="{StaticResource spAvtorReg}">
  54. <TextBlock Text="Улица" Style="{StaticResource tbAvtorReg}"/>
  55. <TextBox Name="tboxStreet" Style="{StaticResource tboxReg}"/>
  56. </StackPanel>
  57. </StackPanel>
  58. <StackPanel Style="{StaticResource spAvtorReg}">
  59. <TextBlock Text="Строение" Style="{StaticResource tbAvtorReg}"/>
  60. <TextBox Name="tboxBuilding" Style="{StaticResource tboxReg}"/>
  61. </StackPanel>
  62. </StackPanel>
  63. </StackPanel>
  64. <StackPanel VerticalAlignment="Center" Width="416.7">
  65. <StackPanel HorizontalAlignment="Center">
  66. <Image Name="imgPhoto" Source="\Resources\Заглушка.png" Height="{Binding ActualHeight, ElementName=spSize}" Width="{Binding ActualWidth, ElementName=spSize}"/>
  67. </StackPanel>
  68. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  69. <Button Name="btnAddPhoto" Content="Добавить фото" Template="{StaticResource btnTemplate}" Margin="0 15 15 0" Click="btnAddPhoto_Click"/>
  70. <Button Name="btnDefaultPhoto" Content="По умолчанию" Template="{StaticResource btnTemplate}" Margin="15 15 0 0" Click="btnDefaultPhoto_Click"/>
  71. </StackPanel>
  72. </StackPanel>
  73. </StackPanel>
  74. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin=" 0 40 0 5">
  75. <TextBlock Text="Свидетельство о рождении" FontFamily="Arial Narrow" FontSize="30"/>
  76. </StackPanel>
  77. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin=" 0 5 0 40">
  78. <StackPanel Margin="30 0 30 0">
  79. <TextBlock Text="Серия" Style="{StaticResource tbAvtorReg}"/>
  80. <TextBox Name="tboxSeries" Style="{StaticResource tboxReg}"/>
  81. </StackPanel>
  82. <StackPanel Margin="30 0 30 0">
  83. <TextBlock Text="Номер" Style="{StaticResource tbAvtorReg}"/>
  84. <TextBox Name="tboxNumber" Style="{StaticResource tboxReg}"/>
  85. </StackPanel>
  86. <StackPanel Margin="30 0 30 0">
  87. <TextBlock Text="Дата выдачи" Style="{StaticResource tbAvtorReg}"/>
  88. <DatePicker Name="dpDateIssue" Style="{StaticResource dpReg}"/>
  89. </StackPanel>
  90. <StackPanel Margin="30 0 30 0">
  91. <TextBlock Text="Кем выдано" Style="{StaticResource tbAvtorReg}"/>
  92. <TextBox Name="tboxIddued" Style="{StaticResource tboxReg}" Width="400"/>
  93. </StackPanel>
  94. </StackPanel>
  95. <StackPanel Orientation="Horizontal">
  96. <StackPanel Width="615" >
  97. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  98. <CheckBox Name="chBMother" VerticalAlignment="Center" Margin="0 0 5 0" Click="chBMother_Click"/>
  99. <TextBlock Text="Мать" FontFamily="Arial Narrow" FontSize="30"/>
  100. </StackPanel>
  101. </StackPanel>
  102. <StackPanel Width="615" >
  103. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  104. <CheckBox Name="chBFather" VerticalAlignment="Center" Margin="0 0 5 0" Click="chBFather_Click"/>
  105. <TextBlock Text="Отец" FontFamily="Arial Narrow" FontSize="30"/>
  106. </StackPanel>
  107. </StackPanel>
  108. </StackPanel>
  109. <StackPanel Orientation="Horizontal">
  110. <StackPanel Name="spMother1" VerticalAlignment="Center" Width="307.5">
  111. <StackPanel HorizontalAlignment="Center">
  112. <StackPanel Style="{StaticResource spAvtorReg}">
  113. <TextBlock Text="Фамилия" Style="{StaticResource tbAvtorReg}"/>
  114. <TextBox Name="tboxMotherSurname" Style="{StaticResource tboxReg}"/>
  115. </StackPanel>
  116. <StackPanel Style="{StaticResource spAvtorReg}">
  117. <TextBlock Text="Имя" Style="{StaticResource tbAvtorReg}"/>
  118. <TextBox Name="tboxMotherName" Style="{StaticResource tboxReg}"/>
  119. </StackPanel>
  120. <StackPanel Style="{StaticResource spAvtorReg}">
  121. <TextBlock Text="Отчество" Style="{StaticResource tbAvtorReg}"/>
  122. <TextBox Name="tboxMotherPatronymic" Style="{StaticResource tboxReg}"/>
  123. </StackPanel>
  124. </StackPanel>
  125. </StackPanel>
  126. <StackPanel Name="spMother2" VerticalAlignment="Center" Width="307.5">
  127. <StackPanel HorizontalAlignment="Center">
  128. <StackPanel Style="{StaticResource spAvtorReg}">
  129. <TextBlock Text="Улица" Style="{StaticResource tbAvtorReg}"/>
  130. <TextBox Name="tboxMotherStreet" Style="{StaticResource tboxReg}"/>
  131. </StackPanel>
  132. <StackPanel Style="{StaticResource spAvtorReg}">
  133. <TextBlock Text="Строение" Style="{StaticResource tbAvtorReg}"/>
  134. <TextBox Name="tboxMotherBuilding" Style="{StaticResource tboxReg}"/>
  135. </StackPanel>
  136. <StackPanel Style="{StaticResource spAvtorReg}">
  137. <TextBlock Text="Телефон" Style="{StaticResource tbAvtorReg}"/>
  138. <TextBox Name="tboxMotherPhone" Style="{StaticResource tboxReg}"/>
  139. </StackPanel>
  140. </StackPanel>
  141. </StackPanel>
  142. <StackPanel Name="spFather1" VerticalAlignment="Center" Width="307.5">
  143. <StackPanel HorizontalAlignment="Center">
  144. <StackPanel Style="{StaticResource spAvtorReg}">
  145. <TextBlock Text="Фамилия" Style="{StaticResource tbAvtorReg}"/>
  146. <TextBox Name="tboxFatherSurname" Style="{StaticResource tboxReg}"/>
  147. </StackPanel>
  148. <StackPanel Style="{StaticResource spAvtorReg}">
  149. <TextBlock Text="Имя" Style="{StaticResource tbAvtorReg}"/>
  150. <TextBox Name="tboxFatherName" Style="{StaticResource tboxReg}"/>
  151. </StackPanel>
  152. <StackPanel Style="{StaticResource spAvtorReg}">
  153. <TextBlock Text="Отчество" Style="{StaticResource tbAvtorReg}"/>
  154. <TextBox Name="tboxFatherPatronymic" Style="{StaticResource tboxReg}"/>
  155. </StackPanel>
  156. </StackPanel>
  157. </StackPanel>
  158. <StackPanel Name="spFather2" VerticalAlignment="Center" Width="307.5">
  159. <StackPanel HorizontalAlignment="Center">
  160. <StackPanel Style="{StaticResource spAvtorReg}">
  161. <TextBlock Text="Улица" Style="{StaticResource tbAvtorReg}"/>
  162. <TextBox Name="tboxFatherStreet" Style="{StaticResource tboxReg}"/>
  163. </StackPanel>
  164. <StackPanel Style="{StaticResource spAvtorReg}">
  165. <TextBlock Text="Строение" Style="{StaticResource tbAvtorReg}"/>
  166. <TextBox Name="tboxFatherBuilding" Style="{StaticResource tboxReg}"/>
  167. </StackPanel>
  168. <StackPanel Style="{StaticResource spAvtorReg}">
  169. <TextBlock Text="Телефон" Style="{StaticResource tbAvtorReg}"/>
  170. <TextBox Name="tboxFatherPhone" Style="{StaticResource tboxReg}"/>
  171. </StackPanel>
  172. </StackPanel>
  173. </StackPanel>
  174. </StackPanel>
  175. <StackPanel Orientation="Horizontal">
  176. <StackPanel Name="spMother3" VerticalAlignment="Center" Width="615">
  177. <StackPanel Style="{StaticResource spAvtorReg}" HorizontalAlignment="Center">
  178. <TextBlock Text="Дата рождения" Style="{StaticResource tbAvtorReg}" HorizontalAlignment="Center" Margin="2"/>
  179. <DatePicker Name="dpMotherBirthdate" Style="{StaticResource dpReg}" HorizontalContentAlignment="Center" Background="White"/>
  180. </StackPanel>
  181. </StackPanel>
  182. <StackPanel Name="spFather3" VerticalAlignment="Center" Width="615">
  183. <StackPanel Style="{StaticResource spAvtorReg}" HorizontalAlignment="Center">
  184. <TextBlock Text="Дата рождения" Style="{StaticResource tbAvtorReg}" HorizontalAlignment="Center" Margin="2"/>
  185. <DatePicker Name="dpFatherBirthdate" Style="{StaticResource dpReg}" HorizontalContentAlignment="Center" Background="White"/>
  186. </StackPanel>
  187. </StackPanel>
  188. </StackPanel>
  189. </StackPanel>
  190. </ScrollViewer>
  191. <Button Name="btnBack" Content="Назад" Grid.Row="1" Template="{StaticResource btnTemplate}" HorizontalAlignment="Left" Margin="10" Click="btnBack_Click"/>
  192. <Button Name="btnAdd" Content="Добавить" Grid.Row="1" Grid.Column="1" Template="{StaticResource btnTemplate}" HorizontalAlignment="Right" Margin="10" Click="btnAdd_Click"/>
  193. </Grid>
  194. </Page>