AddTradeNetworksView.axaml 9.5 KB

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