|
@@ -38,29 +38,20 @@
|
|
|
|
|
|
<!--Область "кода"-->
|
|
|
<Panel Grid.Column="0" Grid.Row="0" >
|
|
|
- <Border Background="#F26527" CornerRadius="15"
|
|
|
- Margin="20,25,20,30">
|
|
|
<ScrollViewer>
|
|
|
-
|
|
|
- <StackPanel Margin="10">
|
|
|
- <Button Content="Добавить" FontSize="20" Command="{Binding LabyrinthVM.AddRowCommand}"/>
|
|
|
-
|
|
|
- <ItemsControl >
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="5">
|
|
|
- <TextBlock FontSize="10" Margin="5"/>
|
|
|
- <!-- Другие элементы шаблона строки -->
|
|
|
- </StackPanel>
|
|
|
- </DataTemplate>
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
- </ItemsControl>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ <ListBox ItemsSource="{Binding LabyrinthVM.ListCommandForRobots}" Background="#F26527" CornerRadius="15"
|
|
|
+ Margin="20,25,20,30">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate >
|
|
|
+ <StackPanel>
|
|
|
+ <Border CornerRadius="15">
|
|
|
+ <TextBlock Foreground="Black" Text="{Binding }"></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
</ScrollViewer>
|
|
|
- </Border>
|
|
|
</Panel>
|
|
|
<!--Область кнопок-->
|
|
|
<Panel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Height="450">
|
|
@@ -69,7 +60,7 @@
|
|
|
Margin="0,25,0,30">
|
|
|
<StackPanel Orientation="Vertical" >
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" >
|
|
|
- <Button Width="40" CornerRadius="10000" Padding="1" Margin="0,0,5,0">
|
|
|
+ <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>
|
|
@@ -78,7 +69,7 @@
|
|
|
<Button Width="40" CornerRadius="10000" Padding="1" Margin="0,0,5,0">
|
|
|
<Image Source="/Assets/ImgLabyrinth/img_right.png"/>
|
|
|
</Button>
|
|
|
- <Button Width="150" FontSize="24" Background="#F26527">go right</Button>
|
|
|
+ <Button Command="{Binding LabyrinthVM.addRight}" Width="150" FontSize="24" Background="#F26527">go right</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Top" >
|
|
|
<Button Width="40" CornerRadius="10000" Padding="1" Margin="0,0,5,0">
|