AgentsList.xaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Page x:Class="DemoexamUser11.pages.AgentsList"
  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:DemoexamUser11.pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AgentsList">
  10. <Page.Resources>
  11. <DataTemplate x:Key="listItemTemplate">
  12. <Border BorderBrush="Black" BorderThickness="1" Height="120">
  13. <StackPanel Orientation="Horizontal" MouseDown="StackPanel_MouseDown">
  14. <Image Source="{Binding ImagePath}" Height="120" Width="120"/>
  15. <StackPanel Orientation="Vertical" Margin="5 10" Width="600">
  16. <StackPanel Orientation="Horizontal">
  17. <TextBlock Text="{Binding Type}" FontSize="20" Margin="0 3" Width="70"/>
  18. <TextBlock Text="| " FontSize="20" Margin="0 3"/>
  19. <TextBlock Text="{Binding Title}" FontSize="20" Margin="0 3" Width="200"/>
  20. <TextBlock Text="{Binding Descount}" FontSize="25" Margin="200 0 0 0"/>
  21. </StackPanel>
  22. <TextBlock Text="{Binding SaleYear}" FontSize="16" Margin="0 3"/>
  23. <TextBlock Text="{Binding Phone}" FontSize="16" Margin="0 3"/>
  24. <TextBlock Text="{Binding PriorityText}" FontSize="16" />
  25. </StackPanel>
  26. </StackPanel>
  27. </Border>
  28. </DataTemplate>
  29. </Page.Resources>
  30. <Grid>
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="13*"/>
  33. <RowDefinition Height="137*"/>
  34. </Grid.RowDefinitions>
  35. <StackPanel Orientation="Horizontal" Grid.Row="0">
  36. <TextBox x:Name="textBoxSearch" Width="200" Height="25" Margin="10 0" TextChanged="Search"/>
  37. <ComboBox x:Name="comboBoxSort" Width="100" Height="25" SelectionChanged="Filter"/>
  38. <Button x:Name="buttomBigger" Content="Изменить порядок" Height="25" Click="buttomBigger_Click"/>
  39. <ComboBox x:Name="comboBoxFilter" Width="100" Height="25" Margin="10 0" SelectionChanged="Filter"/>
  40. <Button x:Name="buttomChangePriority" Content="Изменить приоритет" Height="25" Click="buttomChangePriority_Click"/>
  41. <Button x:Name="buttomAddAgent" Content="Добавить" Height="25" Click="buttomAddAgent_Click" Margin="10 0"/>
  42. </StackPanel>
  43. <ListBox x:Name="listBoxAgents" ItemTemplate="{StaticResource listItemTemplate}" Grid.Row="1" SelectionMode="Multiple"/>
  44. </Grid>
  45. </Page>