12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Page x:Class="DB.Pages.ListViewPage"
- 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:DB.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ListViewPage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <ComboBox Name="CBFIlter" SelectionChanged="CBFIlter_SelectionChanged" Height="30" Width="150" Margin="0,0,50,0"/>
- <ComboBox Name="CBSort" SelectionChanged="CBSort_SelectionChanged" Height="30" Width="150" Margin="0,0,50,0"/>
- <TextBox Name="TBSearch" TextChanged="TBSearch_TextChanged" Style="{StaticResource TBStyle}" />
- </StackPanel>
- <Button Name="BTNAdd" Grid.Row="2" Click="BTNAdd_Click">Add</Button>
- <ListView Name="LVService" Grid.Row="1">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Black" BorderThickness="1" CornerRadius="5" Height="100" Width="400" Background="{Binding BGColor}">
- <StackPanel Orientation="Vertical">
- <TextBlock Name="TBTitle" Text="{Binding Title}"/>
- <TextBlock Name="TBCost" Text="{Binding Cost}"/>
- <TextBlock Name="TBDate" Uid="{Binding ID}" Loaded="TBDate_Loaded"/>
- <StackPanel Orientation="Horizontal">
- <Button Name="BTNChange" Uid="{Binding ID}" Click="BTNChange_Click" Height="50" Width="100">Change</Button>
- <Button Name="BTNDelete" Uid="{Binding ID}" Click="BTNDelete_Click" Height="50" Width="100">Delete</Button>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|