Binding vehicle details

This commit is contained in:
Selim Mustafaev 2021-03-07 20:18:23 +03:00
parent f1c9711746
commit a622c84467
3 changed files with 5 additions and 4 deletions

Binary file not shown.

View File

@ -5,7 +5,7 @@
xmlns:model="using:AutoCatCore.Model"> xmlns:model="using:AutoCatCore.Model">
<DataTemplate x:Key="VehicleDetailTemplate" x:DataType="model:Vehicle"> <DataTemplate x:Key="VehicleDetailTemplate" x:DataType="model:Vehicle">
<Grid Margin="16"> <Grid Margin="16" RowSpacing="16">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/>
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
@ -13,9 +13,10 @@
<StackPanel Orientation="Horizontal" Background="Coral" Spacing="8"> <StackPanel Orientation="Horizontal" Background="Coral" Spacing="8">
<Image Source="{Binding Brand.Logo}" Height="50"/> <Image Source="{Binding Brand.Logo}" Height="50"/>
<TextBlock Text="{Binding Brand.Name.Original}" FontSize="24" VerticalAlignment="Center"/> <TextBlock Text="{Binding Brand.Name.Original}" FontSize="24" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
</Grid>
</Grid>
</DataTemplate> </DataTemplate>
</ResourceDictionary> </ResourceDictionary>