<Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Background="White"
        Title="DepthImage" Height="600" Width="1300">
    <Grid>
        <!--  リスト 3-4
        
        <StackPanel>
            <TextBlock x:Name="PixelDepth" FontSize="48" HorizontalAlignment="Left"/>
            <Image x:Name="DepthImage" Width="640" Height="480"/>
        </StackPanel>
        
        -->

        <!--  リスト 3-6        
        
        <StackPanel>
            <TextBlock x:Name="PixelDepth" FontSize="48" HorizontalAlignment="Left"/>

            <StackPanel Orientation="Horizontal">                
                <Image x:Name="DepthImage" Width="640" Height="480"/>
                <Image x:Name="EnhancedDepthImage" Width="640" Height="480"/>
            </StackPanel>
        </StackPanel>                

        -->


        <StackPanel Orientation="Horizontal">
            <Image x:Name="DepthImage" Width="640" Height="480"/>
            <Image x:Name="EnhancedDepthImage" Width="640" Height="480"/>
        </StackPanel>


        <Border Padding="10" Background="#5F000000" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="280">
            <StackPanel TextBlock.Foreground="White">
                <StackPanel Orientation="Horizontal" TextBlock.FontSize="48">
                    <TextBlock Text="Pixel Depth: " Margin="0,0,5,0"/>
                    <TextBlock x:Name="PixelDepth"/>
                </StackPanel>

                <StackPanel Orientation="Horizontal" TextBlock.FontSize="24">
                    <TextBlock Text="FPS: " Margin="0,0,5,0"/>
                    <TextBlock x:Name="FramesPerSecondElement"/>
                </StackPanel>

                <StackPanel Margin="0,10,0,0">
                    <TextBlock Text="深度画像の加工方法:"/>
                    <ComboBox x:Name="ImageTreatmentSelector" SelectedIndex="0">
                        <TextBlock Text="灰色部分を明るくする (リスト 3-7)" Tag="1"/>
                        <TextBlock Text="灰色の濃淡を見やすくする (リスト 3-8)" Tag="2"/>
                        <TextBlock Text="カラー深度 (リスト 3-9)" Tag="3"/>
                    </ComboBox>
                </StackPanel>
            </StackPanel>
        </Border>

    </Grid>
</Window>
