Main.xaml 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <Page x:Class="PleasantRustle.Pages.Main"
  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:PleasantRustle.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Main">
  10. <Page.Resources>
  11. <DataTemplate x:Key="PleasantRustleInfo">
  12. <Border BorderBrush="#FF46B29D" BorderThickness="1" CornerRadius="1">
  13. <StackPanel Orientation="Horizontal" MinWidth="800" MinHeight="100" Margin="0,10">
  14. <Image Source="{Binding Logo}" Width="80" Height="80"/>
  15. <StackPanel Orientation="Vertical" Margin="20,0,0,0" VerticalAlignment="Center">
  16. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  17. <TextBlock Text="{Binding AgentType.Title}" FontFamily="Monotype Corsiva" FontSize="18"/>
  18. <TextBlock Text=" | " FontFamily="Monotype Corsiva" FontSize="18"/>
  19. <TextBlock Text="{Binding Title}" FontFamily="Monotype Corsiva" FontSize="18"/>
  20. </StackPanel>
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock Text="10" FontFamily="Monotype Corsiva" FontSize="18"/>
  23. <TextBlock Text=" продаж за год" FontFamily="Monotype Corsiva" FontSize="18"/>
  24. </StackPanel>
  25. <StackPanel Orientation="Horizontal">
  26. <TextBlock Text="+7 " FontFamily="Monotype Corsiva" FontSize="18"/>
  27. <TextBlock Text="{Binding Phone}" FontFamily="Monotype Corsiva" FontSize="18"/>
  28. </StackPanel>
  29. <StackPanel Orientation="Horizontal">
  30. <TextBlock Text="Приоритетность: " FontFamily="Monotype Corsiva" FontSize="18"/>
  31. <TextBlock Text="{Binding Priority}" FontFamily="Monotype Corsiva" FontSize="15"/>
  32. </StackPanel>
  33. <StackPanel Orientation="Horizontal">
  34. <Button x:Name="buttonUpdate" Click="buttonUpdate_Click" Content="Редактировать агента" Background="White" BorderBrush="#FF46B29D" FontFamily="Monotype Corsiva" FontSize="18" Width="600" Height="20"/>
  35. </StackPanel>
  36. </StackPanel>
  37. <StackPanel Width="50" Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
  38. <TextBlock Text="10%" FontFamily="Monotype Corsiva" FontSize="25" Margin="10,0,0,0"/>
  39. </StackPanel>
  40. </StackPanel>
  41. </Border>
  42. </DataTemplate>
  43. </Page.Resources>
  44. <Grid>
  45. <Grid.RowDefinitions>
  46. <RowDefinition Height="1*"/>
  47. <RowDefinition Height="15*"/>
  48. <RowDefinition Height="1*"/>
  49. </Grid.RowDefinitions>
  50. <StackPanel Orientation="Horizontal" Margin="0,10">
  51. <TextBox x:Name="Search" Width="390" Height="20" Margin="5,0" TextChanged="Search_TextChanged"/>
  52. <ComboBox Width="190" Height="20" Margin="5,0" SelectionChanged="ComboBox_SelectionChanged">
  53. <ComboBoxItem Content="Наименование (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  54. <ComboBoxItem Content="Наименование (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  55. <ComboBoxItem Content="Размер скидки (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  56. <ComboBoxItem Content="Размер скидки (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  57. <ComboBoxItem Content="Приоритет (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  58. <ComboBoxItem Content="Приоритет (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
  59. </ComboBox>
  60. <ComboBox Width="190" Height="20" Margin="5,0" SelectionChanged="ComboBox_SelectionChanged_1">
  61. <ComboBoxItem Content="Все типы" FontFamily="Monotype Corsiva" FontSize="18"/>
  62. <ComboBoxItem Content="ЗАО" FontFamily="Monotype Corsiva" FontSize="18"/>
  63. <ComboBoxItem Content="МКК" FontFamily="Monotype Corsiva" FontSize="18"/>
  64. <ComboBoxItem Content="МФО" FontFamily="Monotype Corsiva" FontSize="18"/>
  65. <ComboBoxItem Content="ОАО" FontFamily="Monotype Corsiva" FontSize="18"/>
  66. <ComboBoxItem Content="ООО" FontFamily="Monotype Corsiva" FontSize="18"/>
  67. <ComboBoxItem Content="ПАО" FontFamily="Monotype Corsiva" FontSize="18"/>
  68. </ComboBox>
  69. </StackPanel>
  70. <ListBox x:Name="listboxPleasant" Grid.Row="1" ItemTemplate="{StaticResource PleasantRustleInfo}"/>
  71. <StackPanel Grid.Row="2">
  72. <Button x:Name="buttonAdd" Click="buttonAdd_Click" Content="Добавить агента" Margin="50,10,50,0" Background="#FF46B29D" BorderBrush="{x:Null}" Foreground="White" FontFamily="Monotype Corsiva" FontSize="18"/>
  73. </StackPanel>
  74. </Grid>
  75. </Page>