UserProfilePage.axaml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:FinancialManagement.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="1600" d:DesignHeight="1080"
  7. x:Class="FinancialManagement.Views.UserProfilePage"
  8. x:DataType="vm:MainWindowViewModel">
  9. <UserControl.Styles>
  10. <Style Selector="TextBox">
  11. <Setter Property="FontFamily" Value="{StaticResource Nunito}" />
  12. <Setter Property="Foreground" Value="#7471E8"/>
  13. <Setter Property="CornerRadius" Value="20"/>
  14. <Setter Property="BorderThickness" Value="0"/>
  15. </Style>
  16. <Style Selector="TextBlock">
  17. <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
  18. <Setter Property="Foreground" Value="#7471E8"/>
  19. </Style>
  20. <Style Selector="Button">
  21. <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
  22. </Style>
  23. </UserControl.Styles>
  24. <Grid Background="#7471E8" RowDefinitions="*" ColumnDefinitions="*">
  25. <StackPanel Orientation="Horizontal">
  26. <Image
  27. Source="avares://FinancialManagement/Assets/BackroundFon.png"
  28. Stretch="Fill"
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Center"
  31. Width="1550"/>
  32. </StackPanel>
  33. <StackPanel Orientation="Horizontal">
  34. <Image
  35. Grid.Row="0"
  36. Grid.Column="0"
  37. Source=""
  38. Stretch="Fill"
  39. VerticalAlignment="Top"/>
  40. </StackPanel>
  41. <Border
  42. Grid.Row="0"
  43. Grid.Column="1"
  44. HorizontalAlignment="Center"
  45. Background="#E3E6FF"
  46. Height="680"
  47. Width="500"
  48. Padding="20"
  49. CornerRadius="10">
  50. <StackPanel
  51. Orientation="Vertical"
  52. VerticalAlignment="Center"
  53. Width="400">
  54. <Image
  55. Width="150"
  56. Source=""/>
  57. <TextBox
  58. HorizontalAlignment="Center"
  59. FontSize="30"
  60. Text="{Binding UserProfileVM.UserName}"
  61. Margin="0 0 0 20"
  62. Padding="20 10 20 10"/>
  63. <StackPanel
  64. Orientation="Horizontal">
  65. <TextBlock
  66. Margin="0 5 0 0"
  67. FontSize="25"
  68. Text="Логин"/>
  69. <Image
  70. Width="35"
  71. Margin="20 0 0 0"
  72. Source=""/>
  73. </StackPanel>
  74. <TextBox
  75. CornerRadius="5"
  76. FontSize="20"
  77. Watermark="Логин"
  78. Padding="10 10 10 10"
  79. Margin="0 15 0 30"
  80. Text="{Binding UserProfileVM.Login}"/>
  81. <StackPanel
  82. Orientation="Horizontal">
  83. <TextBlock
  84. Margin="0 5 0 0"
  85. FontSize="25"
  86. Text="Телефон"/>
  87. <Image
  88. Width="35"
  89. Margin="20 0 0 0"
  90. Source=""/>
  91. </StackPanel>
  92. <TextBox
  93. CornerRadius="5"
  94. FontSize="20"
  95. Watermark="Телефон"
  96. Padding="10 10 10 10"
  97. Margin="0 15 0 30"
  98. Text="{Binding UserProfileVM.Phone}"/>
  99. <StackPanel
  100. Orientation="Horizontal">
  101. <TextBlock
  102. Margin="0 15 0 0"
  103. FontSize="25"
  104. Text="Пароль"/>
  105. <Image
  106. Width="35"
  107. Margin="20 0 0 0"
  108. Source=""/>
  109. </StackPanel>
  110. <StackPanel HorizontalAlignment="Right">
  111. <Button
  112. Background="Transparent"
  113. FontSize="18"
  114. Foreground="#7471E8"
  115. Content="Показать пароль"
  116. Margin="0 -10 0 -5"
  117. Command="{Binding ShowHidePasswordProfile}">
  118. <Button.Styles>
  119. <Style Selector="Button:pointerover /template/ ContentPresenter">
  120. <Setter Property="Background" Value="Transparent"></Setter>
  121. <Setter Property="Foreground" Value="#30DD6B"></Setter>
  122. </Style>
  123. </Button.Styles>
  124. </Button>
  125. </StackPanel>
  126. <TextBox
  127. CornerRadius="5"
  128. FontSize="20"
  129. PasswordChar="{Binding UserProfileVM.PasswordChar}"
  130. Watermark="Пароль"
  131. Padding="10 10 10 10"
  132. Margin="0 15 0 30"
  133. Text="{Binding UserProfileVM.Password}"/>
  134. <TextBlock
  135. FontSize="24"
  136. Foreground="Red"
  137. HorizontalAlignment="Center"
  138. Text="{Binding UserProfileVM.Message}"/>
  139. <StackPanel
  140. Margin="0 20 0 0"
  141. Orientation="Horizontal"
  142. HorizontalAlignment="Center">
  143. <Button
  144. CornerRadius="10"
  145. Content="Назад"
  146. Background="#ffffff"
  147. Foreground="#7471E8"
  148. FontSize="25"
  149. BorderThickness="3"
  150. BorderBrush="#7471E8"
  151. Padding="20 10 20 10"
  152. Margin="0 0 30 0"
  153. Command="{Binding BackNotChanges}"
  154. HorizontalAlignment="Center">
  155. <Button.Styles>
  156. <Style Selector="Button:pointerover /template/ ContentPresenter">
  157. <Setter Property="Background" Value="#7471E8"></Setter>
  158. <Setter Property="Foreground" Value="#ffffff"></Setter>
  159. </Style>
  160. </Button.Styles>
  161. </Button>
  162. <Button
  163. CornerRadius="10"
  164. Content="Сохранить"
  165. Background="#ffffff"
  166. Foreground="#7471E8"
  167. BorderThickness="3"
  168. BorderBrush="#7471E8"
  169. FontSize="25"
  170. Command="{Binding SaveChangeUserData}"
  171. Padding="20 10 20 10"
  172. HorizontalAlignment="Center">
  173. <Button.Styles>
  174. <Style Selector="Button:pointerover /template/ ContentPresenter">
  175. <Setter Property="Background" Value="#7471E8"></Setter>
  176. <Setter Property="Foreground" Value="#ffffff"></Setter>
  177. </Style>
  178. </Button.Styles>
  179. </Button>
  180. </StackPanel>
  181. </StackPanel>
  182. </Border>
  183. </Grid>
  184. </UserControl>