<UserControl x:Class="SharepointToolbox.Views.Controls.FeatureTabBase"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:loc="clr-namespace:SharepointToolbox.Localization">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="*" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <!-- Placeholder content — Phase 2+ replaces Row 0 -->
    <TextBlock Grid.Row="0"
               Text="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[tab.comingsoon]}"
               HorizontalAlignment="Center" VerticalAlignment="Center" />

    <!-- Per-tab progress/cancel strip (shown only when IsRunning) -->
    <Grid Grid.Row="1" Margin="8,4"
          Visibility="{Binding IsRunning, Converter={StaticResource BoolToVisibilityConverter}}">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <ProgressBar Grid.Column="0" Height="16" Minimum="0" Maximum="100"
                   Value="{Binding ProgressValue}" />
      <TextBlock Grid.Column="1" Margin="8,0" VerticalAlignment="Center"
                 Text="{Binding StatusMessage}" />
      <Button Grid.Column="2"
              Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[btn.cancel]}"
              Command="{Binding CancelCommand}" Width="70" />
    </Grid>
  </Grid>
</UserControl>
