39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:models="using:AutoCatCore.Model"
|
|
xmlns:views="using:AutoCat.Views"
|
|
xmlns:ext="using:AutoCat.Extensions">
|
|
|
|
<ext:DateConverter x:Key="DateConverter"/>
|
|
|
|
<DataTemplate DataType="{x:Type models:Vehicle}" x:Key="VehicleCell">
|
|
<StackPanel Orientation="Vertical" Spacing="8" Margin="0,8">
|
|
<Grid ColumnDefinitions="*">
|
|
<TextBlock Text="{Binding Brand.Name.Original}"/>
|
|
</Grid>
|
|
<Grid ColumnDefinitions="150 *" RowDefinitions="*,*">
|
|
<views:PlateView Grid.RowSpan="2" Number="{Binding Number}"/>
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Margin="16,0,0,0"
|
|
FontSize="11"
|
|
Foreground="{DynamicResource SecondaryText}"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="Right"
|
|
Text="{Binding UpdatedDate, Converter={StaticResource DateConverter}}"/>
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Margin="16,0,0,0"
|
|
FontSize="11"
|
|
Foreground="{DynamicResource TertiaryText}"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="Right"
|
|
Text="{Binding AddedDate, Converter={StaticResource DateConverter}}"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
|
|
</ResourceDictionary>
|