MainWindow.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <Window x:Class="WhiteList.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:WhiteList"
  7. mc:Ignorable="d"
  8. Title="Приятный шелест" Icon="Images/Приятный шелест.png" MinWidth="800" MinHeight="700" Height="700" Width="800">
  9. <Grid>
  10. <StackPanel Orientation="Vertical">
  11. <StackPanel Orientation="Horizontal">
  12. <TextBox Name="TextBoxSearch" TextChanged="TextBoxSearch_TextChanged"/>
  13. <ComboBox Name="ComboBoxFilter" SelectionChanged="ComboBoxFilter_SelectionChanged"/>
  14. <ComboBox Name="ComboBoxSort" SelectionChanged="ComboBoxFilter_SelectionChanged">
  15. </ComboBox>
  16. </StackPanel>
  17. <ListView Name="ListViewDataBase" SelectionMode="Multiple" SelectionChanged="ListViewDataBase_SelectionChanged">
  18. <ListView.ItemsPanel>
  19. <ItemsPanelTemplate>
  20. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  21. </ItemsPanelTemplate>
  22. </ListView.ItemsPanel>
  23. <ListView.ItemTemplate>
  24. <DataTemplate>
  25. <Border Width="750" BorderBrush="#46B29D" BorderThickness="1" Background="{Binding GetBackground}">
  26. <StackPanel Orientation="Horizontal">
  27. <Image Source="{Binding GetIcon}" Stretch="Fill" Height="100" Width="100"/>
  28. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  29. <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Width="560">
  30. <TextBlock Text="{Binding GetTypeAndTitle}"/>
  31. <TextBlock Text="{Binding GetCountSale, StringFormat={}{0} продаж за год}"/>
  32. <TextBlock Text="{Binding Email}"/>
  33. <TextBlock Text="{Binding Priority, StringFormat={}Приоритетность: {0}}"/>
  34. </StackPanel>
  35. <TextBlock HorizontalAlignment="Right" FontSize="40" Text="{Binding GetPercent,StringFormat={}{0}%}"/>
  36. </StackPanel>
  37. </StackPanel>
  38. </Border>
  39. </DataTemplate>
  40. </ListView.ItemTemplate>
  41. </ListView>
  42. <StackPanel Orientation="Horizontal">
  43. <Button Name="BtnChangePriority" Visibility="Collapsed" Width="210" Click="ChangePriority_Click">
  44. <TextBlock>Изменить приоритет на</TextBlock>
  45. </Button>
  46. <Button Click="Add_Click">
  47. <TextBlock>Добавить</TextBlock>
  48. </Button>
  49. </StackPanel>
  50. </StackPanel>
  51. </Grid>
  52. </Window>