Добавил картинки и грид
This commit is contained in:
parent
078d841f94
commit
c41faf21a8
@ -7,4 +7,30 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="static\images\american_gorki.jpg" />
|
||||
<None Remove="static\images\cepnoy.jpg" />
|
||||
<None Remove="static\images\kachel.jpg" />
|
||||
<None Remove="static\images\karusel.jpeg" />
|
||||
<None Remove="static\images\korable.jpg" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="static\images\american_gorki.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="static\images\cepnoy.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="static\images\kachel.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="static\images\karusel.jpeg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="static\images\korable.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -5,27 +5,79 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Lunapark"
|
||||
mc:Ignorable="d"
|
||||
Title="Парк развлечений" Height="450" Width="800">
|
||||
Title="Парк развлечений"
|
||||
Height="450"
|
||||
Width="850"
|
||||
MinWidth="850"
|
||||
MinHeight="450"
|
||||
>
|
||||
<Window.Resources>
|
||||
<Color x:Key="lightBlueColor">
|
||||
LightBlue
|
||||
</Color>
|
||||
<Color x:Key="whiteColor">
|
||||
White
|
||||
</Color>
|
||||
<Color x:Key="lightGreenColor">
|
||||
#FFC3F37E
|
||||
</Color>
|
||||
<SolidColorBrush
|
||||
x:Key="controlSolidBrush"
|
||||
Color="{StaticResource whiteColor}"/>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.Background>
|
||||
<RadialGradientBrush>
|
||||
<GradientStop Color="White" Offset="1"/>
|
||||
<GradientStop Color="LightBlue"/>
|
||||
<GradientStop Color="{StaticResource whiteColor}" Offset="1"/>
|
||||
<GradientStop Color="{StaticResource lightBlueColor}"/>
|
||||
</RadialGradientBrush>
|
||||
</Grid.Background>
|
||||
<DockPanel LastChildFill="False" Height="50" VerticalAlignment="Top" Margin="100,0,0,0">
|
||||
<DockPanel.Background>
|
||||
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0.5,0.5">
|
||||
<GradientStop Color="White" Offset="0.8"/>
|
||||
<GradientStop Color="#FFC3F37E" />
|
||||
<GradientStop Color="{StaticResource whiteColor}" Offset="0.8"/>
|
||||
<GradientStop Color="{StaticResource lightGreenColor}" />
|
||||
</LinearGradientBrush>
|
||||
</DockPanel.Background>
|
||||
<ComboBox
|
||||
Height="24"
|
||||
Width="250"
|
||||
Margin="30, 0, 0, 0" SelectedIndex="0"
|
||||
Background="{StaticResource controlSolidBrush}">
|
||||
<ComboBoxItem Content="Выберите аттракцион"/>
|
||||
</ComboBox>
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Height="24"
|
||||
Margin="30, 0, 0, 0"
|
||||
Background="{StaticResource controlSolidBrush}"/>
|
||||
<Label
|
||||
Height="24"
|
||||
Content="Количество:"
|
||||
Margin="30, 0, 0, 0"
|
||||
VerticalContentAlignment="Center"
|
||||
/>
|
||||
<TextBox
|
||||
TextWrapping="Wrap"
|
||||
Width="50"
|
||||
Height="24"
|
||||
HorizontalContentAlignment="Right"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="{StaticResource controlSolidBrush}"
|
||||
/>
|
||||
<Button
|
||||
Margin="30, 0, 0, 0"
|
||||
Height="24"
|
||||
Width="100"
|
||||
Content="Купить билеты"
|
||||
Background="{StaticResource controlSolidBrush}"
|
||||
/>
|
||||
</DockPanel>
|
||||
<DockPanel LastChildFill="False" HorizontalAlignment="Left" Width="100">
|
||||
<DockPanel.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0.5">
|
||||
<GradientStop Color="White" Offset="0.8"/>
|
||||
<GradientStop Color="#FFC3F37E" />
|
||||
<GradientStop Color="{StaticResource lightGreenColor}" />
|
||||
</LinearGradientBrush>
|
||||
</DockPanel.Background>
|
||||
<Grid>
|
||||
@ -33,10 +85,23 @@
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
<Ellipse HorizontalAlignment="Left" Height="50" Stroke="Black" VerticalAlignment="Top" Width="100"/>
|
||||
<ScrollViewer Margin="100,50,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Label Content="Лучший парк развлечений!" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Top" FontSize="20" FontStyle="Oblique"/>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
<ScrollViewer Margin="100,50,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition></RowDefinition>
|
||||
<RowDefinition></RowDefinition>
|
||||
<RowDefinition></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="0" Grid.ColumnSpan="3" Content="Лучший парк развлечений!" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Top" FontSize="20" FontStyle="Oblique"/>
|
||||
<Image Source="static\images\american_gorki.jpg" Grid.Row="1" Grid.Column="0"/>
|
||||
<Image Source="static\images\cepnoy.jpg" Grid.Row="1" Grid.Column="1"/>
|
||||
<Image Source="static\images\kachel.jpg" Grid.Row="2" Grid.Column="0"/>
|
||||
<Image Source="static\images\korable.jpg" Grid.Row="2" Grid.Column="1"/>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
BIN
Lunapark/Lunapark/static/images/american_gorki.jpg
Normal file
BIN
Lunapark/Lunapark/static/images/american_gorki.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 MiB |
BIN
Lunapark/Lunapark/static/images/cepnoy.jpg
Normal file
BIN
Lunapark/Lunapark/static/images/cepnoy.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
BIN
Lunapark/Lunapark/static/images/kachel.jpg
Normal file
BIN
Lunapark/Lunapark/static/images/kachel.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
Lunapark/Lunapark/static/images/karusel.jpeg
Normal file
BIN
Lunapark/Lunapark/static/images/karusel.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 KiB |
BIN
Lunapark/Lunapark/static/images/korable.jpg
Normal file
BIN
Lunapark/Lunapark/static/images/korable.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
Loading…
x
Reference in New Issue
Block a user