<Window x:Class="CSWebCamExampleWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CSWebCamExampleWPF"
        xmlns:CSWebCam="clr-namespace:CSWebCam;assembly=CSWebCam"
        mc:Ignorable="d"
        Title="CSWebCam WPF Example" Height="724.078" Width="610.526" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
    <Grid>

        <TabControl x:Name="tabSource" HorizontalAlignment="Left" Height="189" Margin="14,347,0,0" VerticalAlignment="Top" Width="564">
            <TabItem Header="Local Device" HorizontalAlignment="Left" Width="100">
                <Grid Background="#FFE5E5E5">
                    <ComboBox x:Name="cboCamDevices" HorizontalAlignment="Left" Margin="14,33,0,0" VerticalAlignment="Top" Width="273"/>
                    <ComboBox x:Name="cboAudioDevices" HorizontalAlignment="Left" Margin="15,89,0,0" VerticalAlignment="Top" Width="273"/>

                    <Button x:Name="cmdOpenCam" Content="Open" HorizontalAlignment="Left" Margin="15,128,0,0" VerticalAlignment="Top" Width="75" Click="cmdOpenCam_Click"/>
                    <Button x:Name="cmdCloseCam" Content="Close" HorizontalAlignment="Left" Margin="100,128,0,0" VerticalAlignment="Top" Width="75" Click="cmdCloseCam_Click"/>
                    <Label x:Name="lblCamDevice" Content="Camera Device" HorizontalAlignment="Left" Margin="12,7,0,0" VerticalAlignment="Top"/>
                    <Label x:Name="lblAudioDevice" Content="Audio Device" HorizontalAlignment="Left" Margin="14,63,0,0" VerticalAlignment="Top"/>
                    <Button x:Name="cboCamDeviceDetails" Content="Details" HorizontalAlignment="Left" Margin="293,33,0,0" VerticalAlignment="Top" Width="75" Click="cboCamDeviceDetails_Click"/>
                    <Button x:Name="cboAudioDeviceDetails" Content="Details" HorizontalAlignment="Left" Margin="294,90,0,0" VerticalAlignment="Top" Width="75" Click="cboAudioDeviceDetails_Click"/>

                </Grid>
            </TabItem>
            <TabItem Header="URL">
                <Grid Background="#FFE5E5E5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="17*"/>
                        <ColumnDefinition Width="169*"/>
                    </Grid.ColumnDefinitions>
                    <TextBox x:Name="txtCamURL" HorizontalAlignment="Left" Height="65" Margin="18,38,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="510" Grid.ColumnSpan="2"/>
                    <Button x:Name="cmdOpenURL" Content="Open" HorizontalAlignment="Left" Margin="15,128,0,0" VerticalAlignment="Top" Width="75" Click="cmdOpenCam_Click" Grid.ColumnSpan="2"/>
                    <Button x:Name="cmdCloseUL" Content="Close" HorizontalAlignment="Left" Margin="48.887,128,0,0" VerticalAlignment="Top" Width="75" Grid.Column="1"/>
                    <Label x:Name="lblCamURL" Content="Camera URL" HorizontalAlignment="Left" Margin="18,12,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
                </Grid>
            </TabItem>
        </TabControl>

        <Button x:Name="cboCapture" Content="Capture" HorizontalAlignment="Left" Margin="19,635,0,-11" VerticalAlignment="Top" Width="75" Click="cboCapture_Click"/>
        <Button x:Name="cboStopCapture" Content="Stop Capture" HorizontalAlignment="Left" Margin="99,635,0,-11" VerticalAlignment="Top" Width="137" Click="cboStopCapture_Click"/>

        <Label x:Name="lblDestinationFormat" Content="Destination Format" HorizontalAlignment="Left" Margin="16,573,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="cboDestinationFormat" HorizontalAlignment="Left" Margin="17,600,0,0" VerticalAlignment="Top" Width="220">
            <TextBlock>AVI</TextBlock>
            <TextBlock>FLV</TextBlock>
            <TextBlock>MKV</TextBlock>
            <TextBlock>MOV</TextBlock>
            <TextBlock>MP4</TextBlock>
            <TextBlock>MPEG</TextBlock>
            <TextBlock>MTS</TextBlock>
            <TextBlock>WEBM</TextBlock>
            <TextBlock>WMV</TextBlock>

        </ComboBox>
        <Label x:Name="lblVideoResolutionX" Content="Video Resolution X" HorizontalAlignment="Left" Margin="247,575,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="txtVideoResolutionX" HorizontalAlignment="Left" Height="23" Margin="247,601,0,0" TextWrapping="Wrap" Text="1280" VerticalAlignment="Top" Width="120"/>
        <Label x:Name="lblVideoResolutionY" Content="Video Resolution Y" HorizontalAlignment="Left" Margin="372,576,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="txtVideoResolutionY" HorizontalAlignment="Left" Height="23" Margin="372,602,0,0" TextWrapping="Wrap" Text="720" VerticalAlignment="Top" Width="120"/>
        <Label x:Name="lblFPS" Content="FPS" HorizontalAlignment="Left" Margin="497,576,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="txtFPS" HorizontalAlignment="Left" Height="23" Margin="497,602,0,0" TextWrapping="Wrap" Text="30" VerticalAlignment="Top" Width="71"/>
        <CSWebCam:CameraPreviewWPF x:Name="CameraPreviewWPF" HorizontalAlignment="Left" Height="297" Margin="16,23,0,0" VerticalAlignment="Top" Width="560"/>
        <Button x:Name="cmdOrderLicense" Content="Order License" HorizontalAlignment="Left" Margin="390,635,0,0" VerticalAlignment="Top" Width="177" Click="cmdOrderLicense_Click"/>







    </Grid>
</Window>
