Registration.xaml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <Page x:Class="MusicSmth.Registration"
  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:MusicSmth"
  7. mc:Ignorable="d"
  8. d:DesignHeight="800" d:DesignWidth="1360"
  9. Title="Registration">
  10. <Page.Resources>
  11. <Style x:Key="DatePickerTextBoxStyle1" TargetType="{x:Type DatePickerTextBox}">
  12. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
  13. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  14. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  15. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  16. <Setter Property="Template">
  17. <Setter.Value>
  18. <ControlTemplate TargetType="{x:Type DatePickerTextBox}">
  19. <Grid>
  20. <Grid.Resources>
  21. <SolidColorBrush x:Key="WatermarkBrush" Color="#FFAAAAAA"/>
  22. </Grid.Resources>
  23. <VisualStateManager.VisualStateGroups>
  24. <VisualStateGroup x:Name="CommonStates">
  25. <VisualStateGroup.Transitions>
  26. <VisualTransition GeneratedDuration="0"/>
  27. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  28. </VisualStateGroup.Transitions>
  29. <VisualState x:Name="Normal"/>
  30. <VisualState x:Name="MouseOver">
  31. <Storyboard>
  32. <ColorAnimation Duration="0" Storyboard.TargetName="ContentElement" To="#FF99C1E2" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"/>
  33. <ColorAnimation Duration="0" Storyboard.TargetName="watermark_decorator" To="#FF99C1E2" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"/>
  34. </Storyboard>
  35. </VisualState>
  36. </VisualStateGroup>
  37. <VisualStateGroup x:Name="WatermarkStates">
  38. <VisualStateGroup.Transitions>
  39. <VisualTransition GeneratedDuration="0"/>
  40. </VisualStateGroup.Transitions>
  41. <VisualState x:Name="Unwatermarked"/>
  42. <VisualState x:Name="Watermarked">
  43. <Storyboard>
  44. <DoubleAnimation Duration="0" Storyboard.TargetName="ContentElement" To="0" Storyboard.TargetProperty="Opacity"/>
  45. <DoubleAnimation Duration="0" Storyboard.TargetName="PART_Watermark" To="1" Storyboard.TargetProperty="Opacity"/>
  46. </Storyboard>
  47. </VisualState>
  48. </VisualStateGroup>
  49. <VisualStateGroup x:Name="FocusStates">
  50. <VisualStateGroup.Transitions>
  51. <VisualTransition GeneratedDuration="0"/>
  52. </VisualStateGroup.Transitions>
  53. <VisualState x:Name="Unfocused"/>
  54. <VisualState x:Name="Focused">
  55. <Storyboard>
  56. <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" To="1" Storyboard.TargetProperty="Opacity"/>
  57. </Storyboard>
  58. </VisualState>
  59. </VisualStateGroup>
  60. </VisualStateManager.VisualStateGroups>
  61. <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" Opacity="1" Padding="{TemplateBinding Padding}">
  62. <Grid x:Name="WatermarkContent" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  63. <Border x:Name="ContentElement" BorderBrush="#FFFFFFFF" BorderThickness="1"/>
  64. <Border x:Name="watermark_decorator" BorderBrush="#FFFFFFFF" BorderThickness="1" Width="0">
  65. <ContentControl x:Name="PART_Watermark" Focusable="False" IsHitTestVisible="False" Opacity="0" Padding="2"/>
  66. </Border>
  67. <ScrollViewer x:Name="PART_ContentHost" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
  68. <Border x:Name="FocusVisual" BorderBrush="#FF45D6FA" CornerRadius="1" IsHitTestVisible="False" Opacity="0"/>
  69. </Grid>
  70. </Border>
  71. </Grid>
  72. </ControlTemplate>
  73. </Setter.Value>
  74. </Setter>
  75. </Style>
  76. <Style x:Key="DatePickerStyle1" TargetType="{x:Type DatePicker}">
  77. <Setter Property="Foreground" Value="#FF333333"/>
  78. <Setter Property="IsTodayHighlighted" Value="True"/>
  79. <Setter Property="SelectedDateFormat" Value="Short"/>
  80. <Setter Property="Background" Value="Transparent"/>
  81. <Setter Property="Padding" Value="2"/>
  82. <Setter Property="BorderBrush">
  83. <Setter.Value>
  84. <LinearGradientBrush EndPoint=".5,0" StartPoint=".5,1">
  85. <GradientStop Color="#FFA3AEB9" Offset="0"/>
  86. <GradientStop Color="#FF8399A9" Offset="0.375"/>
  87. <GradientStop Color="#FF718597" Offset="0.375"/>
  88. <GradientStop Color="#FF617584" Offset="1"/>
  89. </LinearGradientBrush>
  90. </Setter.Value>
  91. </Setter>
  92. <Setter Property="BorderThickness" Value="1"/>
  93. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  94. <Setter Property="Template">
  95. <Setter.Value>
  96. <ControlTemplate TargetType="{x:Type DatePicker}">
  97. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
  98. <VisualStateManager.VisualStateGroups>
  99. <VisualStateGroup x:Name="CommonStates">
  100. <VisualState x:Name="Normal"/>
  101. <VisualState x:Name="Disabled">
  102. <Storyboard>
  103. <DoubleAnimation Duration="0" Storyboard.TargetName="PART_DisabledVisual" To="1" Storyboard.TargetProperty="Opacity"/>
  104. </Storyboard>
  105. </VisualState>
  106. </VisualStateGroup>
  107. </VisualStateManager.VisualStateGroups>
  108. <Grid x:Name="PART_Root" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  109. <Grid.Resources>
  110. <SolidColorBrush x:Key="DisabledBrush" Color="#A5FFFFFF"/>
  111. <ControlTemplate x:Key="DropDownButtonTemplate" TargetType="{x:Type Button}">
  112. <Grid>
  113. <VisualStateManager.VisualStateGroups>
  114. <VisualStateGroup x:Name="CommonStates">
  115. <VisualStateGroup.Transitions>
  116. <VisualTransition GeneratedDuration="0"/>
  117. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  118. <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/>
  119. </VisualStateGroup.Transitions>
  120. <VisualState x:Name="Normal"/>
  121. <VisualState x:Name="MouseOver">
  122. <Storyboard>
  123. <ColorAnimation Duration="0" Storyboard.TargetName="Background" To="#FF448DCA" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"/>
  124. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
  125. <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
  126. </ColorAnimationUsingKeyFrames>
  127. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
  128. <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
  129. </ColorAnimationUsingKeyFrames>
  130. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  131. <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
  132. </ColorAnimationUsingKeyFrames>
  133. </Storyboard>
  134. </VisualState>
  135. <VisualState x:Name="Pressed">
  136. <Storyboard>
  137. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
  138. <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA"/>
  139. </ColorAnimationUsingKeyFrames>
  140. <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
  141. <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
  142. </DoubleAnimationUsingKeyFrames>
  143. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  144. <SplineColorKeyFrame KeyTime="0" Value="#EAFFFFFF"/>
  145. </ColorAnimationUsingKeyFrames>
  146. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
  147. <SplineColorKeyFrame KeyTime="0" Value="#C6FFFFFF"/>
  148. </ColorAnimationUsingKeyFrames>
  149. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
  150. <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/>
  151. </ColorAnimationUsingKeyFrames>
  152. <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
  153. <SplineColorKeyFrame KeyTime="0" Value="#F4FFFFFF"/>
  154. </ColorAnimationUsingKeyFrames>
  155. </Storyboard>
  156. </VisualState>
  157. <VisualState x:Name="Disabled"/>
  158. </VisualStateGroup>
  159. </VisualStateManager.VisualStateGroups>
  160. <Grid Background="#11FFFFFF" FlowDirection="LeftToRight" HorizontalAlignment="Center" Height="18" Margin="0" VerticalAlignment="Center" Width="19">
  161. <Grid.ColumnDefinitions>
  162. <ColumnDefinition Width="20*"/>
  163. <ColumnDefinition Width="20*"/>
  164. <ColumnDefinition Width="20*"/>
  165. <ColumnDefinition Width="20*"/>
  166. </Grid.ColumnDefinitions>
  167. <Grid.RowDefinitions>
  168. <RowDefinition Height="23*"/>
  169. <RowDefinition Height="19*"/>
  170. <RowDefinition Height="19*"/>
  171. <RowDefinition Height="19*"/>
  172. </Grid.RowDefinitions>
  173. <Border x:Name="Highlight" BorderBrush="#FF45D6FA" BorderThickness="1" CornerRadius="0,0,1,1" Grid.ColumnSpan="4" Margin="-1" Opacity="0" Grid.RowSpan="4" Grid.Row="0"/>
  174. <Border x:Name="Background" Background="#FF1F3B53" BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius=".5" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="1" Grid.RowSpan="3" Grid.Row="1"/>
  175. <Border x:Name="BackgroundGradient" BorderBrush="#BF000000" BorderThickness="1" CornerRadius=".5" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="1" Grid.RowSpan="3" Grid.Row="1">
  176. <Border.Background>
  177. <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
  178. <GradientStop Color="#FFFFFFFF" Offset="0"/>
  179. <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
  180. <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
  181. <GradientStop Color="#C6FFFFFF" Offset="1"/>
  182. </LinearGradientBrush>
  183. </Border.Background>
  184. </Border>
  185. <Rectangle Grid.ColumnSpan="4" Grid.RowSpan="1" StrokeThickness="1">
  186. <Rectangle.Fill>
  187. <LinearGradientBrush EndPoint="0.3,-1.1" StartPoint="0.46,1.6">
  188. <GradientStop Color="#FF4084BD"/>
  189. <GradientStop Color="#FFAFCFEA" Offset="1"/>
  190. </LinearGradientBrush>
  191. </Rectangle.Fill>
  192. <Rectangle.Stroke>
  193. <LinearGradientBrush EndPoint="0.48,-1" StartPoint="0.48,1.25">
  194. <GradientStop Color="#FF494949"/>
  195. <GradientStop Color="#FF9F9F9F" Offset="1"/>
  196. </LinearGradientBrush>
  197. </Rectangle.Stroke>
  198. </Rectangle>
  199. <Path Grid.Column="0" Grid.ColumnSpan="4" Data="M11.426758,8.4305077 L11.749023,8.4305077 L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648 L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878 10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936 L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293 C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416 18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808 16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504 L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723 C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618 17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271 15.016094,12.491055 L14.65086,12.238613 z" Fill="#FF2F2F2F" HorizontalAlignment="Center" Margin="4,3,4,3" RenderTransformOrigin="0.5,0.5" Grid.RowSpan="3" Grid.Row="1" Stretch="Fill" VerticalAlignment="Center"/>
  200. <Ellipse Grid.ColumnSpan="4" Fill="#FFFFFFFF" HorizontalAlignment="Center" Height="3" StrokeThickness="0" VerticalAlignment="Center" Width="3"/>
  201. <Border x:Name="DisabledVisual" BorderBrush="#B2FFFFFF" BorderThickness="1" CornerRadius="0,0,.5,.5" Grid.ColumnSpan="4" Opacity="0" Grid.RowSpan="4" Grid.Row="0"/>
  202. </Grid>
  203. </Grid>
  204. </ControlTemplate>
  205. </Grid.Resources>
  206. <Grid.ColumnDefinitions>
  207. <ColumnDefinition Width="*"/>
  208. <ColumnDefinition Width="Auto"/>
  209. </Grid.ColumnDefinitions>
  210. <Button x:Name="PART_Button" Grid.Column="1" Foreground="{TemplateBinding Foreground}" Focusable="False" HorizontalAlignment="Left" Margin="3,0,3,0" Grid.Row="0" Template="{StaticResource DropDownButtonTemplate}" VerticalAlignment="Top" Width="20"/>
  211. <DatePickerTextBox Style="{DynamicResource DatePickerTextBoxStyle1}" x:Name="PART_TextBox" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="Stretch" Grid.Row="0" VerticalContentAlignment="Stretch" Background="#0000"/>
  212. <Grid x:Name="PART_DisabledVisual" Grid.Column="0" Grid.ColumnSpan="2" IsHitTestVisible="False" Opacity="0" Grid.Row="0">
  213. <Grid.ColumnDefinitions>
  214. <ColumnDefinition Width="*"/>
  215. <ColumnDefinition Width="Auto"/>
  216. </Grid.ColumnDefinitions>
  217. <Rectangle Grid.Column="0" Fill="#A5FFFFFF" Grid.Row="0" RadiusX="1" RadiusY="1"/>
  218. <Rectangle Grid.Column="1" Fill="#A5FFFFFF" Height="18" Margin="3,0,3,0" Grid.Row="0" RadiusX="1" RadiusY="1" Width="19"/>
  219. <Popup x:Name="PART_Popup" AllowsTransparency="True" Placement="Bottom" PlacementTarget="{Binding ElementName=PART_TextBox}" StaysOpen="False"/>
  220. </Grid>
  221. </Grid>
  222. </Border>
  223. <ControlTemplate.Triggers>
  224. <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="false">
  225. <Setter Property="Foreground" TargetName="PART_TextBox" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
  226. </DataTrigger>
  227. </ControlTemplate.Triggers>
  228. </ControlTemplate>
  229. </Setter.Value>
  230. </Setter>
  231. </Style>
  232. <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
  233. <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
  234. <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
  235. <Style TargetType="{x:Type TextBox}">
  236. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  237. <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
  238. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  239. <Setter Property="BorderThickness" Value="1"/>
  240. <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
  241. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  242. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  243. <Setter Property="AllowDrop" Value="true"/>
  244. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  245. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  246. <Setter Property="Template">
  247. <Setter.Value>
  248. <ControlTemplate TargetType="{x:Type TextBox}">
  249. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  250. <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  251. </Border>
  252. </ControlTemplate>
  253. </Setter.Value>
  254. </Setter>
  255. <Style.Triggers>
  256. <MultiTrigger>
  257. <MultiTrigger.Conditions>
  258. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
  259. <Condition Property="IsSelectionActive" Value="false"/>
  260. </MultiTrigger.Conditions>
  261. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  262. </MultiTrigger>
  263. </Style.Triggers>
  264. </Style>
  265. <SolidColorBrush x:Key="TextBox.Static.Border1" Color="#FFABAdB3"/>
  266. <SolidColorBrush x:Key="TextBox.MouseOver.Border1" Color="#FF7EB4EA"/>
  267. <SolidColorBrush x:Key="TextBox.Focus.Border1" Color="#FF569DE5"/>
  268. <Style x:Key="PasswordBoxStyle1" TargetType="{x:Type PasswordBox}">
  269. <Setter Property="PasswordChar" Value="●"/>
  270. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  271. <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border1}"/>
  272. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  273. <Setter Property="BorderThickness" Value="1"/>
  274. <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
  275. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  276. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  277. <Setter Property="AllowDrop" Value="true"/>
  278. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  279. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  280. <Setter Property="Template">
  281. <Setter.Value>
  282. <ControlTemplate TargetType="{x:Type PasswordBox}">
  283. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  284. <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  285. </Border>
  286. </ControlTemplate>
  287. </Setter.Value>
  288. </Setter>
  289. <Style.Triggers>
  290. <MultiTrigger>
  291. <MultiTrigger.Conditions>
  292. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
  293. <Condition Property="IsSelectionActive" Value="false"/>
  294. </MultiTrigger.Conditions>
  295. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  296. </MultiTrigger>
  297. </Style.Triggers>
  298. </Style>
  299. <Style x:Key="FocusVisual">
  300. <Setter Property="Control.Template">
  301. <Setter.Value>
  302. <ControlTemplate>
  303. <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
  304. </ControlTemplate>
  305. </Setter.Value>
  306. </Setter>
  307. </Style>
  308. <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
  309. <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
  310. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
  311. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
  312. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
  313. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
  314. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
  315. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
  316. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
  317. <Style TargetType="{x:Type Button}">
  318. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
  319. <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
  320. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
  321. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  322. <Setter Property="BorderThickness" Value="1"/>
  323. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  324. <Setter Property="VerticalContentAlignment" Value="Center"/>
  325. <Setter Property="Padding" Value="1"/>
  326. <Setter Property="Template">
  327. <Setter.Value>
  328. <ControlTemplate TargetType="{x:Type Button}">
  329. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  330. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  331. </Border>
  332. <ControlTemplate.Triggers>
  333. <Trigger Property="IsDefaulted" Value="true">
  334. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  335. </Trigger>
  336. <Trigger Property="IsEnabled" Value="false">
  337. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
  338. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
  339. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
  340. </Trigger>
  341. </ControlTemplate.Triggers>
  342. </ControlTemplate>
  343. </Setter.Value>
  344. </Setter>
  345. </Style>
  346. </Page.Resources>
  347. <Grid Background="#1DB954">
  348. <Image Source="Doggie.jpg" Stretch="Fill" Opacity="0.1"></Image>
  349. <StackPanel HorizontalAlignment="Center" Margin="0,50,0,0" Orientation="Vertical">
  350. <TextBlock FontSize="36">РЕГИСТРАЦИЯ</TextBlock>
  351. </StackPanel>
  352. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Width="160">
  353. <TextBlock FontSize="20" HorizontalAlignment="Center">Логин</TextBlock>
  354. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  355. <TextBox VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Login" Background="#0000" BorderBrush="#0000" Height="25"></TextBox>
  356. </Border>
  357. <TextBlock FontSize="20" HorizontalAlignment="Center">Пароль</TextBlock>
  358. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  359. <PasswordBox Style="{DynamicResource PasswordBoxStyle1}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Pass" Background="#0000" BorderBrush="#0000" Height="25"/>
  360. </Border>
  361. <TextBlock FontSize="20" HorizontalAlignment="Center">Фамилия</TextBlock>
  362. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  363. <TextBox VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Surname" Background="#0000" BorderBrush="#0000" Height="25"></TextBox>
  364. </Border>
  365. <TextBlock FontSize="20" HorizontalAlignment="Center">Имя</TextBlock>
  366. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  367. <TextBox VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Name" Background="#0000" BorderBrush="#0000" Height="25"></TextBox>
  368. </Border>
  369. <TextBlock FontSize="20" HorizontalAlignment="Center">Отчество</TextBlock>
  370. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  371. <TextBox VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Patronymic" Background="#0000" BorderBrush="#0000" Height="25"></TextBox>
  372. </Border>
  373. <TextBlock FontSize="20" HorizontalAlignment="Center">Дата рождения</TextBlock>
  374. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  375. <DatePicker Style="{DynamicResource DatePickerStyle1}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="BirthDate" Background="#0000" BorderBrush="#0000" Height="25"></DatePicker>
  376. </Border>
  377. <TextBlock FontSize="20" HorizontalAlignment="Center">Пол</TextBlock>
  378. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  379. <RadioButton FontSize="20" GroupName="Gender" Content="М" VerticalContentAlignment="Center" Name="Male"></RadioButton>
  380. <RadioButton FontSize="20" GroupName="Gender" Content="Ж" VerticalContentAlignment="Center" Name="Female"></RadioButton>
  381. <RadioButton FontSize="20" GroupName="Gender" Content="Любой" VerticalContentAlignment="Center" Name="Any"></RadioButton>
  382. </StackPanel>
  383. </StackPanel>
  384. <StackPanel HorizontalAlignment="Center" Margin="0,0,0,70" VerticalAlignment="Bottom">
  385. <Border Background="Black" CornerRadius="10" Width="150" Height="30">
  386. <Button Click="Reg_Click" Height="23" Name="Reg" Foreground="White" Background="#0000" BorderBrush="#0000">ЗАРЕГИСТРИРОВАТЬСЯ</Button>
  387. </Border>
  388. <Button Name="GoAuth" Click="GoAuth_Click" BorderBrush="#0000" Background="#0000" FontWeight="DemiBold" FontSize="14">Есть аккаунт? Войдите</Button>
  389. </StackPanel>
  390. </Grid>
  391. </Page>