<?xml version="1.0" encoding="utf-8"?>
<Window x:Class="QC.QTMApplication.QSPRMainWindow" 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:qtmapp="clr-namespace:QC.QTMApplication" Height="605" Width="1027" WindowStartupLocation="CenterScreen" WindowState="Normal" Topmost="True" Title="QSPR" Icon="/QSPR;component/Icons/QSPR.ico" Focusable="True" Background="#FFD5E7FC" Loaded="QSPRMainWindow_Loaded" Closing="QSPRMainWindow_Closing" MouseDown="Window_MouseDown">
  <FrameworkElement.Resources>
    <ResourceDictionary>
      <LinearGradientBrush x:Key="ContainerBackground" EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
        <GradientStop Color="#FFD5E7FC" Offset="0.02" />
        <GradientStop Color="#FFA5C3F6" Offset="0.80" />
      </LinearGradientBrush>
      <LinearGradientBrush x:Key="ContainerBackground2" EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
        <GradientStop Color="#FFF5FAFF" Offset="0.02" />
        <GradientStop Color="#FFDBE7FF" Offset="0.80" />
      </LinearGradientBrush>
      <Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Button}">
        <Style.Triggers>
          <Trigger Property="UIElement.IsMouseOver" Value="True">
            <Setter Property="Background" Value="#FFFFA500" />
          </Trigger>
        </Style.Triggers>
      </Style>
      <Style x:Key="ButtonOfficeStyle" TargetType="{x:Type Button}">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
        <Setter Property="Padding" Value="2" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Background" Value="#00FFFFFF" />
        <Setter Property="BorderBrush" Value="#00FFFFFF" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
              <Border Name="Bd" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="{TemplateBinding Control.BorderThickness}" Background="{TemplateBinding Control.Background}" Padding="{TemplateBinding Control.Padding}" SnapsToDevicePixels="True">
                <ContentPresenter Name="cp" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" Content="{TemplateBinding ContentControl.Content}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" />
              </Border>
              <ControlTemplate.Triggers>
                <Trigger Property="UIElement.IsMouseOver" Value="True">
                  <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#FF000000" />
                  <Setter TargetName="Bd" Property="Border.Background">
                    <Setter.Value>
                      <SolidColorBrush Color="#FFFFDFA9" />
                    </Setter.Value>
                  </Setter>
                </Trigger>
                <Trigger Property="UIElement.IsKeyboardFocused" Value="True">
                  <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#FF3399FF" />
                  <Setter TargetName="Bd" Property="Border.Background" Value="#FFC2E0FF" />
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                  <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#FF3399FF" />
                  <Setter TargetName="Bd" Property="Border.Background" Value="#FF99CCFF" />
                </Trigger>
                <Trigger Property="IsEnabled" Value="False">
                  <Setter TargetName="cp" Property="UIElement.Opacity" Value="0.5" />
                </Trigger>
              </ControlTemplate.Triggers>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
      </Style>
      <qtmapp:BoolToVisibilityConverter x:Key="boolToVisibilityConverter" InvertVisibility="False" />
    </ResourceDictionary>
  </FrameworkElement.Resources>
  <UIElement.InputBindings>
    <KeyBinding Key="N" Modifiers="Control" CommandParameter="New" Command="{Binding KeyCommand}" />
    <KeyBinding Key="O" Modifiers="Control" CommandParameter="Open" Command="{Binding KeyCommand}" />
    <KeyBinding Key="S" Modifiers="Control" CommandParameter="Save" Command="{Binding KeyCommand}" />
    <KeyBinding Key="X" Modifiers="Control+Shift" CommandParameter="Exit" Command="{Binding KeyCommand}" />
    <KeyBinding Key="L" Modifiers="Control" CommandParameter="Loop Setup" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F" Modifiers="Control" CommandParameter="SearchSetting" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F3" CommandParameter="Search" Command="{Binding KeyCommand}" />
    <KeyBinding Key="B" Modifiers="Control" CommandParameter="ShowStatusBar" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F3" Modifiers="Control" CommandParameter="Reset All" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F5" CommandParameter="Run Tree" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F5" Modifiers="Shift" CommandParameter="Stop Tree" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F11" CommandParameter="Synchronize" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F9" Modifiers="Control+Shift" CommandParameter="DeleteAllBreakpoints" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F10" Modifiers="Control+Shift" CommandParameter="Enable All Breakpoints" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F11" Modifiers="Control+Shift" CommandParameter="Disable All Breakpoints" Command="{Binding KeyCommand}" />
    <KeyBinding Key="F1" CommandParameter="QSPR Help" Command="{Binding KeyCommand}" />
    <KeyBinding Key="R" Modifiers="Control" CommandParameter="Restore Window Layout" Command="{Binding KeyCommand}" />
    <KeyBinding Key="T" Modifiers="Control" CommandParameter="Tree Edit Mode Layout" Command="{Binding KeyCommand}" />
    <KeyBinding Key="E" Modifiers="Control" CommandParameter="Test Results Layout" Command="{Binding KeyCommand}" />
    <KeyBinding Key="D" Modifiers="Control" CommandParameter="Debug Layout" Command="{Binding KeyCommand}" />
    <KeyBinding Key="D2" Modifiers="Control" CommandParameter="QSPR2.0 Window Layout" Command="{Binding KeyCommand}" />
    <KeyBinding Key="A" Modifiers="Control+Shift" CommandParameter="Abort" Command="{Binding KeyCommand}" />
  </UIElement.InputBindings>
  <Grid Name="mainWindowGrid" Focusable="True" Background="#FFD5E7FC" MouseDown="mainWindowGrid_MouseDown">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="2*" />
      <ColumnDefinition Width="3" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Menu Name="QsprMainMenu" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Focusable="True" Background="#FFD5E7FC" MouseDown="QsprMainMenu_MouseDown">
      <MenuItem Header="_File" Tag="File">
        <MenuItem Header="_New" CommandParameter="New" Tag="New" InputGestureText="Ctrl+N" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/NewDocument.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="_Open" CommandParameter="Open" Tag="Open" InputGestureText="Ctrl+O" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/folder-open.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="_Save" CommandParameter="Save" Tag="Save" InputGestureText="Ctrl+S" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Save.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="SaveAs" CommandParameter="SaveAs" Tag="SaveAs" Command="{Binding KeyCommand}" />
        <Separator />
        <MenuItem Name="RecentFilesMenuItem" Header="Recent Files" />
        <Separator />
        <MenuItem Header="Exit" CommandParameter="Exit" Tag="Exit" InputGestureText="Ctrl+Shift+X" Command="{Binding KeyCommand}" />
      </MenuItem>
      <MenuItem Header="Edit" Tag="Edit" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}">
        <MenuItem Header="Cut" CommandParameter="Cut" Tag="Cut" InputGestureText="Ctrl+X" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Cut.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Copy" CommandParameter="Copy" Tag="Copy" InputGestureText="Ctrl+C" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Copy.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Paste" CommandParameter="Paste" Tag="Paste" InputGestureText="Ctrl+V" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Paste.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <Separator />
        <MenuItem Header="Delete" CommandParameter="Delete" Tag="Delete" InputGestureText="Ctrl+Del" Command="{Binding KeyCommand}" />
        <Separator />
        <MenuItem Header="New Folder" CommandParameter="New Folder" Tag="New Folder" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/FolderNew.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <Separator />
        <MenuItem Header="Loop Setup" CommandParameter="Loop Setup" Tag="Loop Setup" InputGestureText="Ctrl+L" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Loop.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Search Setting" CommandParameter="SearchSetting" Tag="SearchSetting" InputGestureText="Ctrl+F" Command="{Binding KeyCommand}" />
        <MenuItem Header="Search" CommandParameter="Search" Tag="Search" InputGestureText="F3" Command="{Binding KeyCommand}" />
      </MenuItem>
      <MenuItem Header="View" Tag="View">
        <MenuItem Header="Reset Tree Icons" CommandParameter="Reset Tree Icons" Tag="Reset Tree Icons" Command="{Binding KeyCommand}" />
        <MenuItem Header="Reset Test/Folder Icons" CommandParameter="Reset Test/Folder Icons" Tag="Reset Test/Folder Icons" Command="{Binding KeyCommand}" />
        <MenuItem Header="Clear Debug Windows" CommandParameter="Clear Debug Windows" Tag="Clear Debug Windows" Command="{Binding KeyCommand}" />
        <MenuItem Header="Clear Test Results" CommandParameter="Clear Test Results" Tag="Clear Test Results" Command="{Binding KeyCommand}" />
        <Separator />
        <MenuItem Header="Clear Status Bar" CommandParameter="Clear Status Bar" Tag="Clear Status Bar" Command="{Binding KeyCommand}" />
        <MenuItem Name="ShowStatusBarMenuItem" Header="Show Status Bar" IsChecked="True" IsCheckable="True" CommandParameter="ShowStatusBar" Tag="ShowStatusBar" InputGestureText="Ctrl+B" Command="{Binding KeyCommand}" />
        <Separator />
        <MenuItem Header="Reset All" CommandParameter="Reset All" Tag="Reset All" InputGestureText="Ctrl+F3" Command="{Binding KeyCommand}" />
      </MenuItem>
      <MenuItem Header="Tests" Tag="Tests">
        <MenuItem Header="Run Tree" CommandParameter="Run Tree" Tag="Run Tree" InputGestureText="F5" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Start.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Stop Tree" CommandParameter="Stop Tree" Tag="Stop Tree" InputGestureText="Shift+F5" IsEnabled="False" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Stop.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <Separator />
        <MenuItem Header="Synchronize" CommandParameter="Synchronize" Tag="Synchronize" InputGestureText="F11" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}" />
        <Separator />
        <MenuItem Header="Simulation Mode" IsCheckable="True" CommandParameter="Simulation Mode" Tag="Simulation Mode" Command="{Binding KeyCommand}" />
      </MenuItem>
      <MenuItem Header="Debug" Tag="Debug">
        <MenuItem Header="Delete All Breakpoints" CommandParameter="DeleteAllBreakpoints" Tag="DeleteAllBreakpoints" InputGestureText="Ctrl+Shift+F9" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/breakPoint.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Enable All Breakpoints" CommandParameter="Enable All Breakpoints" Tag="Enable All Breakpoints" InputGestureText="Ctrl+Shift+F10" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/EnableAllBreakPoints.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="Disable All Breakpoints" CommandParameter="Disable All Breakpoints" Tag="Disable All Breakpoints" InputGestureText="Ctrl+Shift+F11" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/DisableBreakPoint.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
      </MenuItem>
      <MenuItem Header="Options" Tag="Options">
        <MenuItem Header="Edit Configurations" CommandParameter="Edit Work Space Configuration" Tag="Edit Work Space Configuration" Command="{Binding KeyCommand}" />
      </MenuItem>
      <MenuItem Header="Windows" Tag="Windows">
        <MenuItem Header="Restore Window Layout" CommandParameter="Restore Window Layout" Tag="Restore Window Layout" InputGestureText="Ctrl+R" Command="{Binding KeyCommand}" />
        <MenuItem Header="Tree Edit Mode Layout" CommandParameter="Tree Edit Mode Layout" Tag="Tree Edit Mode Layout" InputGestureText="Ctrl+T" Command="{Binding KeyCommand}" />
        <MenuItem Header="Test Results Layout" CommandParameter="Test Results Layout" Tag="Test Results Layout" InputGestureText="Ctrl+E" Command="{Binding KeyCommand}" />
        <MenuItem Header="Debug Layout" CommandParameter="Debug Layout" Tag="Debug Layout" InputGestureText="Ctrl+D" Command="{Binding KeyCommand}" />
        <MenuItem Header="QSPR 2.0 Window Layout" CommandParameter="QSPR2.0 Window Layout" Tag="QSPR2.0 Window Layout" InputGestureText="Ctrl+2" Command="{Binding KeyCommand}" />
        <Separator />
        <MenuItem Header="Customize Window Layout">
          <MenuItem Header="Restore Customized Layout" CommandParameter="Restore Customized Layout" Tag="Restore Customized Layout" Command="{Binding KeyCommand}" />
          <MenuItem Header="Save As Customized Layout" CommandParameter="Save As Customized Layout" Tag="Save As Customized Layout" Command="{Binding KeyCommand}" />
        </MenuItem>
      </MenuItem>
      <MenuItem Header="Help" Tag="Help">
        <MenuItem Header="QSPR Help" CommandParameter="QSPR Help" Tag="QSPR Help" InputGestureText="F1" Command="{Binding KeyCommand}">
          <MenuItem.Icon>
            <Image Source="/QSPR;component/Icons/Help.png" Width="16" Height="16" />
          </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="About QSPR" CommandParameter="About QSPR" Tag="About QSPR" Command="{Binding KeyCommand}" />
        <MenuItem Header="Tree Icon Legend" CommandParameter="Tree Icon Legend" Tag="Tree Icon Legend" Command="{Binding KeyCommand}" />
      </MenuItem>
    </Menu>
    <Grid Row="1" Column="0" ColumnSpan="3">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="1*" />
      </Grid.ColumnDefinitions>
      <ToolBar Name="QsprMainToolBar" Grid.Row="0" Grid.Column="0" Focusable="True" Background="{DynamicResource ContainerBackground}" ToolBarTray.IsLocked="True" MouseDown="QsprMainToolBar_MouseDown" Loaded="mainToolbar_Loaded">
        <Button CommandParameter="New" Tag="New" ToolTip="New (Ctrl + N)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/NewDocument.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Open" Tag="Open" ToolTip="Open (Ctrl + O)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/folder-open.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Save" Tag="Save" ToolTip="Save (Ctrl + S)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Save.png" Width="20" Height="20" />
        </Button>
        <Separator Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}" />
        <Button CommandParameter="Cut" Tag="Cut" ToolTip="Cut (Ctrl + X)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}">
          <Image Source="/QSPR;component/Icons/Cut.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Copy" Tag="Copy" ToolTip="Copy (Ctrl + C)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}">
          <Image Source="/QSPR;component/Icons/Copy.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Paste" Tag="Paste" ToolTip="Paste (Ctrl + V)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}">
          <Image Source="/QSPR;component/Icons/Paste.png" Width="20" Height="20" />
        </Button>
        <Separator />
        <Button CommandParameter="Run Tree" Tag="Run Tree" ToolTip="Run Tree (F5)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Start.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Rerun" Tag="Rerun" ToolTip="Rerun Failed Tests" Style="{DynamicResource ButtonOfficeStyle}" IsEnabled="False" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Rerun.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Pause" Tag="Pause" ToolTip="Pause" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Pause.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Stop Tree" Tag="Stop Tree" ToolTip="Stop Tree (Shift + F5)" Style="{DynamicResource ButtonOfficeStyle}" IsEnabled="False" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Stop.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="DVTTest" Tag="DVTTest" ToolTip="DVTTest" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/DVT_Start.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="Abort" Tag="Abort" ToolTip="Abort (Ctrl + Shift + A)" Style="{DynamicResource ButtonOfficeStyle}" IsEnabled="False" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Abort.png" Width="20" Height="20" />
        </Button>
        <Separator />
        <Button CommandParameter="Synchronize" Tag="Synchronize" ToolTip="Synchronize (F11)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}">
          <Image Source="/QSPR;component/Icons/Synchronize.png" Width="20" Height="20" />
        </Button>
        <Separator Visibility="{Binding Path=WPFTestTreeWindowCollection.TreeInFocus, Converter={StaticResource boolToVisibilityConverter}}" />
        <Button CommandParameter="Login" Tag="Login" ToolTip="Login" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Login.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="QSPR Help" Tag="QSPR Help" ToolTip="QSPR Help (F1)" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/Help.png" Width="20" Height="20" />
        </Button>
        <Button CommandParameter="CustomLink" Tag="CustomLink" ToolTip="Custom Tool. Option is set in Workspaceconfig" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}">
          <Image Source="/QSPR;component/Icons/CustomMenuIcon.png" Width="20" Height="20" />
        </Button>
        <Separator />
        <Button CommandParameter="Registration#####Register Test Tree" Tag="Registration#####Register Test Tree" ToolTip="Register Test Tree" Style="{DynamicResource ButtonOfficeStyle}" Command="{Binding KeyCommand}" Visibility="{Binding Path=WPFTestTreeWindowCollection.RegistrationPluginLoaded, Converter={StaticResource boolToVisibilityConverter}}">
          <Image Source="/QSPR;component/Icons/TestTreeRegistration.png" Width="20" Height="20" />
        </Button>
      </ToolBar>
    </Grid>
    <Grid Name="testPluginsGrid" Row="2" Column="0">
      <Grid.RowDefinitions>
        <RowDefinition Name="testTreePluginsRowDef" Height="2*" />
        <RowDefinition Name="testPluginsSplitterRowDef" Height="3" />
        <RowDefinition Name="testResultsPluginsRowDef" Height="*" />
      </Grid.RowDefinitions>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>
      <DockPanel Name="TestTreeContainerDockPanel" Grid.Row="0" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="True">
        <Border BorderThickness="2" CornerRadius="3" DockPanel.Dock="Top" Background="{DynamicResource ContainerBackground}">
          <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Image Source="/QSPR;component/Icons/Tree.png" Width="14" Height="14" DockPanel.Dock="Left" Margin="0,0,3,0" />
            <TextBlock DockPanel.Dock="Left" Text="Test Tree plugins" FontWeight="Bold" FontStyle="Italic" />
            <Button Name="TestTreeContainerMaxButton" ToolTip="Maximize Test tree plugins" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="TestTreeControlMax_Click">
              <Image Source="/QSPR;component/Icons/Maximize.png" Width="12" Height="12" />
            </Button>
            <Button Name="TestTreeContainerRestoreButton" Visibility="Collapsed" ToolTip="Restore Test Tree plugins" DockPanel.Dock="Right" MaxWidth="50" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="TestTreeControlRestore_Click">
              <Image Source="/QSPR;component/Icons/Restore.png" Width="12" Height="12" />
            </Button>
          </DockPanel>
        </Border>
        <ContentControl Name="TestTreePluginsContenControl" />
      </DockPanel>
      <GridSplitter Grid.Row="1" Grid.Column="0" BorderBrush="#FF000000" Height="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ShowsPreview="True" Background="#FFA5C3F6" />
      <DockPanel Name="TestResultsContainerDockPanel" Grid.Row="2" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="True" GotFocus="TestResultsContainerDockPanel_GotFocus">
        <Border BorderThickness="2" CornerRadius="3" DockPanel.Dock="Top" Background="{DynamicResource ContainerBackground}">
          <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Image Source="/QSPR;component/Icons/TreeResultsContainer.png" Width="16" Height="16" DockPanel.Dock="Left" Margin="0,0,3,0" />
            <TextBlock DockPanel.Dock="Left" Text="Test Results Plugins" FontWeight="Bold" FontStyle="Italic" />
            <Button Name="TestResultsContainerMaxButton" ToolTip="Maximize Test Results Plugins" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="TestResultsControlMax_Click">
              <Image Source="/QSPR;component/Icons/Maximize.png" Width="12" Height="12" />
            </Button>
            <Button Name="TestResultsContainerRestoreButton" Visibility="Collapsed" ToolTip="Restore Test Results Plugins" DockPanel.Dock="Right" MaxWidth="50" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="TestResultsControlRestore_Click">
              <Image Source="/QSPR;component/Icons/Restore.png" Width="12" Height="12" />
            </Button>
          </DockPanel>
        </Border>
        <ContentControl Name="TestResultsPluginsContentControl" />
      </DockPanel>
    </Grid>
    <GridSplitter Name="pluginsSplitter" BorderBrush="#FF000000" Grid.Row="2" Grid.Column="1" Width="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ShowsPreview="True" Background="#FFA5C3F6" />
    <Grid Name="debugUserPluginsGrid" Row="2" Column="2" GotFocus="debugUserPluginsGrid_GotFocus">
      <Grid.RowDefinitions>
        <RowDefinition Name="userWinPluginsRowDef" Height="165*" />
        <RowDefinition Name="debugUserPluginsGridSplitter" Height="3" />
        <RowDefinition Name="debugPluginsRowDef" Height="179*" />
      </Grid.RowDefinitions>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>
      <DockPanel Name="UserCollectionContainerDockPanel" Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="True">
        <Border BorderThickness="2" CornerRadius="3" DockPanel.Dock="Top" Background="{DynamicResource ContainerBackground}">
          <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Image Source="/QSPR;component/Icons/UserCollectionContainer.png" Width="16" Height="16" DockPanel.Dock="Left" Margin="0,0,3,0" />
            <TextBlock DockPanel.Dock="Left" Text="User Collection" FontWeight="Bold" FontStyle="Italic" />
            <Button Name="UserCollectionMinButton" ToolTip="Minimize User collection plugins" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="UserCollectionMin_Click">
              <Image Source="/QSPR;component/Icons/Minimize.png" Width="12" Height="12" />
            </Button>
            <Button Name="UserCollectionRestoreButton" Visibility="Collapsed" ToolTip="Restore User collection plugins" DockPanel.Dock="Right" MaxWidth="50" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="UserCollectionRestore_Click">
              <Image Source="/QSPR;component/Icons/Restore.png" Width="12" Height="12" />
            </Button>
          </DockPanel>
        </Border>
        <ContentControl Name="UserCollectionPluginsContentControl" />
      </DockPanel>
      <GridSplitter Name="DebugGridSplitter" Grid.Row="1" Height="3" BorderBrush="#FF000000" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ShowsPreview="True" Background="#FFA5C3F6" />
      <DockPanel Name="DebugWindowsContainerDockPanel" Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="True">
        <Border BorderThickness="2" CornerRadius="3" DockPanel.Dock="Top" Background="{DynamicResource ContainerBackground}">
          <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Image Source="/QSPR;component/Icons/DebugWindowContainer.png" Width="20" Height="20" DockPanel.Dock="Left" Margin="0,0,3,0" />
            <TextBlock DockPanel.Dock="Left" Text="Debug Windows" FontWeight="Bold" FontStyle="Italic" />
            <Button Name="DebugWindowContainerMaxButton" ToolTip="Maximize Debug windows" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="DebugWindowsControlMax_Click">
              <Image Source="/QSPR;component/Icons/Maximize.png" Width="12" Height="12" />
            </Button>
            <Button Name="DebugWindowContainerRestoreButton" Visibility="Collapsed" ToolTip="Restore Debug windows" DockPanel.Dock="Right" MaxWidth="50" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" Click="DebugWindowsControlRestore_Click">
              <Image Source="/QSPR;component/Icons/Restore.png" Width="12" Height="12" />
            </Button>
            <Button ToolTip="Veritcal Split" Content="V" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" FontWeight="Bold" FontSize="12" Click="ArrangeDeubgWinInVerticalMode_Click" />
            <Button ToolTip="Horizontal Split" Content="H" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" FontWeight="Bold" FontSize="12" Click="ArrangeDeubgWinInHorizontalMode_Click" />
            <Button ToolTip="Tab grouping" Content="T" DockPanel.Dock="Right" MaxWidth="30" HorizontalAlignment="Right" Margin="2,0,2,0" Style="{DynamicResource ButtonOfficeStyle}" FontSize="12" FontWeight="Bold" Click="ArrangeDeubgWinInTabbedMode_Click" />
          </DockPanel>
        </Border>
        <ContentControl Name="DebugCollectionPluginsContentControl" />
      </DockPanel>
    </Grid>
    <StatusBar Name="ultraStatusBar1" Grid.Row="3" Grid.ColumnSpan="3" Focusable="True" Background="{DynamicResource ContainerBackground}" MouseEnter="StatusBarMouseEnter_Click" MouseDown="ultraStatusBar1_MouseDown">
      <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
          <Grid>
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
          </Grid>
        </ItemsPanelTemplate>
      </ItemsControl.ItemsPanel>
      <StatusBarItem Name="ProgressStatusBarItem" Grid.Column="0" BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2">
        <Grid Margin="2">
          <ProgressBar Name="Progress" Height="15" Visibility="Collapsed" Width="{Binding ElementName=ProgressStatusBarItem, Path=ActualWidth}" />
          <TextBlock Name="TextBlockPercentage" Text="0%" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding ElementName=Progress, Path=Visibility}" />
        </Grid>
      </StatusBarItem>
      <StatusBarItem Grid.Column="1" BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2">
        <TextBlock Name="testName" Text="No Test Running" />
      </StatusBarItem>
      <StatusBarItem Grid.Column="2" BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2">
        <TextBlock Name="debug" Text="Messages" />
      </StatusBarItem>
      <StatusBarItem BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2" Grid.Column="3">
        <TextBlock Name="loop" Text="Loop Conditions" />
      </StatusBarItem>
      <StatusBarItem BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2" Grid.Column="4">
        <TextBlock Name="unitName" Text="Unit Name" />
      </StatusBarItem>
      <StatusBarItem BorderThickness="1" BorderBrush="#FF6F90D3" Margin="2" Grid.Column="5">
        <TextBlock Name="PluginStatus" Text="" />
      </StatusBarItem>
    </StatusBar>
  </Grid>
</Window>