TaskPage.xaml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <Page x:Class="WpfApp1.TaskPage"
  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:WpfApp1"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="TaskPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="auto"></RowDefinition>
  13. <RowDefinition Height="*"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center">
  16. <StackPanel Orientation="Horizontal">
  17. <TextBlock Text="Введите название задания для поиска:" Width="220" TextAlignment="Right"></TextBlock>
  18. <TextBox Width="221" Name="TBoxSearch" TextChanged="TBoxSearch_TextChanged"></TextBox>
  19. </StackPanel>
  20. <StackPanel Orientation="Horizontal">
  21. <TextBlock Text="Выберите тип: " Width="95" TextAlignment="Right"></TextBlock>
  22. <ComboBox Width="225" Name="ComboType" SelectionChanged="ComboType_SelectionChanged" DisplayMemberPath="WorkType"></ComboBox>
  23. </StackPanel>
  24. <CheckBox x:Name="CheckDeleted" Checked="CheckDeleted_Checked" Unchecked="CheckDeleted_Checked" Content="Показывать только не удаленные задания" HorizontalAlignment="Center"></CheckBox>
  25. </WrapPanel>
  26. <ListView Grid.Row="1" Name="LViewTasks" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center">
  27. <ListView.ItemsPanel>
  28. <ItemsPanelTemplate>
  29. <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center"></WrapPanel>
  30. </ItemsPanelTemplate>
  31. </ListView.ItemsPanel>
  32. <ListView.ItemTemplate>
  33. <DataTemplate>
  34. <Grid Margin="20" Width="400">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="*"/>
  37. <RowDefinition Height="*"/>
  38. <RowDefinition Height="*"/>
  39. <RowDefinition Height="*"/>
  40. </Grid.RowDefinitions>
  41. <Border BorderBrush="Black" BorderThickness="1" Background="#FF90D5FF" ></Border>
  42. <StackPanel Height="300" Width="400">
  43. <StackPanel>
  44. <TextBlock Text="{Binding Title}" VerticalAlignment="Center" TextAlignment="Center" Width="390" TextWrapping="Wrap" HorizontalAlignment="Center"
  45. Margin="5 5" FontSize="26" Grid.Row="0"></TextBlock>
  46. <Separator/>
  47. <StackPanel>
  48. <TextBlock Text="{Binding CreateDateTime}" Margin = "5"></TextBlock>
  49. <TextBlock Text="{Binding Deadline}" Margin = "5"></TextBlock>
  50. <TextBlock Text="{Binding Time}" Margin = "5"></TextBlock>
  51. <TextBlock Text="{Binding Status}" Margin = "5"></TextBlock>
  52. <TextBlock Text="{Binding WorkType}" Margin = "5"></TextBlock>
  53. <TextBlock Text="{Binding DeletedText}" Margin = "5"></TextBlock>
  54. </StackPanel>
  55. </StackPanel>
  56. </StackPanel>
  57. </Grid>
  58. </DataTemplate>
  59. </ListView.ItemTemplate>
  60. </ListView>
  61. </Grid>
  62. </Page>