ChangePasswordView.axaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:vm="using:Acosta.ViewModels"
  6. x:DataType="vm:MainWindowViewModel"
  7. mc:Ignorable="d" d:DesignWidth="1920" d:DesignHeight="1080"
  8. x:Class="Acosta.Views.ChangePasswordView">
  9. <Grid>
  10. <StackPanel>
  11. <StackPanel Height="50" Background="#E40714" VerticalAlignment="Top">
  12. <StackPanel.Styles>
  13. <Style Selector="TextBlock.headerLogo">
  14. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  15. <Setter Property="FontFamily" Value="Roboto"></Setter>
  16. <Setter Property="FontWeight" Value="Regular"></Setter>
  17. <Setter Property="FontSize" Value="35"></Setter>
  18. <Setter Property="Margin" Value="30 0 0 0"></Setter>
  19. </Style>
  20. <Style Selector="TextBlock.greeting">
  21. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  22. <Setter Property="FontFamily" Value="Roboto"></Setter>
  23. <Setter Property="FontWeight" Value="Medium"></Setter>
  24. <Setter Property="FontSize" Value="16"></Setter>
  25. </Style>
  26. <Style Selector="Button.headerBt">
  27. <Setter Property="Background" Value="Transparent"></Setter>
  28. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  29. <Setter Property="FontFamily" Value="Roboto"></Setter>
  30. <Setter Property="FontSize" Value="16"></Setter>
  31. <Setter Property="FontWeight" Value="Medium"></Setter>
  32. </Style>
  33. <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
  34. <Setter Property="Background" Value="Transparent"></Setter>
  35. <Setter Property="Foreground" Value="#D5AFAF"></Setter>
  36. <Setter Property="FontWeight" Value="Medium"></Setter>
  37. <Setter Property="FontSize" Value="16"></Setter>
  38. </Style>
  39. <Style Selector="Button.headerBt:pressed">
  40. <Setter Property="RenderTransform" Value="none"/>
  41. </Style>
  42. </StackPanel.Styles>
  43. <StackPanel Orientation="Horizontal">
  44. <TextBlock Classes="headerLogo">Acosta</TextBlock>
  45. <TextBlock Classes="greeting" Margin="770 12 0 0">Добро пожаловать, оператор</TextBlock>
  46. <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO" Text="{Binding PersonalAccountVM.CurrentUser.Surname}">Фамилия И.О.</TextBlock>
  47. <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
  48. <Button Classes="headerBt" Command="{Binding ChangePasswordView}">Изменить пароль</Button>
  49. <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
  50. <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
  51. </StackPanel>
  52. </StackPanel>
  53. <StackPanel Classes="PanelMenu" Orientation="Horizontal">
  54. <StackPanel.Styles>
  55. <Style Selector="StackPanel.PanelMenu">
  56. <Setter Property="Margin" Value="30"></Setter>
  57. </Style>
  58. <Style Selector="TextBlock.TextBtBack">
  59. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  60. <Setter Property="FontFamily" Value="Roboto"></Setter>
  61. <Setter Property="FontWeight" Value="Medium"></Setter>
  62. <Setter Property="FontSize" Value="20"></Setter>
  63. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  64. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  65. </Style>
  66. <Style Selector="TextBlock.Chapter">
  67. <Setter Property="Foreground" Value="Black"></Setter>
  68. <Setter Property="FontFamily" Value="Roboto"></Setter>
  69. <Setter Property="FontWeight" Value="Medium"></Setter>
  70. <Setter Property="FontSize" Value="20"></Setter>
  71. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  72. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  73. <Setter Property="Margin" Value="30 0"></Setter>
  74. </Style>
  75. <Style Selector="Button.BtBack">
  76. <Setter Property="Width" Value="140"></Setter>
  77. <Setter Property="Height" Value="40"></Setter>
  78. <Setter Property="Background" Value="#E40714"></Setter>
  79. <Setter Property="CornerRadius" Value="13"></Setter>
  80. </Style>
  81. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  82. <Setter Property="Background" Value="#A10009"></Setter>
  83. </Style>
  84. <Style Selector="Button.BtBack:pressed">
  85. <Setter Property="RenderTransform" Value="none"/>
  86. </Style>
  87. </StackPanel.Styles>
  88. <Button Classes="BtBack" Command="{Binding BackPersonalAccountView}">
  89. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  90. </Button>
  91. <TextBlock Classes="Chapter">Изменить пароль</TextBlock>
  92. </StackPanel>
  93. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="0 60">
  94. <StackPanel.Styles>
  95. <Style Selector="TextBlock.TextToTextBox">
  96. <Setter Property="Foreground" Value="Black"></Setter>
  97. <Setter Property="FontFamily" Value="Roboto"></Setter>
  98. <Setter Property="FontWeight" Value="Regular"></Setter>
  99. <Setter Property="FontSize" Value="18"></Setter>
  100. <Setter Property="Margin" Value="0 0 30 0"></Setter>
  101. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  102. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  103. </Style>
  104. <Style Selector="TextBox">
  105. <Setter Property="Background" Value="#FFF8F8"></Setter>
  106. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  107. <Setter Property="CornerRadius" Value="9"></Setter>
  108. <Setter Property="BorderThickness" Value="2"></Setter>
  109. <Setter Property="FontSize" Value="14"></Setter>
  110. <Setter Property="FontFamily" Value="Roboto"></Setter>
  111. </Style>
  112. <Style Selector="TextBox:pointerover /template/ TextBlock#PART_Watermark">
  113. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  114. </Style>
  115. <Style Selector="TextBox:focus /template/ TextBlock#PART_Watermark">
  116. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  117. </Style>
  118. <Style Selector="TextBlock.TextBtSave">
  119. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  120. <Setter Property="FontFamily" Value="Roboto"></Setter>
  121. <Setter Property="FontWeight" Value="Medium"></Setter>
  122. <Setter Property="FontSize" Value="20"></Setter>
  123. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  124. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  125. </Style>
  126. <Style Selector="Button.BtSave">
  127. <Setter Property="Width" Value="180"></Setter>
  128. <Setter Property="Height" Value="38"></Setter>
  129. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  130. <Setter Property="Background" Value="#E40714"></Setter>
  131. <Setter Property="CornerRadius" Value="13"></Setter>
  132. </Style>
  133. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  134. <Setter Property="Background" Value="#A10009"></Setter>
  135. </Style>
  136. <Style Selector="Button.BtSave:pressed">
  137. <Setter Property="RenderTransform" Value="none"/>
  138. </Style>
  139. </StackPanel.Styles>
  140. <StackPanel Orientation="Horizontal" Margin="0 0 0 30">
  141. <TextBlock Classes="TextToTextBox" Margin="0 0 50 0">Введите ваш пароль:</TextBlock>
  142. <TextBox Width="360"></TextBox>
  143. </StackPanel>
  144. <StackPanel Orientation="Horizontal">
  145. <TextBlock Classes="TextToTextBox">Введите новый пароль:</TextBlock>
  146. <TextBox Name="tbNewPas" Width="360"></TextBox>
  147. </StackPanel>
  148. <!--<Button Classes="BtSave" Command="{Binding SavePassword}">
  149. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  150. </Button>-->
  151. </StackPanel>
  152. </StackPanel>
  153. </Grid>
  154. </UserControl>