<UserControl x:Class="MainShell.AlgorithmCalib.View.PixRatioCalibContentsView"
             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:MainShell.AlgorithmCalib.View"
             xmlns:mw="http://www.maxwell-gp.com/"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="36"/>
            <RowDefinition/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <!-- 顶部导航栏 -->
        <Border Grid.Row="0" Background="White" BorderBrush="#E0E4EA" BorderThickness="0,0,0,1" Padding="10,0">
            <Grid>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <TextBlock Text="当前标定：" VerticalAlignment="Center" FontSize="13" Foreground="#7A8FA6"/>
                    <TextBlock Text="{Binding CurrentCalibName}" VerticalAlignment="Center"
                                 FontSize="13" FontWeight="SemiBold" Foreground="#2D3748" Margin="0,0,16,0"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                    <TextBlock Text="{Binding ProgressText}" VerticalAlignment="Center"
                                 FontSize="12" Foreground="#A0AEC0"/>
                </StackPanel>
            </Grid>
        </Border>
        <!-- 内容区 -->
        <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
            <ContentControl mw:View.Model="{Binding ShowScreenVM}"/>
        </ScrollViewer>
        <!-- 底部导航按钮 -->
        <Border Grid.Row="2" Background="White" BorderBrush="#E0E4EA" BorderThickness="0,1,0,0" Padding="8,0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                <Button Content="上一个" Margin="5,0" Padding="16,0" Height="32"
                          Command="{Binding PrevCommand}" IsEnabled="{Binding IsEnablePrev}"/>
                <Button Content="下一个" Margin="5,0" Padding="16,0" Height="32"
                          Command="{Binding NextCommand}" IsEnabled="{Binding IsEnableNext}"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
