1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <Page x:Class="SSS.CarsData"
- 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:SSS"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="CarsData">
- <Grid Background="White">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <ComboBox SelectionChanged="FilterChanged" Margin="10,0,0,0" Name="FilterMark" Width="150"/>
- <CheckBox Unchecked="CheckUnchanged" Checked="CheckChanged" Margin="10,0,0,0" Name="MileageFilter" Content="Пробег менее 10 километров"/>
- <TextBox TextChanged="Search" Margin="10,0,0,0" Name="SearchBrand" Width="150"/>
- <ComboBox SelectionChanged="SortChanged" Margin="10,0,0,0" Name="Sort" Width="150"/>
- </StackPanel>
-
- <ListView Grid.Row="1" BorderThickness="0" Background="White" Name="CarsList" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Center" Orientation="Horizontal"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border BorderThickness="1" Padding="5" Background="Red">
- <Grid Height="350" Width="350" >
- <StackPanel>
- <TextBlock Uid="{Binding id_CarBrand}" Loaded="CarBr" FontWeight="Bold" FontSize="16"></TextBlock>
- <TextBlock Text="{Binding Service.name_Service}" TextWrapping="Wrap"></TextBlock>
- <TextBlock Uid="{Binding id_Car}" Loaded="CountClients"></TextBlock>
- <TextBlock Text="{Binding Teem.Surname_Teem}"></TextBlock>
- <TextBlock Uid="{Binding id_Car}" Loaded="MileageLoad"></TextBlock>
- <Button Uid="{Binding id_Car}" Click="Edit">Отредактировать</Button>
- <Button Uid="{Binding id_Car}" Click="Delete">Удалить</Button>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <Button Grid.Row="2" Click="Back" Width="100" Height="30">Назад</Button>
- <Button HorizontalAlignment="Right" Click="Add" Grid.Row="2" Width="100" Height="30">Добавить запись</Button>
- </Grid>
- </Page>
|