<Window x:Class="TwoCamWPF.frmSettings"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        Title="Настройки программы" Height="332" Width="481" Loaded="Window_Loaded" 
        x:Name="Settings" xmlns:my="clr-namespace:TwoCamWPF.Settings" 
  
        xmlns:my2="clr-namespace:TwoCamWPF.Settings.SettingsPage">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="252*" />
            <RowDefinition Height="41*" />
        </Grid.RowDefinitions>
        <TabControl Name="tabControl1" >
            <TabItem Header="Настройки запуска" Name="tabStartSettings" DataContext="{Binding startmodel}">

                <!---->
                
                <my:StartSettingsPanel x:Name="startSettingsPanel1" />
            </TabItem>
            <TabItem Header="Источки видео" Name="tabCameras" DataContext="{Binding camerasmodel}">
                <my:CamSettingsPage x:Name="camSettingsPage1"/>
            </TabItem>
            <TabItem Header="Источки звука" Name="tabAudio" Visibility="Collapsed">
                <Grid />
            </TabItem>
            <TabItem Header="GPS" Name="tabGPS"  Visibility="Collapsed">
                <Grid />
            </TabItem>
            <TabItem Header="Настройки архива" Name="tabAVI">
                <my2:RecordSettingsPage x:Name="recordSettingsPage1"/>
            </TabItem>
            <TabItem Header="Настройки файла" Name="tabFile">
                <my2:FileSettingsPage x:Name="fileSettingsPage1" />
            </TabItem>
        </TabControl>
        <StackPanel Grid.Row="1" Orientation="Horizontal" FlowDirection="RightToLeft">
            <Button Content="Выход"  Name="btnExit" Width="100" Margin="5,5" Click="btnExit_Click" />
            <Button Content="Сохранить"  Name="btnSave" Width="100" Margin="5,5" Click="btnSave_Click" />
        </StackPanel>
    </Grid>
</Window>
