|
@@ -0,0 +1,98 @@
|
|
|
+<Page x:Class="SASDesktop.Views.Transport.Create"
|
|
|
+ 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:SASDesktop.Views.Transport" xmlns:transport="clr-namespace:SASDesktop.ViewModels.Transport" d:DataContext="{d:DesignInstance Type=transport:Create}"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800"
|
|
|
+ Title="Create">
|
|
|
+ <!--Страница создания водителя-->
|
|
|
+ <ScrollViewer>
|
|
|
+ <StackPanel
|
|
|
+ CanVerticallyScroll="True"
|
|
|
+ Style="{StaticResource FormContainer}">
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Style="{StaticResource H2}"
|
|
|
+ Text="Создание транспортного средства"/>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+
|
|
|
+ <!--VIN-->
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <!--Фамилия-->
|
|
|
+ <StackPanel
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="4">
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Style="{StaticResource H5}" Text="VIN номер"/>
|
|
|
+ <Label Style="{StaticResource RequiredMark}" Margin="4,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <TextBox
|
|
|
+ Margin="0,4"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Text="{Binding VIN}"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--Марка и модель-->
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <!--Марка (бренд)-->
|
|
|
+ <StackPanel
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="4">
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Style="{StaticResource H5}" Text="Производитель"/>
|
|
|
+ <Label Style="{StaticResource RequiredMark}" Margin="4,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel>
|
|
|
+ <TextBox x:Name="tbBrand" Text="{Binding BrandSearch,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
+ <Popup
|
|
|
+ Placement="Bottom"
|
|
|
+ Width="{Binding RelativeSource={RelativeSource Self},Path=PlacementTarget.ActualWidth}"
|
|
|
+ PlacementTarget="{Binding ElementName=tbBrand}">
|
|
|
+ <Popup.Style>
|
|
|
+ <Style TargetType="{x:Type Popup}">
|
|
|
+ <Setter
|
|
|
+ Property="IsOpen"
|
|
|
+ Value="False" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger
|
|
|
+ Binding="{Binding ElementName=tbBrand,Path=IsFocused}"
|
|
|
+ Value="True">
|
|
|
+ <Setter Property="IsOpen" Value="True" />
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Popup.Style>
|
|
|
+ <ListBox ItemsSource="{Binding SuggestedBrands}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Name}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+ </Popup>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
+</Page>
|