AddTradeNetworksView.axaml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. mc:Ignorable="d" d:DesignWidth="1550" d:DesignHeight="800.5"
  6. xmlns:vm="using:Acosta.ViewModels"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="Acosta.Views.AddTradeNetworksView">
  9. <Grid>
  10. <StackPanel Height="50" Background="#E40714" VerticalAlignment="Top">
  11. <StackPanel.Styles>
  12. <Style Selector="TextBlock.headerLogo">
  13. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  14. <Setter Property="FontFamily" Value="Roboto"></Setter>
  15. <Setter Property="FontWeight" Value="Regular"></Setter>
  16. <Setter Property="FontSize" Value="35"></Setter>
  17. <Setter Property="Margin" Value="30 0 0 0"></Setter>
  18. </Style>
  19. <Style Selector="TextBlock.greeting">
  20. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  21. <Setter Property="FontFamily" Value="Roboto"></Setter>
  22. <Setter Property="FontWeight" Value="Medium"></Setter>
  23. <Setter Property="FontSize" Value="16"></Setter>
  24. </Style>
  25. <Style Selector="Button.headerBt">
  26. <Setter Property="Background" Value="Transparent"></Setter>
  27. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  28. <Setter Property="FontFamily" Value="Roboto"></Setter>
  29. <Setter Property="FontSize" Value="16"></Setter>
  30. <Setter Property="FontWeight" Value="Medium"></Setter>
  31. </Style>
  32. <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
  33. <Setter Property="Background" Value="Transparent"></Setter>
  34. <Setter Property="Foreground" Value="#D5AFAF"></Setter>
  35. <Setter Property="FontWeight" Value="Medium"></Setter>
  36. <Setter Property="FontSize" Value="16"></Setter>
  37. </Style>
  38. <Style Selector="Button.headerBt:pressed">
  39. <Setter Property="RenderTransform" Value="none"/>
  40. </Style>
  41. </StackPanel.Styles>
  42. <StackPanel Orientation="Horizontal">
  43. <TextBlock Classes="headerLogo">Acosta</TextBlock>
  44. <TextBlock Classes="greeting" Margin="770 12 0 0">Добро пожаловать, оператор</TextBlock>
  45. <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO" Text="{Binding PersonalAccountVM.CurrentUser.Surname}">Фамилия И.О.</TextBlock>
  46. <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
  47. <Button Classes="headerBt" Command="{Binding ChangePasswordView}">Изменить пароль</Button>
  48. <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
  49. <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
  50. </StackPanel>
  51. </StackPanel>
  52. <StackPanel Orientation="Vertical">
  53. <StackPanel.Styles>
  54. <Style Selector="TextBlock.TextToTextBox">
  55. <Setter Property="Foreground" Value="Black"></Setter>
  56. <Setter Property="FontFamily" Value="Roboto"></Setter>
  57. <Setter Property="FontWeight" Value="Regular"></Setter>
  58. <Setter Property="FontSize" Value="18"></Setter>
  59. <Setter Property="Margin" Value="200 30 0 0"></Setter>
  60. </Style>
  61. <Style Selector="TextBox">
  62. <Setter Property="Background" Value="#FFF8F8"></Setter>
  63. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  64. <Setter Property="CornerRadius" Value="9"></Setter>
  65. <Setter Property="BorderThickness" Value="2"></Setter>
  66. <Setter Property="FontSize" Value="14"></Setter>
  67. <Setter Property="FontFamily" Value="Roboto"></Setter>
  68. <Setter Property="Margin" Value="120 20 0 0"></Setter>
  69. </Style>
  70. <Style Selector="TextBox:pointerover /template/ TextBlock#PART_Watermark">
  71. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  72. </Style>
  73. <Style Selector="TextBox:focus /template/ TextBlock#PART_Watermark">
  74. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  75. </Style>
  76. <Style Selector="TextBlock.TextBtBack">
  77. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  78. <Setter Property="FontFamily" Value="Roboto"></Setter>
  79. <Setter Property="FontWeight" Value="Medium"></Setter>
  80. <Setter Property="FontSize" Value="20"></Setter>
  81. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  82. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  83. </Style>
  84. <Style Selector="TextBlock.Chapter">
  85. <Setter Property="Foreground" Value="Black"></Setter>
  86. <Setter Property="FontFamily" Value="Roboto"></Setter>
  87. <Setter Property="FontWeight" Value="Medium"></Setter>
  88. <Setter Property="FontSize" Value="20"></Setter>
  89. <Setter Property="Margin" Value="30 85 0 0"></Setter>
  90. </Style>
  91. <Style Selector="Button.BtBack">
  92. <Setter Property="Width" Value="140"></Setter>
  93. <Setter Property="Height" Value="40"></Setter>
  94. <Setter Property="Margin" Value="30 80 0 0"></Setter>
  95. <Setter Property="Background" Value="#E40714"></Setter>
  96. <Setter Property="CornerRadius" Value="13"></Setter>
  97. </Style>
  98. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  99. <Setter Property="Background" Value="#A10009"></Setter>
  100. </Style>
  101. <Style Selector="Button.BtBack:pressed">
  102. <Setter Property="RenderTransform" Value="none"/>
  103. </Style>
  104. <Style Selector="Button.BtAdd">
  105. <Setter Property="Height" Value="35"></Setter>
  106. <Setter Property="Margin" Value="620 80 0 0"></Setter>
  107. <Setter Property="Background" Value="#E40714"></Setter>
  108. <Setter Property="CornerRadius" Value="13"></Setter>
  109. </Style>
  110. <Style Selector="Button.BtAdd:pointerover /template/ ContentPresenter">
  111. <Setter Property="Background" Value="#A10009"></Setter>
  112. </Style>
  113. <Style Selector="TextBlock.TextBtAdd">
  114. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  115. <Setter Property="FontFamily" Value="Roboto"></Setter>
  116. <Setter Property="FontWeight" Value="Medium"></Setter>
  117. <Setter Property="FontSize" Value="20"></Setter>
  118. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  119. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  120. </Style>
  121. <Style Selector="Button.BtAdd:pressed">
  122. <Setter Property="RenderTransform" Value="none"/>
  123. </Style>
  124. </StackPanel.Styles>
  125. <StackPanel Orientation="Horizontal">
  126. <Button Classes="BtBack" Command="{Binding BackTradeNetworksView}">
  127. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  128. </Button>
  129. <TextBlock Classes="Chapter">Добавление торговой сети</TextBlock>
  130. </StackPanel>
  131. <StackPanel Orientation="Horizontal">
  132. <TextBlock Classes="TextToTextBox">Наименование:</TextBlock>
  133. <TextBox Text="{Binding AddTradeNetworksVM.CurrentTrade.Title}" Watermark="Наименование торговой сети" Width="360"></TextBox>
  134. </StackPanel>
  135. </StackPanel>
  136. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  137. <StackPanel.Styles>
  138. <Style Selector="TextBlock.TextBtDelete">
  139. <Setter Property="Foreground" Value="#E40714"></Setter>
  140. <Setter Property="FontFamily" Value="Roboto"></Setter>
  141. <Setter Property="FontWeight" Value="Medium"></Setter>
  142. <Setter Property="FontSize" Value="20"></Setter>
  143. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  144. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  145. </Style>
  146. <Style Selector="Button.BtDelete">
  147. <Setter Property="BorderThickness" Value="2"></Setter>
  148. <Setter Property="Width" Value="180"></Setter>
  149. <Setter Property="Height" Value="38"></Setter>
  150. <Setter Property="Margin" Value="0 740 70 20"></Setter>
  151. <Setter Property="Background" Value="Transparent"></Setter>
  152. <Setter Property="CornerRadius" Value="13"></Setter>
  153. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  154. </Style>
  155. <Style Selector="Button.BtDelete:pointerover /template/ ContentPresenter">
  156. <Setter Property="BorderBrush" Value="#A10009"></Setter>
  157. <Setter Property="Background" Value="Transparent"></Setter>
  158. </Style>
  159. <Style Selector="Button.BtDelete:pressed">
  160. <Setter Property="RenderTransform" Value="none"/>
  161. </Style>
  162. <Style Selector="TextBlock.TextBtSave">
  163. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  164. <Setter Property="FontFamily" Value="Roboto"></Setter>
  165. <Setter Property="FontWeight" Value="Medium"></Setter>
  166. <Setter Property="FontSize" Value="20"></Setter>
  167. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  168. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  169. </Style>
  170. <Style Selector="Button.BtSave">
  171. <Setter Property="Width" Value="180"></Setter>
  172. <Setter Property="Height" Value="38"></Setter>
  173. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  174. <Setter Property="Background" Value="#E40714"></Setter>
  175. <Setter Property="CornerRadius" Value="13"></Setter>
  176. </Style>
  177. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  178. <Setter Property="Background" Value="#A10009"></Setter>
  179. </Style>
  180. <Style Selector="Button.BtSave:pressed">
  181. <Setter Property="RenderTransform" Value="none"/>
  182. </Style>
  183. </StackPanel.Styles>
  184. <Button Classes="BtDelete" Command="">
  185. <TextBlock Classes="TextBtDelete">Удалить</TextBlock>
  186. </Button>
  187. <Button Classes="BtSave" Command="{Binding SaveNetwork}">
  188. <TextBlock Classes="TextBtSave">Добавить</TextBlock>
  189. </Button>
  190. </StackPanel>
  191. </Grid>
  192. </UserControl>