Agents.xaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <Page x:Class="BuzuevaDemo.Pages.Agents"
  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:BuzuevaDemo.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450"
  9. Title="Агенты" Width="918">
  10. <Page.Resources>
  11. <DataTemplate x:Key="AllAgent">
  12. <Border BorderThickness="1" BorderBrush="Black" Width="600">
  13. <StackPanel Orientation="Horizontal" MouseLeftButtonDown="PerexodCreate" Uid="{Binding ID}">
  14. <Image Source="{Binding Logo}" Width="80" Height="80"/>
  15. <StackPanel Orientation="Vertical">
  16. <StackPanel Orientation="Horizontal">
  17. <TextBlock Text="{Binding TitleType}"/>
  18. <TextBlock Text =" | "/>
  19. <TextBlock Text="{Binding Title}" />
  20. </StackPanel>
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock/>
  23. <TextBlock Text ="продаж за год" />
  24. </StackPanel>
  25. <TextBlock Text="{Binding Phone}"/>
  26. <StackPanel Orientation="Horizontal">
  27. <TextBlock Text ="Приоритетность:"/>
  28. <TextBlock Text="{Binding Priority}"/>
  29. </StackPanel>
  30. </StackPanel>
  31. <TextBlock FontSize="20"/>
  32. </StackPanel>
  33. </Border>
  34. </DataTemplate>
  35. </Page.Resources>
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="64"/>
  39. <RowDefinition Height="363*"/>
  40. <RowDefinition Height="23"/>
  41. </Grid.RowDefinitions>
  42. <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="#C6D7FF" >
  43. <GroupBox Header="Введите для поиска" Width="300">
  44. <TextBox x:Name="poisk" Height="40" TextChanged="Changeg" />
  45. </GroupBox>
  46. <ComboBox x:Name="sort" Width="200" Margin="10, 5" Height="40" SelectionChanged="sortSelectionChanged" >
  47. <TextBlock>Наименование (возр.)</TextBlock>
  48. <TextBlock>Наименование (убыв.)</TextBlock>
  49. <TextBlock>Размер скидки (возр.)</TextBlock>
  50. <TextBlock>Размер скидки (убыв.)</TextBlock>
  51. <TextBlock>Приоритет агента (возр.)</TextBlock>
  52. <TextBlock>Приоритет агента (убыв.)</TextBlock>
  53. </ComboBox>
  54. <ComboBox x:Name="filt" Width="200" Margin="10, 5" Height="40" SelectionChanged ="filtSelectionChanged">
  55. <TextBlock x:Name="tb1">Все типы</TextBlock>
  56. <TextBlock x:Name="tb2">МФО</TextBlock>
  57. <TextBlock x:Name="tb3">ПАО</TextBlock>
  58. <TextBlock x:Name="tb4">ООО</TextBlock>
  59. <TextBlock x:Name="tb5">ЗАО</TextBlock>
  60. <TextBlock x:Name="tb6">ОАО</TextBlock>
  61. <TextBlock x:Name="tb7">MKK</TextBlock>
  62. </ComboBox>
  63. <Button Content="Добавить агента" Click="PerexodСhange" Width="150" Margin="10, 5" Height="40" />
  64. </StackPanel>
  65. <ListBox Grid.Row="1" x:Name="AllAgent" ItemTemplate="{StaticResource AllAgent}" />
  66. <StackPanel Background="#C6D7FF" Grid.Row="2" Orientation="Horizontal">
  67. <TextBlock Text="Пред. "/>
  68. <TextBlock Text="1 2 3 4 5 6 7 8 9 10"/>
  69. <TextBlock Text=" След."/>
  70. </StackPanel>
  71. </Grid>
  72. </Page>