1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <Page x:Class="WpfApp1.TaskPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:WpfApp1"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="TaskPage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Введите название задания для поиска:" Width="220" TextAlignment="Right"></TextBlock>
- <TextBox Width="221" Name="TBoxSearch" TextChanged="TBoxSearch_TextChanged"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Выберите тип: " Width="95" TextAlignment="Right"></TextBlock>
- <ComboBox Width="225" Name="ComboType" SelectionChanged="ComboType_SelectionChanged" DisplayMemberPath="WorkType"></ComboBox>
- </StackPanel>
- <CheckBox x:Name="CheckDeleted" Checked="CheckDeleted_Checked" Unchecked="CheckDeleted_Checked" Content="Показывать только не удаленные задания" HorizontalAlignment="Center"></CheckBox>
- </WrapPanel>
-
- <ListView Grid.Row="1" Name="LViewTasks" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid Margin="20" Width="400">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border BorderBrush="Black" BorderThickness="1" Background="#FF90D5FF" ></Border>
- <StackPanel Height="300" Width="400">
- <StackPanel>
- <TextBlock Text="{Binding Title}" VerticalAlignment="Center" TextAlignment="Center" Width="390" TextWrapping="Wrap" HorizontalAlignment="Center"
- Margin="5 5" FontSize="26" Grid.Row="0"></TextBlock>
- <Separator/>
- <StackPanel>
- <TextBlock Text="{Binding CreateDateTime}" Margin = "5"></TextBlock>
- <TextBlock Text="{Binding Deadline}" Margin = "5"></TextBlock>
- <TextBlock Text="{Binding Time}" Margin = "5"></TextBlock>
- <TextBlock Text="{Binding Status}" Margin = "5"></TextBlock>
- <TextBlock Text="{Binding WorkType}" Margin = "5"></TextBlock>
- <TextBlock Text="{Binding DeletedText}" Margin = "5"></TextBlock>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|