CarsData.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <Page x:Class="SSS.CarsData"
  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:SSS"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="CarsData">
  10. <Grid Background="White">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="10*"/>
  14. <RowDefinition Height="*"/>
  15. </Grid.RowDefinitions>
  16. <StackPanel Orientation="Horizontal">
  17. <ComboBox SelectionChanged="FilterChanged" Margin="10,0,0,0" Name="FilterMark" Width="150"/>
  18. <CheckBox Unchecked="CheckUnchanged" Checked="CheckChanged" Margin="10,0,0,0" Name="MileageFilter" Content="Пробег менее 10 километров"/>
  19. <TextBox TextChanged="Search" Margin="10,0,0,0" Name="SearchBrand" Width="150"/>
  20. <ComboBox SelectionChanged="SortChanged" Margin="10,0,0,0" Name="Sort" Width="150"/>
  21. </StackPanel>
  22. <ListView Grid.Row="1" BorderThickness="0" Background="White" Name="CarsList" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
  23. <ListView.ItemsPanel>
  24. <ItemsPanelTemplate>
  25. <WrapPanel HorizontalAlignment="Center" Orientation="Horizontal"></WrapPanel>
  26. </ItemsPanelTemplate>
  27. </ListView.ItemsPanel>
  28. <ListView.ItemTemplate>
  29. <DataTemplate>
  30. <Border BorderThickness="1" Padding="5" Background="Red">
  31. <Grid Height="350" Width="350" >
  32. <StackPanel>
  33. <TextBlock Uid="{Binding id_CarBrand}" Loaded="CarBr" FontWeight="Bold" FontSize="16"></TextBlock>
  34. <TextBlock Text="{Binding Service.name_Service}" TextWrapping="Wrap"></TextBlock>
  35. <TextBlock Uid="{Binding id_Car}" Loaded="CountClients"></TextBlock>
  36. <TextBlock Text="{Binding Teem.Surname_Teem}"></TextBlock>
  37. <TextBlock Uid="{Binding id_Car}" Loaded="MileageLoad"></TextBlock>
  38. <Button Uid="{Binding id_Car}" Click="Edit">Отредактировать</Button>
  39. <Button Uid="{Binding id_Car}" Click="Delete">Удалить</Button>
  40. </StackPanel>
  41. </Grid>
  42. </Border>
  43. </DataTemplate>
  44. </ListView.ItemTemplate>
  45. </ListView>
  46. <Button Grid.Row="2" Click="Back" Width="100" Height="30">Назад</Button>
  47. <Button HorizontalAlignment="Right" Click="Add" Grid.Row="2" Width="100" Height="30">Добавить запись</Button>
  48. </Grid>
  49. </Page>