<Window x:Class="FSI.BT.Tools.RadialMenu.UserInterface.FrmProcesses"
        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:FSI.BT.Tools.RadialMenu.UserInterface"
        mc:Ignorable="d"
        Title="FSI.BT.Tools Prozesse"
        SizeToContent="WidthAndHeight"
        Height="Auto"
        Width="Auto">
    <Grid>
        <TabControl>
            <TabItem Header="WinCC"
                     DataContext="{Binding WinCC }">

                <StackPanel Grid.IsSharedSizeScope="True">
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*"
                                              MinWidth="200" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Fenster-Name:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.WindowsName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>

                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Class-Name:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.WindowsClassName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Schältfläche-Name:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.ButtonName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Update-Intervall:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.UpdateIntervall, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                        <TextBlock Text="ms"
                                   Grid.Column="2"
                                   Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />

                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Autostart:"
                                   Margin="5 5 5 5" />
                        <CheckBox  Grid.Column="1"
                                   IsChecked="{Binding Data.AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                   Margin="5 5 5 5" />
                    </Grid>

                    <StackPanel Orientation="Horizontal"
                                HorizontalAlignment="Right">
                        <Button Content="Start"
                                MinWidth="75"
                                Command="{Binding CmdStart}"
                                Margin="0 0 10 0" />
                        <Button Content="Stop"
                                MinWidth="75"
                                Command="{Binding CmdStop}" />
                    </StackPanel>
                </StackPanel>


            </TabItem>

            <TabItem Header="IBA-Sync"
                     DataContext="{Binding Iba }">

                <StackPanel Grid.IsSharedSizeScope="True">
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*"
                                              MinWidth="200" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Quell-Verzeichnis:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.Source, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>

                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Ziel-Verzeichnis:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding Data.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />

                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Autostart:"
                                   Margin="5 5 5 5" />
                        <CheckBox  Grid.Column="1"
                                   IsChecked="{Binding Iba.AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                   Margin="5 5 5 5" />
                    </Grid>

                    <StackPanel Orientation="Horizontal"
                                HorizontalAlignment="Right">
                        <Button Content="Start"
                                MinWidth="75"
                                Command="{Binding CmdStart}"
                                Margin="0 0 10 0" />
                        <Button Content="Stop"
                                MinWidth="75"
                                Command="{Binding CmdStop}" />
                    </StackPanel>
                </StackPanel>


            </TabItem>

            <TabItem Header="Fenster Mgt"
                     DataContext="{Binding WindowMgt }"
                     HorizontalAlignment="Left"
                     Width="76">

                <StackPanel Grid.IsSharedSizeScope="True">
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Fenster:"
                                   Margin="5 5 5 5" />
                        <ComboBox ItemsSource="{Binding Windows}"
                                  SelectedItem="{Binding SelectedWindow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"                                  
                                  DisplayMemberPath="Name"
                                  SelectedIndex="0"
                                  Grid.Column="1"
                                  MinWidth="250"
                                  Margin="5 5 5 5" />
                        <Separator Width="10"
                                   Grid.Column="2"
                                   Background="Transparent" />
                        <Button Content="neu"
                                Name="ABC"
                                Command="{Binding CmdNew}"                             
                                Grid.Column="3"
                                MinWidth="50"
                                Margin="5 5 5 5"/>
                        <Button Content="löschen"
                                Command="{Binding CmdDelDel}"                              
                                Grid.Column="4"
                                Margin="5 5 5 5"
                                MinWidth="50" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Bezeichnung:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.Bezeichnung, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Fenster Name:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Klassen Name:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.ClassName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Fenster Höhe:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.Height, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Fenster Breite:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.Width, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="X-Position:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.X, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Y-Position:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding SelectedWindow.Y, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Update-Intervall:"
                                   Margin="5 5 5 5" />
                        <TextBox Grid.Column="1"
                                 Text="{Binding UpdateIntervall, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 Margin="5 5 5 5" />
                        <TextBlock Text="ms"
                                   Grid.Column="2"
                                   Margin="5 5 5 5" />
                    </Grid>
                    <Grid Margin="0 5">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"
                                              SharedSizeGroup="a" />
                            <ColumnDefinition Width="*" />

                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Autostart:"
                                   Margin="5 5 5 5" />
                        <CheckBox  Grid.Column="1"
                                   IsChecked="{Binding AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                   Margin="5 5 5 5" />
                    </Grid>

                    <StackPanel Orientation="Horizontal"
                                HorizontalAlignment="Right">
                        <Button Content="Start"
                                MinWidth="75"
                                Command="{Binding CmdStart}"
                                Margin="0 0 10 0" />
                        <Button Content="Stop"
                                MinWidth="75"
                                Command="{Binding CmdStop}" />
                    </StackPanel>

                </StackPanel>
            </TabItem>
        </TabControl>

    </Grid>
</Window>
