MainlistPage.xaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <Page x:Class="Proetic.MainlistPage"
  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:Proetic"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="MainlistPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="160"></RowDefinition>
  13. <RowDefinition Height="*"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <TextBlock Grid.Row="0" Height="30" Width="200" Margin="109,10,491,120">Введите для поиска</TextBlock>
  16. <TextBlock Grid.Row="0" Height="30" Width="100" Margin="399,10,301,120">Фильтрация</TextBlock>
  17. <TextBlock Grid.Row="0" Height="30" Width="100" Margin="551,10,149,120">Сортировка</TextBlock>
  18. <WrapPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="85,0,85,10" Grid.RowSpan="2">
  19. <TextBox Name="TbSearch" Height="30" Width="250" Margin="35" ></TextBox>
  20. <ComboBox Name="CBFilter" Height="30" Width="120" >
  21. <ComboBoxItem>Название возр.</ComboBoxItem>
  22. <ComboBoxItem>Название убыв.</ComboBoxItem>
  23. <ComboBoxItem>Скидка возр.</ComboBoxItem>
  24. <ComboBoxItem>Скидка убыв.</ComboBoxItem>
  25. <ComboBoxItem>Приоритет возр.</ComboBoxItem>
  26. <ComboBoxItem>Приоритет убыв.</ComboBoxItem>
  27. </ComboBox>
  28. <ComboBox x:Name="CBSort" Height="30" Width="120" Margin="35" />
  29. </WrapPanel>
  30. <ListView Name="LVAgent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="0,74,0,81" Grid.RowSpan="2">
  31. <ListView.ItemTemplate>
  32. <DataTemplate>
  33. <Border Padding="5" CornerRadius="5" BorderThickness="1" >
  34. <Grid Width="600" Height="100">
  35. <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
  36. <Image Source="{Binding image}" HorizontalAlignment="Left" Height="70" Width="100"/>
  37. <StackPanel>
  38. <StackPanel Orientation="Horizontal">
  39. <TextBlock Text="{Binding AgentType.Title}"></TextBlock>
  40. <TextBlock>|</TextBlock>
  41. <TextBlock Text="{Binding Title}"></TextBlock>
  42. </StackPanel>
  43. <TextBlock></TextBlock>
  44. <TextBlock Text="{Binding Phone}"></TextBlock>
  45. <TextBlock Text="{Binding Priority, StringFormat={} Приоритетность: {0}}"></TextBlock>
  46. </StackPanel>
  47. </StackPanel>
  48. </Grid>
  49. </Border>
  50. </DataTemplate>
  51. </ListView.ItemTemplate>
  52. </ListView>
  53. </Grid>
  54. </Page>