|
@@ -10,15 +10,18 @@
|
|
|
Title="MainPage">
|
|
|
|
|
|
<Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="100"/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="210"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
+ <!--LEFTBAR-->
|
|
|
<Border CornerRadius="15"
|
|
|
- Background="LightGray"
|
|
|
+ Background="{StaticResource Color2}"
|
|
|
+ BorderThickness="1.5"
|
|
|
+ BorderBrush="{StaticResource Selection}"
|
|
|
Margin="5"
|
|
|
- Grid.Row="0">
|
|
|
+ Grid.Column="0">
|
|
|
<StackPanel Grid.Row="0"
|
|
|
Orientation="Horizontal"
|
|
|
HorizontalAlignment="Center">
|
|
@@ -26,16 +29,19 @@
|
|
|
Width="45"
|
|
|
Content="+"
|
|
|
FontSize="30"
|
|
|
+ Margin="0,0,10,0"
|
|
|
Click="AddButton_Click">
|
|
|
</Button>
|
|
|
- <Grid Grid.Row="0">
|
|
|
+ <Grid Grid.Row="0"
|
|
|
+ Background="{x:Null}">
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
- Grid.Row="0"
|
|
|
- HorizontalAlignment="Center">
|
|
|
+ Grid.Row="0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Height="60">
|
|
|
<TextBox Name="asddfg"
|
|
|
- Margin="5"
|
|
|
- Width="120"
|
|
|
- Text="Откуда">
|
|
|
+ Width="120"
|
|
|
+ Margin="5"
|
|
|
+ Text="Откуда">
|
|
|
</TextBox>
|
|
|
|
|
|
<TextBox Name="CarNameBox"
|
|
@@ -60,40 +66,154 @@
|
|
|
</Grid>
|
|
|
<Button Height="45"
|
|
|
Width="45"
|
|
|
- Content="Поиск"
|
|
|
+ Content="P"
|
|
|
+ Margin="10,0,0,0"
|
|
|
Click="Button_Click">
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
</Border>
|
|
|
|
|
|
- <ListBox Grid.Row="1"
|
|
|
- Name="ListBox">
|
|
|
+ <!--TEMP-->
|
|
|
+ <Grid Name="TempGrid"
|
|
|
+ Background="{x:Null}"
|
|
|
+ Grid.Column="1"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Border Height="120"
|
|
|
+ CornerRadius="10"
|
|
|
+ Background="{StaticResource Color2}"
|
|
|
+ BorderThickness="1.5"
|
|
|
+ BorderBrush="{StaticResource Selection}"
|
|
|
+ Margin="10,0,10,0"
|
|
|
+ MouseDown="Border_MouseDown">
|
|
|
+ <Grid Background="{x:Null}">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ Grid.Column="0">
|
|
|
+ <Image Width="35"
|
|
|
+ Height="35"
|
|
|
+ Margin="5"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ Source="/Resources/Train.png">
|
|
|
+ </Image>
|
|
|
+ <StackPanel>
|
|
|
+ <Label Content="{Binding IdRoute}"/>
|
|
|
+ <Label Content="FAST"
|
|
|
+ Margin="0,-7,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ Grid.Column="1"
|
|
|
+ HorizontalAlignment="Right">
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1" Grid.ColumnSpan="2">
|
|
|
+ <StackPanel>
|
|
|
+ <Label Name="FROML"
|
|
|
+ Content="{Binding Departure_Station}">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ <Label Content="To">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ <Label Name="ToL"
|
|
|
+ Content="{Binding Arrival_Station}">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <ListBox Name="ListBox"
|
|
|
+ Grid.Column="1"
|
|
|
+ Visibility="Visible">
|
|
|
<ListBox.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <Border Width="500"
|
|
|
- Margin="-10,0,0,0"
|
|
|
- Height="45"
|
|
|
- CornerRadius="10"
|
|
|
- Background="{StaticResource color2}"
|
|
|
- MouseDown="Border_MouseDown">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Image Width="35"
|
|
|
+ <Border Height="120"
|
|
|
+ CornerRadius="10"
|
|
|
+ Background="{StaticResource Color2}"
|
|
|
+ BorderThickness="1.5"
|
|
|
+ BorderBrush="{StaticResource Selection}"
|
|
|
+ Margin="10,0,10,0"
|
|
|
+ MouseDown="Border_MouseDown">
|
|
|
+ <Grid Background="{x:Null}">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ Grid.Column="0">
|
|
|
+ <Image Width="35"
|
|
|
Height="35"
|
|
|
Margin="5"
|
|
|
HorizontalAlignment="Left"
|
|
|
- Source="/RaspisKusach;component/Resources/StandartProfile.png">
|
|
|
- </Image>
|
|
|
- <StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Label Content="Content"/>
|
|
|
- <Label Content="Content"/>
|
|
|
+ Source="/Resources/Train.png">
|
|
|
+ </Image>
|
|
|
+ <StackPanel>
|
|
|
+ <Label Content="{Binding IdRoute}"/>
|
|
|
+ <Label Content="FAST"
|
|
|
+ Margin="0,-7,0,0"/>
|
|
|
</StackPanel>
|
|
|
- <TextBlock Margin="0,-7,0,0">
|
|
|
- <Run Text="Вопросов: " Foreground="White"/>
|
|
|
- <Run Text="Content" />
|
|
|
- </TextBlock>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ Grid.Column="1"
|
|
|
+ HorizontalAlignment="Right">
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+ <Image Source="/Resources/Train.png"
|
|
|
+ Margin="3">
|
|
|
+ </Image>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1" Grid.ColumnSpan="2">
|
|
|
+ <StackPanel>
|
|
|
+ <Label Name="FROML"
|
|
|
+ Content="{Binding Departure_Station}">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ <Label Content="To">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ <Label Name="ToL"
|
|
|
+ Content="{Binding Arrival_Station}">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
</Border>
|
|
|
</DataTemplate>
|
|
|
</ListBox.ItemTemplate>
|