<commit_before>﻿<UserControl x:Class="OneOffixx.ConnectClient.WinApp.ViewContent.RequestView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OneOffixx.ConnectClient.WinApp.ViewContent"
             xmlns:data ="clr-namespace:OneOffixx.ConnectClient.WinApp.Model"
             xmlns:viewModel ="clr-namespace:OneOffixx.ConnectClient.WinApp.ViewModel"
             xmlns:views = "clr-namespace:OneOffixx.ConnectClient.WinApp.ViewContent"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:w="clr-namespace:OneOffixx.ConnectClient.WinApp.Helpers"
             xmlns:fa="clr-namespace:FontAwesome.WPF;assembly=FontAwesome.WPF"
             xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
             xmlns:behaviour="clr-namespace:OneOffixx.ConnectClient.WinApp.Helpers"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1100">
    <UserControl.Resources>
        <Style x:Key="ActiveDocFuncListBoxItem" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="Padding" Value="2,0,0,0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="#ff8080"/>
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Background" Value="#ffb3b3"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>
        <DockPanel>
            <Border BorderBrush="#CCE51400" BorderThickness="2">
                <Grid>
                    <fa:ImageAwesome Icon="exclamation" Height="25" HorizontalAlignment="Right" VerticalAlignment="Top" Foreground="Red" Margin="100,5,20,0" Visibility="{Binding Path=Request.WarningVisibility, UpdateSourceTrigger=PropertyChanged}" ToolTip="{Binding Path=Request.WarningMessage, UpdateSourceTrigger=PropertyChanged}" />
                    <TabControl Margin="4" DockPanel.Dock="Left">
                        <TabItem Header="History">
                            <DockPanel>
                                <Grid DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right" Content="Clear" Command="{Binding Path=Clear}"/>
                                </Grid>
                                <Grid>
                                    <ListBox ItemContainerStyle="{StaticResource ActiveDocFuncListBoxItem}" Name="ListBox1" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectedItem="{Binding Path=SelectedLogItem }"
                                ItemsSource="{Binding Path=Request.Log, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Width="250">
                                        <i:Interaction.Triggers>
                                            <i:EventTrigger EventName="MouseDoubleClick">
                                                <i:InvokeCommandAction Command="{Binding Path=LoadHistory}"
                                                     CommandParameter="{Binding SelectedItem, ElementName=ListBox1}" />
                                            </i:EventTrigger>
                                        </i:Interaction.Triggers>
                                        <ListBox.ItemTemplate>
                                            <DataTemplate>
                                                <Border>
                                                    <Grid>
                                                        <StackPanel Orientation="Horizontal" ToolTip="{Binding Path=HistoryToolTip}">
                                                            <fa:ImageAwesome Margin="4,0,0,0" Icon="{Binding Path=ActionIcon}" Height="16" Foreground="{Binding Path=ResponseColor}" />
                                                            <TextBlock Text="{Binding Path=RequestEntry.Date}" FontSize="14" Margin="4,0,0,0" VerticalAlignment="Center"/>
                                                        </StackPanel>
                                                        <Button Style="{DynamicResource SquareButtonStyle}" HorizontalAlignment="Right" Height="16" Margin="8,4,4,4" Command="{Binding Path=DeleteValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" CommandParameter="{Binding}">
                                                            <fa:ImageAwesome Icon="Times" Foreground="Red" />
                                                        </Button>
                                                    </Grid>
                                                </Border>
                                            </DataTemplate>
                                        </ListBox.ItemTemplate>
                                    </ListBox>
                                </Grid>
                            </DockPanel>
                        </TabItem>
                    </TabControl>
                </Grid>
            </Border>
            <Border BorderBrush="#CCE51400" BorderThickness="2">
                <TabControl Margin="4" SelectedIndex="{Binding Path=Request.SelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Focusable="False">
                    <TabItem Header="Server" TabIndex="0">
                        <DockPanel LastChildFill="True" >
                            <Grid DockPanel.Dock="Top" Margin="0,0,0,15" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="140*"/>
                                    <ColumnDefinition Width="733*"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Text="Server:"  HorizontalAlignment="Left" Margin="0,3,0,0" />
                                <TextBox Text="{Binding Path=Request.Url, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="60,0,0,0" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                            </Grid>
                            <Grid DockPanel.Dock="Bottom">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Clear Input" Command="{Binding Path=ClearInput}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right"  />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Width="98" Content="Validate" Margin="0,20,8,20" Command="{Binding Validate}"/>
                                    <Button Style="{DynamicResource SquareButtonStyle}" Margin="0,20,8,20" Content="Advanced" Width="98" Command="{Binding OpenAdvSettings}" />
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Send" Command="{Binding Path=Send}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right" />
                                </StackPanel>
                            </Grid>
                            <Grid>
                                <Grid Height="60" Width="400" HorizontalAlignment="Left" VerticalAlignment="Top">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="60" />
                                        <ColumnDefinition Width="240" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Row="0" Grid.Column="0" Text="Username:" Margin="0,3,0,5"/>
                                    <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=Request.Username, UpdateSourceTrigger=PropertyChanged }" Width="240" Margin="0,0,0,5" />
                                    <TextBlock Grid.Row="1" Grid.Column="0" Text="Password:" Margin="0,3,0,0"  />
                                    <PasswordBox Grid.Row="1" Grid.Column="1" Width="240" w:PasswordHelper.Attach="True"
             w:PasswordHelper.Password="{Binding Path=Request.Password, Mode=TwoWay}"  />
                                    <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Path=Request.Password, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding PwVisibility}" />
                                    <CheckBox Name="checkPw"  Grid.Row="1" Grid.Column="2" Margin="4,0,0,0" Command="{Binding Path=Checkbox }" Content="Show" CommandParameter="{Binding IsChecked, ElementName=checkPw}" />
                                </Grid>
                                <TextBox Margin="0,65,0,0" ScrollViewer.VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AllowDrop="True" PreviewDragOver="TextBox_PreviewDragOver"  PreviewDrop="TextBox_PreviewDrop" ></TextBox>
                                <avalonEdit:TextEditor  WordWrap="True"
                                                        ShowLineNumbers="True"
                                                        LineNumbersForeground="Red" 
                                                        Name="textEditor" 
                                                        SyntaxHighlighting="XML" 
                                                        Background="White" 
                                                        Margin="0,65,0,0" 
                                                        ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                        BorderBrush="Black" 
                                                        BorderThickness="1"
                                                        AllowDrop="True" 
                                                        PreviewDragOver="TextBox_PreviewDragOver"  
                                                        PreviewDrop="TextBox_PreviewDrop">
                                    <i:Interaction.Behaviors>
                                        <behaviour:AvalonEditBehaviour GiveMeTheText="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    </i:Interaction.Behaviors>
                                </avalonEdit:TextEditor>
                            </Grid>
                        </DockPanel>
                    </TabItem>
                    <TabItem Header="Client" TabIndex="1">
                        <DockPanel>
                            <Grid DockPanel.Dock="Top" Margin="0,0,0,15">
                                <TextBox Text="{Binding Path=Request.Directory, Mode=TwoWay , UpdateSourceTrigger=PropertyChanged}"  Margin="0,0,98,0" HorizontalAlignment="Stretch" />
                                <Button Style="{DynamicResource SquareButtonStyle}" Content="Browse" Command="{Binding Path=Browse}" HorizontalAlignment="Right" Width="98"/>
                            </Grid>
                            <Grid DockPanel.Dock="Bottom">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Clear Input" Command="{Binding Path=ClearInput}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right"  />
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                                    <Button Style="{DynamicResource SquareButtonStyle}" HorizontalAlignment="Right" Margin="0,20,0,20" Width="98" Content="OK" Command="{Binding Path=Connect }"/>
                                </StackPanel>
                            </Grid>
                            <avalonEdit:TextEditor  WordWrap="True"
                                                        ShowLineNumbers="True"
                                                        LineNumbersForeground="Red" 
                                                        Name="textEditorClient" 
                                                        SyntaxHighlighting="XML" 
                                                        Background="White"
                                                        ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                        BorderBrush="Black" 
                                                        BorderThickness="1"
                                                        AllowDrop="True" 
                                                        PreviewDragOver="TextBox_PreviewDragOver"  
                                                        PreviewDrop="TextBox_PreviewDrop">
                                <i:Interaction.Behaviors>
                                    <behaviour:AvalonEditBehaviour GiveMeTheText="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                </i:Interaction.Behaviors>
                            </avalonEdit:TextEditor>
                        </DockPanel>
                    </TabItem>
                </TabControl>
            </Border>
        </DockPanel>
    </Grid>
</UserControl>
<commit_msg>delete button now only visible on mouseover<commit_after>﻿<UserControl x:Class="OneOffixx.ConnectClient.WinApp.ViewContent.RequestView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OneOffixx.ConnectClient.WinApp.ViewContent"
             xmlns:data ="clr-namespace:OneOffixx.ConnectClient.WinApp.Model"
             xmlns:viewModel ="clr-namespace:OneOffixx.ConnectClient.WinApp.ViewModel"
             xmlns:views = "clr-namespace:OneOffixx.ConnectClient.WinApp.ViewContent"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:w="clr-namespace:OneOffixx.ConnectClient.WinApp.Helpers"
             xmlns:fa="clr-namespace:FontAwesome.WPF;assembly=FontAwesome.WPF"
             xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
             xmlns:behaviour="clr-namespace:OneOffixx.ConnectClient.WinApp.Helpers"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1100">
    <UserControl.Resources>
        <Style x:Key="ActiveDocFuncListBoxItem" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="Padding" Value="2,0,0,0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="true">
                                <Setter Property="Background" TargetName="Bd" Value="#ff8080"/>
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Background" Value="#ffb3b3"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>
        <DockPanel>
            <Border BorderBrush="#CCE51400" BorderThickness="2">
                <Grid>
                    <fa:ImageAwesome Icon="exclamation" Height="25" HorizontalAlignment="Right" VerticalAlignment="Top" Foreground="Red" Margin="100,5,20,0" Visibility="{Binding Path=Request.WarningVisibility, UpdateSourceTrigger=PropertyChanged}" ToolTip="{Binding Path=Request.WarningMessage, UpdateSourceTrigger=PropertyChanged}" />
                    <TabControl Margin="4" DockPanel.Dock="Left">
                        <TabItem Header="History">
                            <DockPanel>
                                <Grid DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right" Content="Clear" Command="{Binding Path=Clear}"/>
                                </Grid>
                                <Grid>
                                    <ListBox ItemContainerStyle="{StaticResource ActiveDocFuncListBoxItem}" Name="ListBox1" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectedItem="{Binding Path=SelectedLogItem }"
                                ItemsSource="{Binding Path=Request.Log, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Width="250">
                                        <i:Interaction.Triggers>
                                            <i:EventTrigger EventName="MouseDoubleClick">
                                                <i:InvokeCommandAction Command="{Binding Path=LoadHistory}"
                                                     CommandParameter="{Binding SelectedItem, ElementName=ListBox1}" />
                                            </i:EventTrigger>
                                        </i:Interaction.Triggers>
                                        <ListBox.ItemTemplate>
                                            <DataTemplate>
                                                <Border>
                                                    <Grid>
                                                        <StackPanel Orientation="Horizontal" ToolTip="{Binding Path=HistoryToolTip}">
                                                            <fa:ImageAwesome Margin="4,0,0,0" Icon="{Binding Path=ActionIcon}" Height="16" Foreground="{Binding Path=ResponseColor}" />
                                                            <TextBlock Text="{Binding Path=RequestEntry.Date}" FontSize="14" Margin="4,0,0,0" VerticalAlignment="Center"/>
                                                        </StackPanel>
                                                        <Button HorizontalAlignment="Right" Height="16" Margin="8,4,4,4" Command="{Binding Path=DeleteValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" CommandParameter="{Binding}">
                                                            <Button.Style>
                                                                <Style TargetType="Button">
                                                                    <Setter Property="Visibility" Value="Hidden"/>
                                                                    <Setter Property="Template">
                                                                        <Setter.Value>
                                                                            <ControlTemplate TargetType="{x:Type Button}">
                                                                                    <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                                                            </ControlTemplate>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    <Style.Triggers>
                                                                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem}, Path=IsMouseOver}" Value="True" >
                                                                            <Setter Property="Button.Visibility" Value="Visible"/>
                                                                        </DataTrigger>
                                                                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem}, Path=IsSelected}" Value="True" >
                                                                            <Setter Property="Button.Visibility" Value="Visible"/>
                                                                        </DataTrigger>
                                                                    </Style.Triggers>
                                                                </Style>
                                                            </Button.Style>
                                                            <fa:ImageAwesome Icon="Trash"  />
                                                        </Button>
                                                    </Grid>
                                                </Border>
                                            </DataTemplate>
                                        </ListBox.ItemTemplate>
                                    </ListBox>
                                </Grid>
                            </DockPanel>
                        </TabItem>
                    </TabControl>
                </Grid>
            </Border>
            <Border BorderBrush="#CCE51400" BorderThickness="2">
                <TabControl Margin="4" SelectedIndex="{Binding Path=Request.SelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Focusable="False">
                    <TabItem Header="Server" TabIndex="0">
                        <DockPanel LastChildFill="True" >
                            <Grid DockPanel.Dock="Top" Margin="0,0,0,15" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="140*"/>
                                    <ColumnDefinition Width="733*"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Text="Server:"  HorizontalAlignment="Left" Margin="0,3,0,0" />
                                <TextBox Text="{Binding Path=Request.Url, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="60,0,0,0" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                            </Grid>
                            <Grid DockPanel.Dock="Bottom">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Clear Input" Command="{Binding Path=ClearInput}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right"  />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Width="98" Content="Validate" Margin="0,20,8,20" Command="{Binding Validate}"/>
                                    <Button Style="{DynamicResource SquareButtonStyle}" Margin="0,20,8,20" Content="Advanced" Width="98" Command="{Binding OpenAdvSettings}" />
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Send" Command="{Binding Path=Send}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right" />
                                </StackPanel>
                            </Grid>
                            <Grid>
                                <Grid Height="60" Width="400" HorizontalAlignment="Left" VerticalAlignment="Top">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="60" />
                                        <ColumnDefinition Width="240" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Row="0" Grid.Column="0" Text="Username:" Margin="0,3,0,5"/>
                                    <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=Request.Username, UpdateSourceTrigger=PropertyChanged }" Width="240" Margin="0,0,0,5" />
                                    <TextBlock Grid.Row="1" Grid.Column="0" Text="Password:" Margin="0,3,0,0"  />
                                    <PasswordBox Grid.Row="1" Grid.Column="1" Width="240" w:PasswordHelper.Attach="True"
             w:PasswordHelper.Password="{Binding Path=Request.Password, Mode=TwoWay}"  />
                                    <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Path=Request.Password, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding PwVisibility}" />
                                    <CheckBox Name="checkPw"  Grid.Row="1" Grid.Column="2" Margin="4,0,0,0" Command="{Binding Path=Checkbox }" Content="Show" CommandParameter="{Binding IsChecked, ElementName=checkPw}" />
                                </Grid>
                                <TextBox Margin="0,65,0,0" ScrollViewer.VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AllowDrop="True" PreviewDragOver="TextBox_PreviewDragOver"  PreviewDrop="TextBox_PreviewDrop" ></TextBox>
                                <avalonEdit:TextEditor  WordWrap="True"
                                                        ShowLineNumbers="True"
                                                        LineNumbersForeground="Red" 
                                                        Name="textEditor" 
                                                        SyntaxHighlighting="XML" 
                                                        Background="White" 
                                                        Margin="0,65,0,0" 
                                                        ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                        BorderBrush="Black" 
                                                        BorderThickness="1"
                                                        AllowDrop="True" 
                                                        PreviewDragOver="TextBox_PreviewDragOver"  
                                                        PreviewDrop="TextBox_PreviewDrop">
                                    <i:Interaction.Behaviors>
                                        <behaviour:AvalonEditBehaviour GiveMeTheText="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    </i:Interaction.Behaviors>
                                </avalonEdit:TextEditor>
                            </Grid>
                        </DockPanel>
                    </TabItem>
                    <TabItem Header="Client" TabIndex="1">
                        <DockPanel>
                            <Grid DockPanel.Dock="Top" Margin="0,0,0,15">
                                <TextBox Text="{Binding Path=Request.Directory, Mode=TwoWay , UpdateSourceTrigger=PropertyChanged}"  Margin="0,0,98,0" HorizontalAlignment="Stretch" />
                                <Button Style="{DynamicResource SquareButtonStyle}" Content="Browse" Command="{Binding Path=Browse}" HorizontalAlignment="Right" Width="98"/>
                            </Grid>
                            <Grid DockPanel.Dock="Bottom">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Bottom">
                                    <Button Style="{DynamicResource SquareButtonStyle}" Content="Clear Input" Command="{Binding Path=ClearInput}" Margin="0,20,0,20" Width="98" HorizontalAlignment="Right"  />
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                                    <Button Style="{DynamicResource SquareButtonStyle}" HorizontalAlignment="Right" Margin="0,20,0,20" Width="98" Content="OK" Command="{Binding Path=Connect }"/>
                                </StackPanel>
                            </Grid>
                            <avalonEdit:TextEditor  WordWrap="True"
                                                        ShowLineNumbers="True"
                                                        LineNumbersForeground="Red" 
                                                        Name="textEditorClient" 
                                                        SyntaxHighlighting="XML" 
                                                        Background="White"
                                                        ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                        BorderBrush="Black" 
                                                        BorderThickness="1"
                                                        AllowDrop="True" 
                                                        PreviewDragOver="TextBox_PreviewDragOver"  
                                                        PreviewDrop="TextBox_PreviewDrop">
                                <i:Interaction.Behaviors>
                                    <behaviour:AvalonEditBehaviour GiveMeTheText="{Binding Path=Request.XmlString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                </i:Interaction.Behaviors>
                            </avalonEdit:TextEditor>
                        </DockPanel>
                    </TabItem>
                </TabControl>
            </Border>
        </DockPanel>
    </Grid>
</UserControl>

{'fraction_non_alphanumeric': 0.09884165163972004, 'fraction_numerical': 0.01405910938598368, 'mean_word_length': 1.258576654932008, 'pattern_counts': {'":': 0, '<': 307, '<?xml version=': 0, '>': 307, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 28}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 279, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1374457', 'n_tokens_mistral': 7132, 'n_tokens_neox': 6382, 'n_words': 981}