agrobot_base/AgroBase/OperationControl/Windows/DockWindow.xaml

73 lines
2.7 KiB
XML

<Window x:Class="OperationControl.Windows.DockWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:OperationControl.Windows"
mc:Ignorable="d"
Title="DockWindow" Height="1025" Width="1920" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80"/>
<!-- Topo -->
<RowDefinition Height="*"/>
<!-- Centro -->
<RowDefinition Height="120"/>
<!-- Rodapé -->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60"/>
<!-- Lateral esquerda (voltar) -->
<ColumnDefinition Width="*"/>
<!-- Centro -->
<ColumnDefinition Width="60"/>
<!-- Lateral direita (avançar) -->
</Grid.ColumnDefinitions>
<!-- Topo (span em 3 colunas) -->
<Border Grid.Row="0" Grid.ColumnSpan="3"
Background="#222"
Padding="8">
<ContentControl Content="{Binding TopContent}"/>
</Border>
<!-- Área central principal -->
<Border Grid.Row="1" Grid.Column="1"
Margin="8"
BorderThickness="1"
BorderBrush="Gray">
<ContentControl Content="{Binding CenterContent}"/>
</Border>
<!-- Rodapé (span 3 colunas) -->
<Border Grid.Row="2" Grid.ColumnSpan="3"
Background="#181818"
Padding="8">
<ContentControl Content="{Binding BottomContent}"/>
</Border>
<!-- Lateral esquerda: botão voltar -->
<Grid Grid.Row="1" Grid.Column="0">
<Button Content="⮜"
FontSize="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="40" Height="40"
Command="{Binding BackCommand}"
IsEnabled="{Binding CanGoBack}"/>
</Grid>
<!-- Lateral direita: botão avançar -->
<Grid Grid.Row="1" Grid.Column="2">
<Button Content="⮞"
FontSize="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="40" Height="40"
Command="{Binding NextCommand}"
IsEnabled="{Binding CanGoNext}"/>
</Grid>
</Grid>
</Window>