<Window x:Class="YoseenDemoWpf.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:local="clr-namespace:YoseenDemoWpf"
        
        xmlns:tcd="clr-namespace:YoseenDemoWpf.TempCanvasDef"
        
        Title="{x:Static local:ShellView.Const_hwndShell}" Height="600" Width="800">
    <Grid>

        <Grid.Resources>

            <Style TargetType="{x:Type TextBlock}">
                <Setter Property="Margin" Value="3"></Setter>
                <Setter Property="Width" Value="40"></Setter>
                <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                <Setter Property="VerticalAlignment" Value="Center"></Setter>
            </Style>

            <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
                <Setter Property="Margin" Value="3"></Setter>
                <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                <Setter Property="VerticalAlignment" Value="Center"></Setter>
            </Style>

            <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
                <Setter Property="Margin" Value="3"/>
                <Setter Property="HorizontalAlignment" Value="Center"></Setter>
                <Setter Property="VerticalAlignment" Value="Center"></Setter>
                <Setter Property="Width" Value="100"></Setter>
                <Setter Property="Height" Value="25"></Setter>
            </Style>

        </Grid.Resources>

        <Grid.RowDefinitions>
            <RowDefinition Height="10*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Viewbox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="5" x:Name="viewbox" Stretch="Uniform">
            <tcd:TempCanvas x:Name="tempCanvas"></tcd:TempCanvas>
        </Viewbox>

        <Button Grid.Row="1" Grid.Column="0" Content="Url" x:Name="btnUrl" Click="btnUrl_Click"></Button>
        <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="4" x:Name="tbUrl" Height="30" HorizontalAlignment="Stretch"></TextBox>

        <Button Grid.Row="2" Grid.Column="0" x:Name="btnLogin" Content="{x:Static local:ShellView.Const_btnLogin}" Click="btnLogin_Click"></Button>
        <Button Grid.Row="2" Grid.Column="1" x:Name="btnPlayVideo" Content="{x:Static local:ShellView.Const_btnPlayVideo}" Click="btnPlayVideo_Click"></Button>
        <Button Grid.Row="2" Grid.Column="2" x:Name="btnPlayTemp" Content="{x:Static local:ShellView.Const_btnPlayTemp}" Click="btnPlayTemp_Click"></Button>
        <Button Grid.Row="2" Grid.Column="3" x:Name="btnStop" Content="{x:Static local:ShellView.Const_btnStop}" Click="btnStop_Click"></Button>

        <Button Grid.Row="3" Grid.Column="0" x:Name="btnSaveJpgx" Content="{x:Static local:ShellView.Const_btnSaveJpgx}" Click="btnSaveJpgx_Click"></Button>
        <Button Grid.Row="3" Grid.Column="1" x:Name="btnSaveMp4" Content="{x:Static local:ShellView.Const_btnSaveMp4}" Click="btnSaveMp4_Click"></Button>
        <Button Grid.Row="3" Grid.Column="2" x:Name="btnSaveStream" Content="{x:Static local:ShellView.Const_btnSaveStream}" Click="btnSaveStream_Click"></Button>

        <ComboBox Grid.Row="3" Grid.Column="3" x:Name="cmbTest" Width="100" Height="30"></ComboBox>
        <Button Grid.Row="3" Grid.Column="4" x:Name="btnTest" Content="{x:Static local:ShellView.Const_btnTest}" Click="btnTest_Click"></Button>

        <ComboBox Grid.Row="2" Grid.Column="4" Width="100" Height="30" x:Name="cmbTransform"></ComboBox>

        <TextBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="5" x:Name="tbEcho" IsReadOnly="True" Height="30" HorizontalAlignment="Stretch"></TextBox>
    </Grid>
</Window>
