Registration.xaml 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  1. <Window x:Class="Hammer_store.Registration"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Hammer_store"
  7. mc:Ignorable="d"
  8. Height="800"
  9. Width="450"
  10. ResizeMode="NoResize"
  11. WindowStartupLocation="CenterScreen"
  12. WindowStyle="None"
  13. AllowsTransparency="True"
  14. Background="Transparent"
  15. Icon="Resources/Images/logo2.png"
  16. Title="Hammer store (регистрация)">
  17. <Window.Resources>
  18. <!--** Кастомная кнопка "Плюс" **-->
  19. <Style x:Key="FocusVisual">
  20. <Setter Property="Control.Template">
  21. <Setter.Value>
  22. <ControlTemplate>
  23. <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
  24. </ControlTemplate>
  25. </Setter.Value>
  26. </Setter>
  27. </Style>
  28. <SolidColorBrush x:Key="Button.Static.Background" Color="White"/>
  29. <SolidColorBrush x:Key="Button.Static.Border" Color="Transparent"/>
  30. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="WhiteSmoke"/>
  31. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="LimeGreen"/>
  32. <SolidColorBrush x:Key="Button.Pressed.Background" Color="LimeGreen"/>
  33. <SolidColorBrush x:Key="Button.Pressed.Border" Color="LimeGreen"/>
  34. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
  35. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
  36. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
  37. <Style x:Key="CustomButtonPlus" TargetType="{x:Type Button}">
  38. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
  39. <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
  40. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
  41. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  42. <Setter Property="BorderThickness" Value="1"/>
  43. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  44. <Setter Property="VerticalContentAlignment" Value="Center"/>
  45. <Setter Property="Padding" Value="1"/>
  46. <Setter Property="Template">
  47. <Setter.Value>
  48. <ControlTemplate TargetType="{x:Type Button}">
  49. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  50. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  51. </Border>
  52. <ControlTemplate.Triggers>
  53. <Trigger Property="IsDefaulted" Value="true">
  54. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  55. </Trigger>
  56. <Trigger Property="IsMouseOver" Value="true">
  57. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
  58. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
  59. </Trigger>
  60. <Trigger Property="IsPressed" Value="true">
  61. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
  62. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
  63. </Trigger>
  64. <Trigger Property="IsEnabled" Value="false">
  65. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
  66. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
  67. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
  68. </Trigger>
  69. </ControlTemplate.Triggers>
  70. </ControlTemplate>
  71. </Setter.Value>
  72. </Setter>
  73. </Style>
  74. <!--** Кастомная кнопка "Минус" **-->
  75. <Style x:Key="FocusVisual1">
  76. <Setter Property="Control.Template">
  77. <Setter.Value>
  78. <ControlTemplate>
  79. <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
  80. </ControlTemplate>
  81. </Setter.Value>
  82. </Setter>
  83. </Style>
  84. <SolidColorBrush x:Key="Button.Static.Background1" Color="White"/>
  85. <SolidColorBrush x:Key="Button.Static.Border1" Color="Transparent"/>
  86. <SolidColorBrush x:Key="Button.MouseOver.Background1" Color="WhiteSmoke"/>
  87. <SolidColorBrush x:Key="Button.MouseOver.Border1" Color="LimeGreen"/>
  88. <SolidColorBrush x:Key="Button.Pressed.Background1" Color="LimeGreen"/>
  89. <SolidColorBrush x:Key="Button.Pressed.Border1" Color="LimeGreen"/>
  90. <SolidColorBrush x:Key="Button.Disabled.Background1" Color="#FFF4F4F4"/>
  91. <SolidColorBrush x:Key="Button.Disabled.Border1" Color="#FFADB2B5"/>
  92. <SolidColorBrush x:Key="Button.Disabled.Foreground1" Color="#FF838383"/>
  93. <Style x:Key="CustomButtonMinus" TargetType="{x:Type Button}">
  94. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual1}"/>
  95. <Setter Property="Background" Value="{StaticResource Button.Static.Background1}"/>
  96. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border1}"/>
  97. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  98. <Setter Property="BorderThickness" Value="1"/>
  99. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  100. <Setter Property="VerticalContentAlignment" Value="Center"/>
  101. <Setter Property="Padding" Value="1"/>
  102. <Setter Property="Template">
  103. <Setter.Value>
  104. <ControlTemplate TargetType="{x:Type Button}">
  105. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  106. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  107. </Border>
  108. <ControlTemplate.Triggers>
  109. <Trigger Property="IsDefaulted" Value="true">
  110. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  111. </Trigger>
  112. <Trigger Property="IsMouseOver" Value="true">
  113. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background1}"/>
  114. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border1}"/>
  115. </Trigger>
  116. <Trigger Property="IsPressed" Value="true">
  117. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background1}"/>
  118. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border1}"/>
  119. </Trigger>
  120. <Trigger Property="IsEnabled" Value="false">
  121. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background1}"/>
  122. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border1}"/>
  123. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground1}"/>
  124. </Trigger>
  125. </ControlTemplate.Triggers>
  126. </ControlTemplate>
  127. </Setter.Value>
  128. </Setter>
  129. </Style>
  130. <!--** Кастомная кнопка "Назад" **-->
  131. <Style x:Key="FocusVisual2">
  132. <Setter Property="Control.Template">
  133. <Setter.Value>
  134. <ControlTemplate>
  135. <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
  136. </ControlTemplate>
  137. </Setter.Value>
  138. </Setter>
  139. </Style>
  140. <SolidColorBrush x:Key="Button.Static.Background2" Color="#FFDDDDDD"/>
  141. <SolidColorBrush x:Key="Button.Static.Border2" Color="#FF707070"/>
  142. <SolidColorBrush x:Key="Button.MouseOver.Background2" Color="Transparent"/>
  143. <SolidColorBrush x:Key="Button.MouseOver.Border2" Color="White"/>
  144. <SolidColorBrush x:Key="Button.Pressed.Background2" Color="Transparent"/>
  145. <SolidColorBrush x:Key="Button.Pressed.Border2" Color="Transparent"/>
  146. <SolidColorBrush x:Key="Button.Disabled.Background2" Color="#FFF4F4F4"/>
  147. <SolidColorBrush x:Key="Button.Disabled.Border2" Color="#FFADB2B5"/>
  148. <SolidColorBrush x:Key="Button.Disabled.Foreground2" Color="#FF838383"/>
  149. <Style x:Key="CustomButtonBack" TargetType="{x:Type Button}">
  150. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual2}"/>
  151. <Setter Property="Background" Value="{StaticResource Button.Static.Background2}"/>
  152. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border2}"/>
  153. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  154. <Setter Property="BorderThickness" Value="1"/>
  155. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  156. <Setter Property="VerticalContentAlignment" Value="Center"/>
  157. <Setter Property="Padding" Value="1"/>
  158. <Setter Property="Template">
  159. <Setter.Value>
  160. <ControlTemplate TargetType="{x:Type Button}">
  161. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  162. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  163. </Border>
  164. <ControlTemplate.Triggers>
  165. <Trigger Property="IsDefaulted" Value="true">
  166. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  167. </Trigger>
  168. <Trigger Property="IsMouseOver" Value="true">
  169. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background2}"/>
  170. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border2}"/>
  171. </Trigger>
  172. <Trigger Property="IsPressed" Value="true">
  173. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background2}"/>
  174. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border2}"/>
  175. </Trigger>
  176. <Trigger Property="IsEnabled" Value="false">
  177. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background2}"/>
  178. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border2}"/>
  179. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground2}"/>
  180. </Trigger>
  181. </ControlTemplate.Triggers>
  182. </ControlTemplate>
  183. </Setter.Value>
  184. </Setter>
  185. </Style>
  186. <!--** Кастомная кнопка "Готово" **-->
  187. <Style x:Key="FocusVisual3">
  188. <Setter Property="Control.Template">
  189. <Setter.Value>
  190. <ControlTemplate>
  191. <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
  192. </ControlTemplate>
  193. </Setter.Value>
  194. </Setter>
  195. </Style>
  196. <SolidColorBrush x:Key="Button.Static.Background13" Color="#FFDDDDDD"/>
  197. <SolidColorBrush x:Key="Button.Static.Border13" Color="#FF707070"/>
  198. <SolidColorBrush x:Key="Button.MouseOver.Background3" Color="Transparent"/>
  199. <SolidColorBrush x:Key="Button.MouseOver.Border3" Color="White"/>
  200. <SolidColorBrush x:Key="Button.Pressed.Background3" Color="Transparent"/>
  201. <SolidColorBrush x:Key="Button.Pressed.Border3" Color="Transparent"/>
  202. <SolidColorBrush x:Key="Button.Disabled.Background3" Color="#FFF4F4F4"/>
  203. <SolidColorBrush x:Key="Button.Disabled.Border3" Color="#FFADB2B5"/>
  204. <SolidColorBrush x:Key="Button.Disabled.Foreground3" Color="#FF838383"/>
  205. <Style x:Key="CustomButtonReady" TargetType="{x:Type Button}">
  206. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual3}"/>
  207. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  208. <Setter Property="BorderThickness" Value="1"/>
  209. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  210. <Setter Property="VerticalContentAlignment" Value="Center"/>
  211. <Setter Property="Padding" Value="1"/>
  212. <Setter Property="Template">
  213. <Setter.Value>
  214. <ControlTemplate TargetType="{x:Type Button}">
  215. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  216. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  217. </Border>
  218. <ControlTemplate.Triggers>
  219. <Trigger Property="IsDefaulted" Value="true">
  220. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  221. </Trigger>
  222. <Trigger Property="IsMouseOver" Value="true">
  223. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background3}"/>
  224. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border3}"/>
  225. </Trigger>
  226. <Trigger Property="IsPressed" Value="true">
  227. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background3}"/>
  228. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border3}"/>
  229. </Trigger>
  230. <Trigger Property="IsEnabled" Value="false">
  231. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background3}"/>
  232. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border3}"/>
  233. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground3}"/>
  234. </Trigger>
  235. </ControlTemplate.Triggers>
  236. </ControlTemplate>
  237. </Setter.Value>
  238. </Setter>
  239. </Style>
  240. </Window.Resources>
  241. <!--** Добавление рамки с градиентом **-->
  242. <Border CornerRadius="5"
  243. BorderThickness="5">
  244. <!--* Установка цвета для рамки *-->
  245. <Border.BorderBrush>
  246. <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
  247. <GradientStop Color="#FF661579" Offset="0.0"/>
  248. <GradientStop Color="#282c36" Offset="0.5"/>
  249. <GradientStop Color="#FF661579" Offset="1.0"/>
  250. </LinearGradientBrush>
  251. </Border.BorderBrush>
  252. <!--** Добавление сетки для элементов внутри формы **-->
  253. <Grid>
  254. <!--* Установка цвета для фона внутри "Grid" *-->
  255. <Grid.Background>
  256. <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
  257. <GradientStop Color="#FF661579" Offset="0.0"/>
  258. <GradientStop Color="#282c36" Offset="0.5"/>
  259. <GradientStop Color="#FF661579" Offset="1.0"/>
  260. </LinearGradientBrush>
  261. </Grid.Background>
  262. <!--* Разметка сетки для элементов *-->
  263. <Grid.RowDefinitions>
  264. <RowDefinition Height="35"/>
  265. <RowDefinition Height="70"/>
  266. <RowDefinition Height="85"/>
  267. <RowDefinition Height="85"/>
  268. <RowDefinition Height="85"/>
  269. <RowDefinition Height="85"/>
  270. <RowDefinition Height="85"/>
  271. <RowDefinition Height="85"/>
  272. <RowDefinition Height="110"/>
  273. <RowDefinition Height="70"/>
  274. </Grid.RowDefinitions>
  275. <!--* Тайтл Бар для кнопок и перетаскивания *-->
  276. <Grid Name="TitleBar"
  277. Grid.Row="0"
  278. MouseDown="TitleBar_MouseDown"
  279. Background="Transparent">
  280. <!--Изображение для закрытия формы-->
  281. <Image x:Name="Image_cross"
  282. Width="35"
  283. Height="35"
  284. HorizontalAlignment="Right"
  285. Margin="0 0 0 0"
  286. MouseDown="Image_cross_MouseDown">
  287. <Image.Effect>
  288. <DropShadowEffect Direction="270" BlurRadius="10"/>
  289. </Image.Effect>
  290. <Image.Style>
  291. <Style TargetType="{x:Type Image}">
  292. <Setter Property="Source" Value="Resources/Images/cross_NotActivate.png"/>
  293. <Style.Triggers>
  294. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_cross}"
  295. Value="True">
  296. <Setter Property="Source" Value="Resources/Images/cross_Activate.png"/>
  297. </DataTrigger>
  298. </Style.Triggers>
  299. </Style>
  300. </Image.Style>
  301. </Image>
  302. <!--Изображение для сворачивания формы-->
  303. <Image x:Name="Image_colapso"
  304. Width="25"
  305. Height="25"
  306. HorizontalAlignment="Right"
  307. Margin="0 0 40 0"
  308. MouseDown="Image_colapso_MouseDown">
  309. <Image.Effect>
  310. <DropShadowEffect Direction="270" BlurRadius="10"/>
  311. </Image.Effect>
  312. <Image.Style>
  313. <Style TargetType="{x:Type Image}">
  314. <Setter Property="Source" Value="Resources/Images/colapsoOne.png"/>
  315. <Style.Triggers>
  316. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_colapso}"
  317. Value="True">
  318. <Setter Property="Source" Value="Resources/Images/colapsoTwo.png"/>
  319. </DataTrigger>
  320. </Style.Triggers>
  321. </Style>
  322. </Image.Style>
  323. </Image>
  324. </Grid>
  325. <!--* Заголовок для названия формы *-->
  326. <Grid Name="Header"
  327. Grid.Row="1">
  328. <!--Метка заголовка-->
  329. <Label Content="Регистрация"
  330. HorizontalAlignment="Center"
  331. Foreground="Black"
  332. FontFamily="Fregat"
  333. FontSize="40"
  334. Height="50"
  335. Background="White">
  336. <Label.Resources>
  337. <Style TargetType="Border">
  338. <Setter Property="CornerRadius" Value="5"/>
  339. </Style>
  340. </Label.Resources>
  341. <Label.Effect>
  342. <DropShadowEffect Direction="270" BlurRadius="10"/>
  343. </Label.Effect>
  344. </Label>
  345. </Grid>
  346. <!--* Часть для логина *-->
  347. <Grid Name="FieldLogin"
  348. Grid.Row="2">
  349. <!--Метка логин-->
  350. <Label Content="Логин"
  351. VerticalAlignment="Top"
  352. HorizontalAlignment="Left"
  353. FontFamily="Fregat"
  354. Foreground="White"
  355. FontSize="30"
  356. Margin="80,0,0,0"/>
  357. <!--Поле ввода логина-->
  358. <TextBox x:Name="textBox_InputLogin"
  359. HorizontalAlignment="Left"
  360. VerticalAlignment="Bottom"
  361. Width="280"
  362. Height="40"
  363. Margin="80,0,0,10"
  364. Padding="3,5,3,3"
  365. FontSize="25"
  366. FontFamily="Fregat"
  367. Visibility="Visible"
  368. BorderBrush="{x:Null}"
  369. SelectionBrush="#FF9A00D7"
  370. BorderThickness="3,3,3,3"
  371. TabIndex="0"
  372. Grid.ColumnSpan="2"
  373. GotFocus="textBox_InputLogin_GotFocus"
  374. LostFocus="textBox_InputLogin_LostFocus">
  375. <TextBox.Resources>
  376. <Style TargetType="Border">
  377. <Setter Property="CornerRadius" Value="5" />
  378. </Style>
  379. </TextBox.Resources>
  380. <TextBox.Effect>
  381. <DropShadowEffect Direction="270" BlurRadius="10"/>
  382. </TextBox.Effect>
  383. </TextBox>
  384. <!--Уведомления о неправильном логине-->
  385. <Label x:Name="labelErrorMessageOne_Login"
  386. Content="Ошибка. В начале не может быть числа!"
  387. HorizontalAlignment="Right"
  388. VerticalAlignment="Top"
  389. Background="Gray"
  390. Foreground="White"
  391. FontFamily="Fregat"
  392. Margin="0 0 40 0"
  393. FontSize="12"
  394. Visibility="Hidden">
  395. <Label.Resources>
  396. <Style TargetType="Border">
  397. <Setter Property="CornerRadius" Value="5"/>
  398. </Style>
  399. </Label.Resources>
  400. </Label>
  401. <Label x:Name="labelErrorMessageTwo_Login"
  402. Content="Ошибка. В начале не может быть спец. символа!"
  403. HorizontalAlignment="Right"
  404. VerticalAlignment="Top"
  405. Margin="0 0 5 0"
  406. Background="Gray"
  407. Foreground="White"
  408. FontFamily="Fregat"
  409. FontSize="12"
  410. Visibility="Hidden">
  411. <Label.Resources>
  412. <Style TargetType="Border">
  413. <Setter Property="CornerRadius" Value="5"/>
  414. </Style>
  415. </Label.Resources>
  416. </Label>
  417. <Label x:Name="labelErrorMessageThree_Login"
  418. Content="Ошибка. Такое имя уже существует!"
  419. HorizontalAlignment="Right"
  420. VerticalAlignment="Top"
  421. Margin="0 0 40 0"
  422. Foreground="White"
  423. Background="Gray"
  424. FontFamily="Fregat"
  425. FontSize="12"
  426. Visibility="Hidden">
  427. <Label.Resources>
  428. <Style TargetType="Border">
  429. <Setter Property="CornerRadius" Value="5"/>
  430. </Style>
  431. </Label.Resources>
  432. </Label>
  433. <Label x:Name="labelErrorMessageFour_Login"
  434. Content="Длина логина не может быть меньше 4 символов!"
  435. HorizontalAlignment="Right"
  436. VerticalAlignment="Top"
  437. Margin="0 0 5 0"
  438. Foreground="White"
  439. Background="Gray"
  440. FontFamily="Fregat"
  441. FontSize="12"
  442. Visibility="Hidden">
  443. <Label.Resources>
  444. <Style TargetType="Border">
  445. <Setter Property="CornerRadius" Value="5"/>
  446. </Style>
  447. </Label.Resources>
  448. </Label>
  449. <Label x:Name="labelErrorMessageFive_Login"
  450. Content="Ошибка. В логине не должны быть пробелы!"
  451. HorizontalAlignment="Right"
  452. VerticalAlignment="Top"
  453. Margin="0 0 20 0"
  454. Background="Gray"
  455. Foreground="White"
  456. FontFamily="Fregat"
  457. FontSize="12"
  458. Visibility="Hidden">
  459. <Label.Resources>
  460. <Style TargetType="Border">
  461. <Setter Property="CornerRadius" Value="5"/>
  462. </Style>
  463. </Label.Resources>
  464. </Label>
  465. <Polygon x:Name="ErrorMessagePolygon_Login"
  466. Width="50"
  467. Height="50"
  468. HorizontalAlignment="Right"
  469. VerticalAlignment="Top"
  470. Margin="0 -15 170 0"
  471. Fill="Gray"
  472. Points="15,35, 35,35 25,45"
  473. Visibility="Hidden"/>
  474. </Grid>
  475. <!--* Часть для почты *-->
  476. <Grid Name="FieldEmail"
  477. Grid.Row="3">
  478. <!--Метка почта-->
  479. <Label Content="Почта"
  480. VerticalAlignment="Top"
  481. HorizontalAlignment="Left"
  482. FontFamily="Fregat"
  483. Foreground="White"
  484. FontSize="30"
  485. Margin="80 0 0 0"/>
  486. <!--Поле ввода почты-->
  487. <TextBox x:Name="textBox_InputMail"
  488. HorizontalAlignment="Left"
  489. VerticalAlignment="Bottom"
  490. Margin="80 0 0 10"
  491. Width="280"
  492. Height="40"
  493. UndoLimit="12"
  494. Padding="3,5,3,3"
  495. FontFamily="Fregat"
  496. FontSize="25"
  497. BorderBrush="{x:Null}"
  498. BorderThickness="3"
  499. SelectionBrush="#FF9A00D7"
  500. TabIndex="1"
  501. LostFocus="textBox_InputMail_LostFocus"
  502. GotFocus="textBox_InputMail_GotFocus">
  503. <TextBox.Resources>
  504. <Style TargetType="{x:Type Border}">
  505. <Setter Property="CornerRadius" Value="5" />
  506. </Style>
  507. </TextBox.Resources>
  508. <TextBox.Effect>
  509. <DropShadowEffect Direction="270" BlurRadius="10"/>
  510. </TextBox.Effect>
  511. </TextBox>
  512. <!--Уведомления о неверно введенной почте-->
  513. <Label x:Name="labelErrorMessageOne_Mail"
  514. Content="Ошибка. Неверный формат почты!"
  515. HorizontalAlignment="Right"
  516. VerticalAlignment="Top"
  517. Margin="0 0 40 0"
  518. Background="Gray"
  519. Foreground="White"
  520. FontFamily="Fregat"
  521. FontSize="12"
  522. Visibility="Hidden">
  523. <Label.Resources>
  524. <Style TargetType="Border">
  525. <Setter Property="CornerRadius" Value="5"/>
  526. </Style>
  527. </Label.Resources>
  528. </Label>
  529. <Label x:Name="labelErrorMessageTwo_Mail"
  530. Content="Данная почта уже существует"
  531. HorizontalAlignment="Right"
  532. VerticalAlignment="Top"
  533. Margin="0 0 40 0"
  534. Background="Gray"
  535. Foreground="White"
  536. FontFamily="Fregat"
  537. FontSize="12"
  538. Visibility="Hidden">
  539. <Label.Resources>
  540. <Style TargetType="Border">
  541. <Setter Property="CornerRadius" Value="5"/>
  542. </Style>
  543. </Label.Resources>
  544. </Label>
  545. <Polygon x:Name="ErrorMessagePolygon_Mail"
  546. Width="50"
  547. Height="50"
  548. HorizontalAlignment="Right"
  549. VerticalAlignment="Top"
  550. Margin="0 -15 170 0"
  551. Fill="Gray"
  552. Points="15,35, 35,35 25,45"
  553. Visibility="Hidden"/>
  554. </Grid>
  555. <!--* Часть для пароля *-->
  556. <Grid Name="FieldPassword1"
  557. Grid.Row="4">
  558. <!--Метка пароль-->
  559. <Label Content="Пароль"
  560. HorizontalAlignment="Left"
  561. VerticalAlignment="Top"
  562. FontFamily="Fregat"
  563. Foreground="White"
  564. FontSize="30"
  565. Margin="80 -3 0 0"/>
  566. <!--Поле ввода пароля-->
  567. <PasswordBox x:Name="passwordBox_InputPass1"
  568. HorizontalAlignment="Left"
  569. VerticalAlignment="Bottom"
  570. Margin="80 0 0 10"
  571. Width="280"
  572. Height="40"
  573. Padding="3,3,41,3"
  574. FontFamily="Fregat"
  575. FontSize="25"
  576. BorderBrush="{x:Null}"
  577. BorderThickness="3"
  578. SelectionBrush="#FF9A00D7"
  579. TabIndex="2"
  580. PasswordChar="●"
  581. LostFocus="passwordBox_InputPass1_LostFocus"
  582. GotFocus="passwordBox_InputPass1_GotFocus">
  583. <PasswordBox.Effect>
  584. <DropShadowEffect Direction="270" BlurRadius="10"/>
  585. </PasswordBox.Effect>
  586. <PasswordBox.Style>
  587. <Style TargetType="{x:Type PasswordBox}">
  588. <Style.Resources>
  589. <Style TargetType="Border">
  590. <Setter Property="CornerRadius" Value="5" />
  591. </Style>
  592. </Style.Resources>
  593. <Setter Property="Template">
  594. <Setter.Value>
  595. <ControlTemplate TargetType="{x:Type PasswordBox}">
  596. <Border x:Name="border"
  597. CornerRadius="5"
  598. BorderBrush="{TemplateBinding BorderBrush}"
  599. BorderThickness="{TemplateBinding BorderThickness}"
  600. Background="{TemplateBinding Background}"
  601. SnapsToDevicePixels="True">
  602. <ScrollViewer x:Name="PART_ContentHost"
  603. Focusable="false"
  604. HorizontalScrollBarVisibility="Hidden"
  605. VerticalScrollBarVisibility="Hidden"/>
  606. </Border>
  607. <ControlTemplate.Triggers>
  608. <Trigger Property="IsEnabled"
  609. Value="false">
  610. <Setter Property="Opacity"
  611. TargetName="border"
  612. Value="0.56"/>
  613. </Trigger>
  614. <Trigger Property="IsMouseOver"
  615. Value="true">
  616. <Setter Property="BorderBrush"
  617. TargetName="border"
  618. Value="#FF7EB4EA"/>
  619. </Trigger>
  620. <Trigger Property="IsKeyboardFocused"
  621. Value="true">
  622. <Setter Property="BorderBrush"
  623. TargetName="border"
  624. Value="#FF569DE5"/>
  625. </Trigger>
  626. </ControlTemplate.Triggers>
  627. </ControlTemplate>
  628. </Setter.Value>
  629. </Setter>
  630. <Style.Triggers>
  631. <MultiTrigger>
  632. <MultiTrigger.Conditions>
  633. <Condition Property="IsInactiveSelectionHighlightEnabled"
  634. Value="true"/>
  635. <Condition Property="IsSelectionActive"
  636. Value="false"/>
  637. </MultiTrigger.Conditions>
  638. <Setter Property="SelectionBrush"
  639. Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  640. </MultiTrigger>
  641. </Style.Triggers>
  642. </Style>
  643. </PasswordBox.Style>
  644. </PasswordBox>
  645. <!--TextBox для отображения пароля-->
  646. <TextBox x:Name="textBox_OutputPass1"
  647. HorizontalAlignment="Left"
  648. VerticalAlignment="Bottom"
  649. Margin="80 0 0 10"
  650. Width="280"
  651. Height="40"
  652. Padding="3,5,41,3"
  653. FontFamily="Fregat"
  654. FontSize="25"
  655. BorderBrush="{x:Null}"
  656. BorderThickness="3"
  657. SelectionBrush="#FF9A00D7"
  658. Visibility="Hidden">
  659. <TextBox.Resources>
  660. <Style TargetType="{x:Type Border}">
  661. <Setter Property="CornerRadius" Value="5" />
  662. </Style>
  663. </TextBox.Resources>
  664. </TextBox>
  665. <!--Глаз для скрытия пароля-->
  666. <Image x:Name="Image_EyeHide1"
  667. Width="35"
  668. Height="35"
  669. Margin="322,38,83,12"
  670. MouseDown="Image_EyeHide1_MouseDown"
  671. Visibility="Visible">
  672. <Image.Style>
  673. <Style TargetType="{x:Type Image}">
  674. <Setter Property="Source" Value="Resources/Images/eye_hideBlack.png"/>
  675. <Style.Triggers>
  676. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeHide1}"
  677. Value="True">
  678. <Setter Property="Source" Value="Resources/Images/eye_hideGreen.png"/>
  679. </DataTrigger>
  680. </Style.Triggers>
  681. </Style>
  682. </Image.Style>
  683. </Image>
  684. <!--Глаз для отображения пароля-->
  685. <Image x:Name="Image_EyeVisible1"
  686. Width="35"
  687. Height="35"
  688. Margin="322,38,83,12"
  689. MouseDown="Image_EyeVisible1_MouseDown"
  690. Visibility="Hidden">
  691. <Image.Style>
  692. <Style TargetType="{x:Type Image}">
  693. <Setter Property="Source" Value="Resources/Images/eye_visibleBlack.png"/>
  694. <Style.Triggers>
  695. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeVisible1}"
  696. Value="True">
  697. <Setter Property="Source" Value="Resources/Images/eye_visibleGreen.png"/>
  698. </DataTrigger>
  699. </Style.Triggers>
  700. </Style>
  701. </Image.Style>
  702. </Image>
  703. <!--Уведомления о неверно введенном пароле-->
  704. <Label x:Name="labelErrorMessageOne_Pass1"
  705. Content="В пароле присутствует кириллица"
  706. HorizontalAlignment="Right"
  707. VerticalAlignment="Top"
  708. Background="Gray"
  709. Margin="0 0 50 0"
  710. FontFamily="Fregat"
  711. Foreground="White"
  712. FontSize="12"
  713. Visibility="Hidden">
  714. <Label.Resources>
  715. <Style TargetType="Border">
  716. <Setter Property="CornerRadius" Value="5"/>
  717. </Style>
  718. </Label.Resources>
  719. </Label>
  720. <Label x:Name="labelErrorMessageTwo_Pass1"
  721. Content="Ошибка. Длина пароля меньше 7 символов!"
  722. HorizontalAlignment="Right"
  723. VerticalAlignment="Top"
  724. Margin="0 0 10 0"
  725. FontSize="12"
  726. Background="Gray"
  727. Foreground="White"
  728. FontFamily="Fregat"
  729. Visibility="Hidden">
  730. <Label.Resources>
  731. <Style TargetType="Border">
  732. <Setter Property="CornerRadius" Value="5"/>
  733. </Style>
  734. </Label.Resources>
  735. </Label>
  736. <Label x:Name="labelErrorMessageThree_Pass1"
  737. Content="Ошибка. В пароле не должны быть пробелы!"
  738. HorizontalAlignment="Right"
  739. VerticalAlignment="Top"
  740. Margin="0 0 10 0"
  741. FontSize="12"
  742. Background="Gray"
  743. Foreground="White"
  744. FontFamily="Fregat"
  745. Visibility="Hidden">
  746. <Label.Resources>
  747. <Style TargetType="Border">
  748. <Setter Property="CornerRadius" Value="5"/>
  749. </Style>
  750. </Label.Resources>
  751. </Label>
  752. <Polygon x:Name="ErrorMessagePolygon_Pass1"
  753. Width="50"
  754. Height="50"
  755. HorizontalAlignment="Right"
  756. VerticalAlignment="Top"
  757. Margin="0 -15 170 0"
  758. Fill="Gray"
  759. Points="15,35, 35,35 25,45"
  760. Visibility="Hidden"/>
  761. </Grid>
  762. <!--* Часть для повторного пароля *-->
  763. <Grid Name="FieldPassword2"
  764. Grid.Row="5">
  765. <!--Метка повторите пароль-->
  766. <Label Content="Повторите пароль"
  767. HorizontalAlignment="Left"
  768. VerticalAlignment="Top"
  769. FontFamily="Fregat"
  770. Foreground="White"
  771. FontSize="30"
  772. Margin="80 -3 0 0"/>
  773. <!--Поле для ввода повторного пароля-->
  774. <PasswordBox x:Name="passwordBox_InputPass2"
  775. HorizontalAlignment="Left"
  776. VerticalAlignment="Bottom"
  777. Margin="80 0 0 10"
  778. Width="280"
  779. Height="40"
  780. Padding="3,3,41,3"
  781. FontFamily="Fregat"
  782. FontSize="25"
  783. BorderBrush="{x:Null}"
  784. BorderThickness="3"
  785. SelectionBrush="#FF9A00D7"
  786. TabIndex="3"
  787. PasswordChar="●"
  788. LostFocus="passwordBox_InputPass2_LostFocus"
  789. GotFocus="passwordBox_InputPass2_GotFocus">
  790. <PasswordBox.Effect>
  791. <DropShadowEffect Direction="270" BlurRadius="10"/>
  792. </PasswordBox.Effect>
  793. <PasswordBox.Style>
  794. <Style TargetType="{x:Type PasswordBox}">
  795. <Style.Resources>
  796. <Style TargetType="Border">
  797. <Setter Property="CornerRadius"
  798. Value="5" />
  799. </Style>
  800. </Style.Resources>
  801. <Setter Property="Template">
  802. <Setter.Value>
  803. <ControlTemplate TargetType="{x:Type PasswordBox}">
  804. <Border x:Name="border"
  805. CornerRadius="5"
  806. BorderBrush="{TemplateBinding BorderBrush}"
  807. BorderThickness="{TemplateBinding BorderThickness}"
  808. Background="{TemplateBinding Background}"
  809. SnapsToDevicePixels="True">
  810. <ScrollViewer x:Name="PART_ContentHost"
  811. Focusable="false"
  812. HorizontalScrollBarVisibility="Hidden"
  813. VerticalScrollBarVisibility="Hidden"/>
  814. </Border>
  815. <ControlTemplate.Triggers>
  816. <Trigger Property="IsEnabled"
  817. Value="false">
  818. <Setter Property="Opacity"
  819. TargetName="border"
  820. Value="0.56"/>
  821. </Trigger>
  822. <Trigger Property="IsMouseOver"
  823. Value="true">
  824. <Setter Property="BorderBrush"
  825. TargetName="border"
  826. Value="#FF7EB4EA"/>
  827. </Trigger>
  828. <Trigger Property="IsKeyboardFocused"
  829. Value="true">
  830. <Setter Property="BorderBrush"
  831. TargetName="border"
  832. Value="#FF569DE5"/>
  833. </Trigger>
  834. </ControlTemplate.Triggers>
  835. </ControlTemplate>
  836. </Setter.Value>
  837. </Setter>
  838. <Style.Triggers>
  839. <MultiTrigger>
  840. <MultiTrigger.Conditions>
  841. <Condition Property="IsInactiveSelectionHighlightEnabled"
  842. Value="true"/>
  843. <Condition Property="IsSelectionActive"
  844. Value="false"/>
  845. </MultiTrigger.Conditions>
  846. <Setter Property="SelectionBrush"
  847. Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  848. </MultiTrigger>
  849. </Style.Triggers>
  850. </Style>
  851. </PasswordBox.Style>
  852. </PasswordBox>
  853. <!--TextBox для отображения повторного пароля-->
  854. <TextBox x:Name="textBox_OutputPass2"
  855. HorizontalAlignment="Left"
  856. VerticalAlignment="Bottom"
  857. Margin="80 0 0 10"
  858. Width="280"
  859. Height="40"
  860. Padding="3,5,41,3"
  861. FontFamily="Fregat"
  862. FontSize="25"
  863. BorderBrush="{x:Null}"
  864. BorderThickness="3"
  865. SelectionBrush="#FF9A00D7"
  866. Visibility="Hidden">
  867. <TextBox.Resources>
  868. <Style TargetType="{x:Type Border}">
  869. <Setter Property="CornerRadius" Value="5" />
  870. </Style>
  871. </TextBox.Resources>
  872. </TextBox>
  873. <!--Глаз для скрытия повторного пароля-->
  874. <Image x:Name="Image_EyeHide2"
  875. Width="35"
  876. Height="35"
  877. Margin="322,38,83,12"
  878. MouseDown="Image_EyeHide2_MouseDown"
  879. Visibility="Visible">
  880. <Image.Style>
  881. <Style TargetType="{x:Type Image}">
  882. <Setter Property="Source" Value="Resources/Images/eye_hideBlack.png"/>
  883. <Style.Triggers>
  884. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeHide2}"
  885. Value="True">
  886. <Setter Property="Source" Value="Resources/Images/eye_hideGreen.png"/>
  887. </DataTrigger>
  888. </Style.Triggers>
  889. </Style>
  890. </Image.Style>
  891. </Image>
  892. <!--Глаз для отображения повторного пароля-->
  893. <Image x:Name="Image_EyeVisible2"
  894. Width="35"
  895. Height="35"
  896. Margin="322,38,83,12"
  897. MouseDown="Image_EyeVisible2_MouseDown"
  898. Visibility="Hidden">
  899. <Image.Style>
  900. <Style TargetType="{x:Type Image}">
  901. <Setter Property="Source" Value="Resources/Images/eye_visibleBlack.png"/>
  902. <Style.Triggers>
  903. <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeVisible2}"
  904. Value="True">
  905. <Setter Property="Source" Value="Resources/Images/eye_visibleGreen.png"/>
  906. </DataTrigger>
  907. </Style.Triggers>
  908. </Style>
  909. </Image.Style>
  910. </Image>
  911. <!--Уведомление: Пароль не совпадает-->
  912. <Label x:Name="labelErrorMessage_Pass2"
  913. Content="?"
  914. HorizontalAlignment="Left"
  915. VerticalAlignment="Top"
  916. Margin="50 38 0 0"
  917. Foreground="White"
  918. FontFamily="Fregat"
  919. BorderBrush="Red"
  920. BorderThickness="2"
  921. FontSize="20"
  922. Visibility="Hidden">
  923. <Label.Resources>
  924. <Style TargetType= "Border">
  925. <Setter Property="CornerRadius" Value="5"/>
  926. </Style>
  927. </Label.Resources>
  928. </Label>
  929. </Grid>
  930. <!--* Часть для имени *-->
  931. <Grid Name="FieldName"
  932. Grid.Row="6">
  933. <!--Метка имя-->
  934. <Label Content="Имя"
  935. HorizontalAlignment="Left"
  936. VerticalAlignment="Top"
  937. FontFamily="Fregat"
  938. Foreground="White"
  939. FontSize="30"
  940. Margin="80 0 0 0"/>
  941. <!--Поле ввода имени-->
  942. <TextBox x:Name="textBox_Input_FName"
  943. HorizontalAlignment="Left"
  944. VerticalAlignment="Bottom"
  945. Margin="80 0 0 10"
  946. Width="280"
  947. Height="40"
  948. Padding="3,5,3,3"
  949. FontFamily="Fregat"
  950. FontSize="25"
  951. BorderBrush="{x:Null}"
  952. BorderThickness="3"
  953. SelectionBrush="#FF9A00D7"
  954. LostFocus="textBox_Input_FName_LostFocus"
  955. GotFocus="textBox_Input_FName_GotFocus"
  956. KeyDown="textBox_Input_FName_KeyDown"
  957. TabIndex="4">
  958. <TextBox.Resources>
  959. <Style TargetType="Border">
  960. <Setter Property="CornerRadius"
  961. Value="5" />
  962. </Style>
  963. </TextBox.Resources>
  964. <TextBox.Effect>
  965. <DropShadowEffect Direction="270" BlurRadius="10"/>
  966. </TextBox.Effect>
  967. </TextBox>
  968. <!--Уведомление о неверном имени-->
  969. <Label x:Name="labelErrorMessageOne_Name"
  970. Content="Имя не может быть меньше 3 букв!"
  971. HorizontalAlignment="Right"
  972. VerticalAlignment="Top"
  973. Margin="0 0 30 0"
  974. Background="Gray"
  975. Foreground="White"
  976. FontFamily="Fregat"
  977. FontSize="12"
  978. Visibility="Hidden">
  979. <Label.Resources>
  980. <Style TargetType= "Border">
  981. <Setter Property="CornerRadius" Value="5"/>
  982. </Style>
  983. </Label.Resources>
  984. </Label>
  985. <Label x:Name="labelErrorMessageTwo_Name"
  986. Content="Ошибка. Необходимо убрать пробелы!"
  987. HorizontalAlignment="Right"
  988. VerticalAlignment="Top"
  989. Background="Gray"
  990. Margin="0 0 30 0"
  991. Foreground="White"
  992. FontFamily="Fregat"
  993. FontSize="12"
  994. Visibility="Hidden">
  995. <Label.Resources>
  996. <Style TargetType= "Border">
  997. <Setter Property="CornerRadius" Value="5"/>
  998. </Style>
  999. </Label.Resources>
  1000. </Label>
  1001. <Polygon x:Name="ErrorMessagePolygon_Name"
  1002. Width="50"
  1003. Height="50"
  1004. HorizontalAlignment="Right"
  1005. VerticalAlignment="Top"
  1006. Margin="0 -15 170 0"
  1007. Fill="Gray"
  1008. Points="15,35, 35,35, 25,45"
  1009. Visibility="Hidden"/>
  1010. </Grid>
  1011. <!--* Часть для фамилии *-->
  1012. <Grid Name="FieldSurname"
  1013. Grid.Row="7">
  1014. <!--Метка фамилия-->
  1015. <Label Content="Фамилия"
  1016. HorizontalAlignment="Left"
  1017. VerticalAlignment="Top"
  1018. FontFamily="Fregat"
  1019. Foreground="White"
  1020. FontSize="30"
  1021. Margin="80 0 0 0"/>
  1022. <!--Поле ввода фамилии-->
  1023. <TextBox x:Name="textBox_Input_LName"
  1024. HorizontalAlignment="Left"
  1025. VerticalAlignment="Bottom"
  1026. Margin="80 0 0 10"
  1027. Width="280"
  1028. Height="40"
  1029. Padding="3,5,3,3"
  1030. FontFamily="Fregat"
  1031. FontSize="25"
  1032. BorderBrush="{x:Null}"
  1033. BorderThickness="3"
  1034. SelectionBrush="#FF9A00D7"
  1035. LostFocus="textBox_Input_LName_LostFocus"
  1036. GotFocus="textBox_Input_LName_GotFocus"
  1037. KeyDown="textBox_Input_LName_KeyDown"
  1038. TabIndex="5">
  1039. <TextBox.Resources>
  1040. <Style TargetType="Border">
  1041. <Setter Property="CornerRadius"
  1042. Value="5" />
  1043. </Style>
  1044. </TextBox.Resources>
  1045. <TextBox.Effect>
  1046. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1047. </TextBox.Effect>
  1048. </TextBox>
  1049. <!--Уведомление о неверной фамилии-->
  1050. <Label x:Name="labelErrorMessageOne_Surname"
  1051. Content="Фамилия не может быть меньше 3 букв"
  1052. HorizontalAlignment="Right"
  1053. VerticalAlignment="Top"
  1054. Background="Gray"
  1055. Margin="0 0 10 0"
  1056. Foreground="White"
  1057. FontFamily="Fregat"
  1058. FontSize="12"
  1059. Visibility="Hidden">
  1060. <Label.Resources>
  1061. <Style TargetType= "Border">
  1062. <Setter Property="CornerRadius" Value="5"/>
  1063. </Style>
  1064. </Label.Resources>
  1065. </Label>
  1066. <Label x:Name="labelErrorMessageTwo_Surname"
  1067. Content="Ошибка. Необходимо убрать пробелы!"
  1068. HorizontalAlignment="Right"
  1069. VerticalAlignment="Top"
  1070. Margin="0 0 10 0"
  1071. Background="Gray"
  1072. Foreground="White"
  1073. FontSize="12"
  1074. FontFamily="Fregat"
  1075. Visibility="Hidden">
  1076. <Label.Resources>
  1077. <Style TargetType= "Border">
  1078. <Setter Property="CornerRadius" Value="5"/>
  1079. </Style>
  1080. </Label.Resources>
  1081. </Label>
  1082. <Polygon x:Name="ErrorMessagePolygon_Surname"
  1083. Width="50"
  1084. Height="50"
  1085. HorizontalAlignment="Right"
  1086. VerticalAlignment="Top"
  1087. Margin="0 -15 170 0"
  1088. Fill="Gray"
  1089. Points="15,35, 35,35, 25,45"
  1090. Visibility="Hidden"/>
  1091. </Grid>
  1092. <!--* Часть для возраста *-->
  1093. <Grid Name="FieldAge"
  1094. Grid.Row="8">
  1095. <!--Метка возраст-->
  1096. <Label Content="Возраст"
  1097. HorizontalAlignment="Left"
  1098. VerticalAlignment="Top"
  1099. FontFamily="Fregat"
  1100. Foreground="White"
  1101. FontSize="30"
  1102. Margin="80 -5 0 0"/>
  1103. <!--Поле ввода возраста-->
  1104. <TextBox x:Name="textBox_InputAge"
  1105. HorizontalAlignment="Left"
  1106. VerticalAlignment="Top"
  1107. Width="120"
  1108. Height="40"
  1109. Margin="80 35 0 10"
  1110. Padding="3,5,3,3"
  1111. FontFamily="Fregat"
  1112. FontSize="25"
  1113. BorderBrush="LimeGreen"
  1114. BorderThickness="3"
  1115. Text="18"
  1116. SelectionBrush="#FF9A00D7"
  1117. KeyDown="textBox_InputAge_KeyDown"
  1118. GotFocus="textBox_InputAge_GotFocus"
  1119. LostFocus="textBox_InputAge_LostFocus"
  1120. KeyUp="textBox_InputAge_KeyUp"
  1121. TabIndex="6">
  1122. <TextBox.Resources>
  1123. <Style TargetType="Border">
  1124. <Setter Property="CornerRadius"
  1125. Value="5 0 0 5" />
  1126. </Style>
  1127. </TextBox.Resources>
  1128. <TextBox.Effect>
  1129. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1130. </TextBox.Effect>
  1131. </TextBox>
  1132. <!--Первая кнопка для повышения возраста-->
  1133. <Button Style="{DynamicResource CustomButtonPlus}"
  1134. x:Name="buttonUp"
  1135. HorizontalAlignment="Center"
  1136. VerticalAlignment="Top"
  1137. FontFamily="Fregat"
  1138. Foreground="Black"
  1139. FontSize="30"
  1140. Content="+"
  1141. Height="40"
  1142. Width="30"
  1143. Margin="-5 35 0 10"
  1144. BorderThickness="3"
  1145. BorderBrush="Gray"
  1146. Click="buttonUp_Click"
  1147. TabIndex="7">
  1148. <Button.Effect>
  1149. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1150. </Button.Effect>
  1151. </Button>
  1152. <!--Вторая кнопка для понижения возраста-->
  1153. <Button Style="{DynamicResource CustomButtonMinus}"
  1154. x:Name="buttonDown"
  1155. HorizontalAlignment="Center"
  1156. VerticalAlignment="Top"
  1157. FontFamily="Fregat"
  1158. Foreground="Black"
  1159. FontSize="35"
  1160. Content="-"
  1161. Height="40"
  1162. Width="30"
  1163. Margin="60 35 0 10"
  1164. BorderThickness="3"
  1165. BorderBrush="Gray"
  1166. Click="buttonDown_Click"
  1167. TabIndex="8">
  1168. <Button.Resources>
  1169. <Style TargetType="Border">
  1170. <Setter Property="CornerRadius"
  1171. Value="0 5 5 0"/>
  1172. </Style>
  1173. </Button.Resources>
  1174. <Button.Effect>
  1175. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1176. </Button.Effect>
  1177. </Button>
  1178. <!--Уведомление о неверном вводе возраста-->
  1179. <Label x:Name="labelErrorMessage_Age"
  1180. Content="Возраст указывается от 6 до 90 лет!"
  1181. HorizontalAlignment="Left"
  1182. VerticalAlignment="Bottom"
  1183. Margin="30 0 0 0"
  1184. Foreground="White"
  1185. Background="Gray"
  1186. FontFamily="Fregat"
  1187. FontSize="12"
  1188. Visibility="Hidden">
  1189. <Label.Resources>
  1190. <Style TargetType= "Border">
  1191. <Setter Property="CornerRadius" Value="5"/>
  1192. </Style>
  1193. </Label.Resources>
  1194. </Label>
  1195. <Polygon x:Name="ErrorMessagePolygon_Age"
  1196. Width="50"
  1197. Height="50"
  1198. HorizontalAlignment="Left"
  1199. VerticalAlignment="Bottom"
  1200. Margin="90,0,0,-15"
  1201. Fill="Gray"
  1202. Points="15,35, 35,35, 25,45"
  1203. RenderTransformOrigin="0.5,0.5"
  1204. Visibility="Hidden">
  1205. <Polygon.RenderTransform>
  1206. <TransformGroup>
  1207. <ScaleTransform/>
  1208. <SkewTransform/>
  1209. <RotateTransform Angle="180.132"/>
  1210. <TranslateTransform/>
  1211. </TransformGroup>
  1212. </Polygon.RenderTransform>
  1213. </Polygon>
  1214. </Grid>
  1215. <!--* Часть для основных кнопок *-->
  1216. <Grid Name="BaseButtons"
  1217. Grid.Row="9">
  1218. <Grid.ColumnDefinitions>
  1219. <ColumnDefinition Width="44*"/>
  1220. <ColumnDefinition Width="103*"/>
  1221. </Grid.ColumnDefinitions>
  1222. <!--* Кнопка Готово *-->
  1223. <Button Style="{DynamicResource CustomButtonReady}"
  1224. x:Name="button_ready"
  1225. HorizontalAlignment="Left"
  1226. VerticalAlignment="Center"
  1227. Height="40"
  1228. Width="92"
  1229. Content="Готово"
  1230. Foreground="White"
  1231. FontSize="20"
  1232. Margin="94,0,0,0"
  1233. BorderThickness="3"
  1234. FontFamily="Fregat"
  1235. BorderBrush="Gray"
  1236. Click="button_ready_Click"
  1237. Grid.Column="1"
  1238. TabIndex="9">
  1239. <Button.Background>
  1240. <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
  1241. <GradientStop Color="#282c36" Offset="0.0"/>
  1242. <GradientStop Color="#FF661579" Offset="0.5"/>
  1243. <GradientStop Color="#282c36" Offset="1.0"/>
  1244. </LinearGradientBrush>
  1245. </Button.Background>
  1246. <Button.Resources>
  1247. <Style TargetType="Border">
  1248. <Setter Property="CornerRadius"
  1249. Value="5"/>
  1250. </Style>
  1251. </Button.Resources>
  1252. <Button.Effect>
  1253. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1254. </Button.Effect>
  1255. </Button>
  1256. <!--* Кнопка Назад *-->
  1257. <Button Style="{DynamicResource CustomButtonBack}"
  1258. x:Name="button_backOnUserVerification"
  1259. HorizontalAlignment="Left"
  1260. VerticalAlignment="Center"
  1261. Height="40"
  1262. Width="90"
  1263. Content="Назад"
  1264. Foreground="White"
  1265. BorderThickness="3"
  1266. FontSize="20"
  1267. FontFamily="Fregat"
  1268. BorderBrush="Gray"
  1269. Click="button_backOnUserVerification_Click"
  1270. TabIndex="10" Margin="126,0,0,0" Grid.ColumnSpan="2">
  1271. <Button.Background>
  1272. <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
  1273. <GradientStop Color="#282c36" Offset="0.0"/>
  1274. <GradientStop Color="#FF661579" Offset="0.5"/>
  1275. <GradientStop Color="#282c36" Offset="1.0"/>
  1276. </LinearGradientBrush>
  1277. </Button.Background>
  1278. <Button.Resources>
  1279. <Style TargetType="Border">
  1280. <Setter Property="CornerRadius"
  1281. Value="5"/>
  1282. </Style>
  1283. </Button.Resources>
  1284. <Button.Effect>
  1285. <DropShadowEffect Direction="270" BlurRadius="10"/>
  1286. </Button.Effect>
  1287. </Button>
  1288. </Grid>
  1289. </Grid>
  1290. </Border>
  1291. </Window>