Selaa lähdekoodia

add labyrinth and robots

klmnvan 2 kuukautta sitten
vanhempi
commit
79ae62f2a5

BIN
HelloItQuantum/Assets/ImgLabyrinth/RobotManipulator.png


+ 67 - 15
HelloItQuantum/Views/LabyrinthView.axaml

@@ -34,7 +34,7 @@
 
 
 
-		<Grid ColumnDefinitions="*,*,2*" RowDefinitions="*">
+		<Grid Height="{Binding $parent[StackPanel].Bounds.Height}" ColumnDefinitions="*,*,2*" RowDefinitions="*">
 
 			<!--Область "кода"-->
 			<Panel Grid.Column="0" Grid.Row="0" >
@@ -63,7 +63,7 @@
 				</Border>
 			</Panel>
 			<!--Область кнопок-->
-			<Panel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Height="450">
+			<Panel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Height="450">
 
 				<Border  CornerRadius="15"
 					Margin="0,25,0,30">
@@ -72,7 +72,7 @@
 							<Button Width="40" CornerRadius="10000" Padding="1" Margin="0,0,5,0">
 								<Image Source="/Assets/ImgLabyrinth/img_left.png"/>
 							</Button>
-							<Button Width="150" FontSize="24" Background="#F26527">go left</Button>
+							<Button  Width="150" FontSize="24" Background="#F26527">go left</Button>
 						</StackPanel>
 						<StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Top" >
 							<Button Width="40" CornerRadius="10000" Padding="1" Margin="0,0,5,0">
@@ -116,23 +116,75 @@
 									 CommandParameter="Нет" CornerRadius="20" Height="40" Width="200">
 								<TextBlock Text="Выйти" TextAlignment="Center" FontSize="24" Foreground="#FFFFFF" />
 							</Button>
-						</Border>
-						
-						
-						
-						
-						
+						</Border>						
 					</StackPanel>
-
 				</Border>
-
-
 			</Panel>
 			<!--Область "поля"-->
-			<Panel Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Center" Height="450">
-				<Border  Background="#F26527" CornerRadius="15"
+			<Panel Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center" >
+				<Border  CornerRadius="15"
 					Margin="0,25,40,30">
-					<TextBlock TextAlignment="Center"/>
+					
+					<StackPanel Orientation="Horizontal">
+						<StackPanel VerticalAlignment="Bottom">
+							<Image  Height="150" Source="/Assets/ImgLabyrinth/РоботОранж.png"/>
+						</StackPanel>
+						<StackPanel Orientation="Vertical">
+							
+							<Image Margin="160,0,0,0" Height="150" Source="/Assets/ImgLabyrinth/RobotManipulator.png"/>
+							<Grid ColumnDefinitions="90,90,90" RowDefinitions="80,80,80,80,80">
+								<Border Grid.Row="0" Grid.Column="0" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="0" Grid.Column="1" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="0" Grid.Column="2" Margin="2.5" CornerRadius="15" Background="#00A659">
+									<TextBlock> </TextBlock>
+								</Border>
+								
+								<Border Grid.Row="1" Grid.Column="0" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="1" Grid.Column="1" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="1" Grid.Column="2" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+
+								<Border Grid.Row="2" Grid.Column="0" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="2" Grid.Column="1" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="2" Grid.Column="2" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+								
+								<Border Grid.Row="3" Grid.Column="0" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="3" Grid.Column="1" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="3" Grid.Column="2" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+								
+								<Border Grid.Row="4" Grid.Column="0" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="4" Grid.Column="1" Margin="2.5" CornerRadius="15" Background="#F26527">
+									<TextBlock> </TextBlock>
+								</Border>
+								<Border Grid.Row="4" Grid.Column="2" Margin="2.5" CornerRadius="15" Background="#B21E22">
+									<TextBlock> </TextBlock>
+								</Border>
+							</Grid>
+						</StackPanel>
+					</StackPanel>
 				</Border>
 			</Panel>