pgAgentList.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <Page x:Class="DemoTest_Boldin_41P.pgAgentList"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:DemoTest_Boldin_41P"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="pgAgentList">
  10. <Page.Resources>
  11. <DataTemplate x:Key="outputAgents">
  12. <Border BorderThickness="1,1,1,1" BorderBrush="Black" Width="600px" Height="65px">
  13. <StackPanel Orientation="Horizontal" Background="{Binding BorderColor}" Uid="{Binding ID}">
  14. <Image Source="{Binding Logo}" Width="40px" Height="40px"></Image>
  15. <StackPanel Margin="15,10,0,0">
  16. <StackPanel Orientation="Horizontal" Width="520px">
  17. <TextBlock Text="{Binding NameTypeAgent}"></TextBlock>
  18. <TextBlock Text=" | "></TextBlock>
  19. <TextBlock Text="{Binding Title}"></TextBlock>
  20. </StackPanel>
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock Text="{Binding CountSale}"></TextBlock>
  23. <TextBlock Text=" продаж за год."></TextBlock>
  24. </StackPanel>
  25. <TextBlock Text="{Binding Phone}"></TextBlock>
  26. <StackPanel Orientation="Horizontal">
  27. <TextBlock Text="Приоритетность "></TextBlock>
  28. <TextBlock Text="{Binding Priority}"></TextBlock>
  29. </StackPanel>
  30. </StackPanel>
  31. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  32. <TextBlock Text="{Binding Sale}"></TextBlock>
  33. <TextBlock Text=" %"></TextBlock>
  34. </StackPanel>
  35. </StackPanel>
  36. </Border>
  37. </DataTemplate>
  38. </Page.Resources>
  39. <Grid>
  40. <Grid.RowDefinitions>
  41. <RowDefinition Height="60*"/>
  42. <RowDefinition Height="391*"/>
  43. </Grid.RowDefinitions>
  44. <ListBox Name="lbAgents" ItemTemplate="{StaticResource outputAgents}" Grid.Row="1" SelectionMode="Extended" SelectionChanged="lbAgents_SelectionChanged" MouseDoubleClick="lbAgents_MouseDoubleClick"></ListBox>
  45. <StackPanel Orientation="Horizontal" Grid.Row="0">
  46. <TextBox Text="Введите для поиска" Width="150px" Height="40px" HorizontalAlignment="Left" MouseEnter="TextBox_MouseEnter" Name="tbFind" TextChanged="tbFind_TextChanged"></TextBox>
  47. <ComboBox Width="100px" Height="40px" SelectionChanged="ComboBox_SelectionChanged" Name="cbOrder">
  48. <ComboBoxItem>По возрастанию именования</ComboBoxItem>
  49. <ComboBoxItem>По убыванию именования</ComboBoxItem>
  50. <ComboBoxItem>По возрастанию скидки</ComboBoxItem>
  51. <ComboBoxItem>По убыванию скидки</ComboBoxItem>
  52. <ComboBoxItem>По возрастанию приоритета</ComboBoxItem>
  53. <ComboBoxItem>По убыванию приоритета</ComboBoxItem>
  54. </ComboBox>
  55. <ComboBox Width="100px" Height="40px" SelectionChanged="ComboBox_SelectionChanged" Name="cbFilter">
  56. </ComboBox>
  57. <Button Width="160px" Height="40px" Visibility="Collapsed" Name="btnChangePriority" Click="btnChangePriority_Click">Изменить приоритет на...</Button>
  58. <Button Width="160px" Height="40px" Name="btnAddAgent" Click="btnAddAgent_Click">Добавить агента</Button>
  59. </StackPanel>
  60. </Grid>
  61. </Page>