agrobot_base/AgroBase/OperationControl/Views/PreparacaoMapa/PreparacaoMapaBottomView.xaml

79 lines
2.9 KiB
XML

<UserControl x:Class="OperationControl.Views.PreparacaoMapaBottomView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OperationControl.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid Background="#181818" Margin="0">
<!-- Duas linhas -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Linha 1 -->
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="320"/>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Botão carregar mapa -->
<Button Grid.Column="0"
Content="Carregar mapa"
Margin="12,12,8,6"
Padding="18,10"
MinWidth="150"
Command="{Binding CarregarMapaCommand}"
IsEnabled="{Binding PodeCarregarMapa}"/>
<!-- Botão fixar base -->
<Button Grid.Column="1"
Content="{Binding TextoBotaoFixarBase}"
Margin="8,12,12,6"
Padding="18,10"
MinWidth="180"
Command="{Binding FixarBaseCommand}"/>
<!-- Barra de progresso -->
<ProgressBar Grid.Column="2"
Margin="12,20,8,8"
Height="22"
Minimum="0"
Maximum="100"
Value="{Binding ProgressoFixacao}"/>
<!-- Texto % -->
<TextBlock Grid.Column="3"
Text="{Binding ProgressoFixacaoTexto}"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Foreground="White"
FontWeight="SemiBold"
FontSize="14"
Margin="0,0,8,0"/>
</Grid>
<!-- Linha 2 : Status -->
<Border Grid.Row="1"
Margin="12,4,12,10"
Padding="8"
Background="#222"
CornerRadius="6">
<StackPanel>
<TextBlock Text="Status da operação" Foreground="#AAAAAA" FontSize="11"/>
<TextBlock Text="{Binding StatusTexto}" Foreground="White" FontSize="14" TextWrapping="Wrap"/>
</StackPanel>
</Border>
</Grid>
</UserControl>