MainWindow.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <Window x:Class="WpfApp1.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. Title="Главное окно" Height="450" Width="800" FontFamily="Monotype Corsiva" FontSize="18" Icon="Приятный шелест.ico">
  9. <Grid Margin="5">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"/>
  12. </Grid.ColumnDefinitions>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="auto"/>
  15. <RowDefinition Height="auto"/>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="auto"/>
  18. </Grid.RowDefinitions>
  19. <Label Content="Агенты" HorizontalAlignment="Center" FontSize="32"/>
  20. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">
  21. <StackPanel>
  22. <Label Content="Поиск агентов" HorizontalAlignment="Center"/>
  23. <TextBox Name="TextBox_Name" KeyUp="TextBox_Name_KeyUp" Width="150"/>
  24. </StackPanel>
  25. <StackPanel>
  26. <Label Content="Сортировка" HorizontalAlignment="Center"/>
  27. <ComboBox Name="ComboBox_Sort" ItemsSource="{Binding sortList}" SelectionChanged="ComboBox_Sort_SelectionChanged" SelectedIndex="0"/>
  28. <Button Content="{Binding GetContentButtonSort}" Click="Button_Sort_Click" Width="150"/>
  29. </StackPanel>
  30. <StackPanel>
  31. <Label Content="Фильтрация" HorizontalAlignment="Center"/>
  32. <ComboBox Width="150"/>
  33. </StackPanel>
  34. <Image Width="50" Source="Приятный шелест.png" Margin="15, 0, 0, 0"/>
  35. </StackPanel>
  36. <ListView Name="ListView_Agent" Grid.Row="2" Height="auto" ItemsSource="{Binding AgentList}" MouseDoubleClick="DataView_MouseDoubleClick">
  37. <ListView.ItemTemplate>
  38. <DataTemplate>
  39. <Border>
  40. <WrapPanel>
  41. <Grid Height="175" Width="700">
  42. <Label Content="{Binding Product.GetCostWithDiscount}" HorizontalAlignment="Right"/>
  43. <StackPanel Orientation="Horizontal">
  44. <Image Source="{Binding GetImage}" Width="40"/>
  45. <StackPanel>
  46. <Label Content="{Binding GetTypeTitle}"/>
  47. <Label Content=""/>
  48. <Label Content="{Binding Phone}"/>
  49. <Label Content="{Binding GetPriority}"/>
  50. </StackPanel>
  51. </StackPanel>
  52. </Grid>
  53. </WrapPanel>
  54. </Border>
  55. </DataTemplate>
  56. </ListView.ItemTemplate>
  57. </ListView>
  58. <Button Content="Выйти" Click="Button_Exit_Click" Width="150" Grid.Row="3" HorizontalAlignment="Left"/>
  59. <Button Content="Добавить агента" Click="Button_Add_Click" Width="150" Grid.Row="3" HorizontalAlignment="Right"/>
  60. </Grid>
  61. </Window>