<UserControl x:Class="AvalonStudio.Debugging.GDB.JLink.JLinkSettingsFormView"
             xmlns="https://github.com/avaloniaui"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel Spacing="10"  HorizontalAlignment="Left" Margin="10">
        <StackPanel Orientation="Horizontal" Spacing="5">
            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Version" />
                <DropDown Items="{Binding Versions}" SelectedItem="{Binding SelectedVersion}" />
            </StackPanel>
            
            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Interface" />
                <DropDown Items="{Binding InterfaceOptions}" SelectedIndex="{Binding InterfaceSelectedIndex, Mode=TwoWay}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Speed (kHz)" />
                <DropDown Items="{Binding SpeedOptions}" SelectedIndex="{Binding SpeedSelectedIndex, Mode=TwoWay}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Download" />
                <CheckBox IsChecked="{Binding Download}" />

                <TextBlock Text="Post Download Reset" />
                <CheckBox IsChecked="{Binding PostDownloadReset}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Reset" />
                <CheckBox IsChecked="{Binding Reset}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Spacing="5">
                <TextBlock Text="Run" />
                <CheckBox IsChecked="{Binding Run}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Spacing="5">
            <TextBlock Text="Connect over TCPIP" />
            <CheckBox IsChecked="{Binding UseRemote}" />
          </StackPanel>
          
          <TextBox Watermark="Remote IP" Text="{Binding IPAddress}" UseFloatingWatermark="true" IsEnabled="{Binding UseRemote}" />
        </StackPanel>

        <StackPanel Width="500">
            <TextBlock Text="Target Device" />
            <TextBox Text="{Binding Filter}" Watermark="Search ..." />
            <ListBox Name="deviceListBox" Items="{Binding DeviceList}" SelectedItem="{Binding SelectedDevice}" Width="500" Height="200" AutoScrollToSelectedItem="true">
                <ListBox.DataTemplates>
                    <DataTemplate>
                        <Grid ColumnDefinitions="40*,45*,100*">
                            <TextBlock Text="{Binding Manufacturer}" />
                            <TextBlock Grid.Column="1" Text="{Binding Core}" />
                            <TextBlock Grid.Column="2" Text="{Binding Device}" />
                        </Grid>
                    </DataTemplate>
                </ListBox.DataTemplates>
            </ListBox>
        </StackPanel>
    </StackPanel>
</UserControl>