lab-4 finished p.2

This commit is contained in:
Zakharov_Rostislav 2024-04-24 12:38:19 +04:00
parent c7d5649035
commit 610b6d4b8c

View File

@ -10,9 +10,6 @@
<SolidColorBrush x:Key="ForestBackgroundColor" Color="Olive" /> <SolidColorBrush x:Key="ForestBackgroundColor" Color="Olive" />
<SolidColorBrush x:Key="DesertBackgroundColor" Color="LightSalmon" /> <SolidColorBrush x:Key="DesertBackgroundColor" Color="LightSalmon" />
<SolidColorBrush x:Key="SeaBackgroundColor" Color="DarkCyan" /> <SolidColorBrush x:Key="SeaBackgroundColor" Color="DarkCyan" />
</Window.Resources>
<Grid ShowGridLines="True">
<Window.Resources>
<SolidColorBrush x:Key="ButtonBackgroundColor" Color="Bisque" /> <SolidColorBrush x:Key="ButtonBackgroundColor" Color="Bisque" />
<Style TargetType="Button"> <Style TargetType="Button">
<Setter Property="Template"> <Setter Property="Template">
@ -30,35 +27,35 @@
</Window.Resources> </Window.Resources>
<Grid ShowGridLines="True"> <Grid ShowGridLines="True">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition> <RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Border Background="LemonChiffon" BorderThickness="4,4,4,4" <Border Background="LemonChiffon" BorderThickness="4,4,4,4"
BorderBrush="Goldenrod"> BorderBrush="Goldenrod">
<ScrollViewer CanContentScroll="True" VerticalScrollBarVisibility="Hidden"> <ScrollViewer CanContentScroll="True" VerticalScrollBarVisibility="Hidden">
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" <StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center"
VerticalAlignment="Stretch" Orientation="Vertical"> VerticalAlignment="Stretch" Orientation="Vertical">
<Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonForest_Click">Forest</Button> <Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonForest_Click">Forest</Button>
<Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonDesert_Click">Desert</Button> <Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonDesert_Click">Desert</Button>
<Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonSea_Click">Sea</Button> <Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonSea_Click">Sea</Button>
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
</Border> </Border>
<DockPanel Name="PanelMenu" Grid.Row="0" Grid.Column="1" <DockPanel Name="PanelMenu" Grid.Row="0" Grid.Column="1"
Background="{StaticResource SeaBackgroundColor}"> Background="{StaticResource SeaBackgroundColor}">
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
HorizontalAlignment="Center" VerticalAlignment="Center"> HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button> <Button Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button>
<Button Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button> <Button Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button>
</StackPanel> </StackPanel>
<DockPanel Background="Black"> <DockPanel Background="Black">
<Viewbox> <Viewbox>
<Image Name="ImageNature" Source="/Resources/images/sea.png"/> <Image Name="ImageNature" Source="/Resources/images/sea.png"/>
</Viewbox> </Viewbox>
</DockPanel>
</DockPanel> </DockPanel>
</DockPanel> </Grid>
</Grid>
</Window> </Window>