TradeNetworksView.axaml 8.2 KB

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