<UserControl x:Class="VIZ.Package.Module.MainStatusView"
             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:VIZ.Package.Module"
             d:DataContext="{d:DesignInstance Type=local:MainStatusViewModel}" 
             mc:Ignorable="d" 
             d:DesignHeight="35" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="240"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
            <!-- 項目名 -->
            <TextBlock Text="项目：" Margin="10,0,0,0" Opacity="0.6"></TextBlock>
            <TextBlock Text="{Binding ProjectName}" Margin="10,0,0,0"
                       ToolTip="{Binding ProjectPath}"></TextBlock>
            <!-- 场景 -->
            <TextBlock Text="场景：" Margin="40,0,0,0" Opacity="0.6"></TextBlock>
            <TextBlock Text="{Binding Scene}" Margin="10,0,0,0"
                       ToolTip="{Binding Scene}"></TextBlock>
            <!-- 页编号 -->
            <TextBlock Text="页ID：" Margin="40,0,0,0" Opacity="0.6"></TextBlock>
            <TextBlock Text="{Binding PageNum, StringFormat={}{0:D4}}" Margin="10,0,0,0">
                <TextBlock.ToolTip>
                    <TextBlock Text="{Binding PageNum, StringFormat={}{0:D4}}" Margin="2,0,2,0"></TextBlock>
                </TextBlock.ToolTip>
            </TextBlock>
        </StackPanel>

        <!-- 命令组 -->
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="1">
            <Button Content="Viz Command Log" Command="{Binding Path=OpenVizCommandLogWindowCommand}"></Button>
            <Button Content="Errors" Margin="10,0,5,0" Command="{Binding Path=OpenErrorLogWindowCommand}"></Button>
        </StackPanel>
    </Grid>
</UserControl>
