TradeNetworksView.axaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.TradeNetworksView">
  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">Фамилия И.О.</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>
  53. <StackPanel.Styles>
  54. <Style Selector="TextBlock.TextBtBack">
  55. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  56. <Setter Property="FontFamily" Value="Roboto"></Setter>
  57. <Setter Property="FontWeight" Value="Medium"></Setter>
  58. <Setter Property="FontSize" Value="20"></Setter>
  59. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  60. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  61. </Style>
  62. <Style Selector="TextBlock.Chapter">
  63. <Setter Property="Foreground" Value="Black"></Setter>
  64. <Setter Property="FontFamily" Value="Roboto"></Setter>
  65. <Setter Property="FontWeight" Value="Medium"></Setter>
  66. <Setter Property="FontSize" Value="20"></Setter>
  67. <Setter Property="Margin" Value="30 85 0 0"></Setter>
  68. </Style>
  69. <Style Selector="Button.BtBack">
  70. <Setter Property="Width" Value="140"></Setter>
  71. <Setter Property="Height" Value="40"></Setter>
  72. <Setter Property="Margin" Value="30 80 0 0"></Setter>
  73. <Setter Property="Background" Value="#E40714"></Setter>
  74. <Setter Property="CornerRadius" Value="13"></Setter>
  75. </Style>
  76. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  77. <Setter Property="Background" Value="#A10009"></Setter>
  78. </Style>
  79. <Style Selector="Button.BtBack:pressed">
  80. <Setter Property="RenderTransform" Value="none"/>
  81. </Style>
  82. <Style Selector="Button.BtAdd">
  83. <Setter Property="Height" Value="40"></Setter>
  84. <Setter Property="Margin" Value="620 80 0 0"></Setter>
  85. <Setter Property="Background" Value="#E40714"></Setter>
  86. <Setter Property="CornerRadius" Value="13"></Setter>
  87. </Style>
  88. <Style Selector="Button.BtAdd:pointerover /template/ ContentPresenter">
  89. <Setter Property="Background" Value="#A10009"></Setter>
  90. </Style>
  91. <Style Selector="TextBlock.TextBtAdd">
  92. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  93. <Setter Property="FontFamily" Value="Roboto"></Setter>
  94. <Setter Property="FontWeight" Value="Medium"></Setter>
  95. <Setter Property="FontSize" Value="18"></Setter>
  96. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  97. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  98. </Style>
  99. <Style Selector="Button.BtAdd:pressed">
  100. <Setter Property="RenderTransform" Value="none"/>
  101. </Style>
  102. </StackPanel.Styles>
  103. <StackPanel Orientation="Horizontal">
  104. <Button Classes="BtBack" Command="{Binding BackPersonalAccountView}">
  105. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  106. </Button>
  107. <TextBlock Classes="Chapter">Выберите Торговую сеть для просмотра</TextBlock>
  108. <StackPanel Orientation="Horizontal">
  109. <Button Classes="BtAdd" Width="320" Command="{Binding AddTradeNetworksView}">
  110. <TextBlock Classes="TextBtAdd">Добавить торговую сеть</TextBlock>
  111. </Button>
  112. <Image Source="avares://Acosta/Assets/plus.png" Width="25" Margin="-70 80 0 0"></Image>
  113. </StackPanel>
  114. </StackPanel>
  115. </StackPanel>
  116. <StackPanel Background="Transparent" Margin="0 150 0 0" HorizontalAlignment="Center">
  117. <StackPanel.Styles>
  118. <Style Selector="TextBlock.TextColumns">
  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="Margin" Value="40 0 0 0"></Setter>
  124. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  125. </Style>
  126. <Style Selector="Border.TextColumns">
  127. <Setter Property="Margin" Value="0 0 0 20"></Setter>
  128. </Style>
  129. <Style Selector="Border.Data">
  130. <Setter Property="Background" Value="#FFF8F8"></Setter>
  131. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  132. <Setter Property="CornerRadius" Value="13"></Setter>
  133. <Setter Property="BorderThickness" Value="2"></Setter>
  134. <Setter Property="Margin" Value="0 0 0 2"></Setter>
  135. </Style>
  136. <Style Selector="TextBlock.Data">
  137. <Setter Property="Background" Value="#FFF8F8"></Setter>
  138. <Setter Property="FontSize" Value="15"></Setter>
  139. <Setter Property="FontFamily" Value="Roboto"></Setter>
  140. <Setter Property="FontWeight" Value="Medium"></Setter>
  141. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  142. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  143. </Style>
  144. </StackPanel.Styles>
  145. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Width="1490" Height="40">
  146. <TextBlock Classes="TextColumns">НАИМЕНОВАНИЕ</TextBlock>
  147. </Border>
  148. <ScrollViewer Height="550">
  149. <ListBox ItemsSource="{Binding ListTrades}" IsHitTestVisible="False" Background="Transparent">
  150. <ListBox.ItemTemplate>
  151. <DataTemplate>
  152. <StackPanel Orientation="Vertical">
  153. <Border Classes="Data" CornerRadius="13" Width="1400" Height="40">
  154. <TextBlock Text="{Binding Title}" Classes="Data"></TextBlock>
  155. </Border>
  156. </StackPanel>
  157. </DataTemplate>
  158. </ListBox.ItemTemplate>
  159. </ListBox>
  160. </ScrollViewer>
  161. </StackPanel>
  162. </Grid>
  163. </UserControl>