<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="514 MSG SCO Administration Tool" Height="900" Width="1400" MinWidth="1100" MinHeight="700"
    WindowStartupLocation="CenterScreen" Background="{DynamicResource AppBackgroundBrush}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ThemeResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="200"/>
        </Grid.RowDefinitions>

        <!-- ============================================================ -->
        <!-- ROW 0: APP BAR                                               -->
        <!-- ============================================================ -->
        <Border Grid.Row="0" Background="{DynamicResource AppBarBackgroundBrush}" Padding="10,8">
            <WrapPanel>
                <Button Name="BtnImport" Content="Import File (.txt, .csv, .xlsx)"
                        Width="210" Height="28" Margin="0,0,8,0"
                        Background="#007ACC" Foreground="White"
                        FontSize="11" FontWeight="Bold"/>
                <Button Name="BtnISEPrimary" Content="CISCO ISE Primary"
                        Width="130" Height="28" Margin="0,0,4,0"
                        Background="#005A9C" Foreground="White" FontSize="11"/>
                <Button Name="BtnISEBackup" Content="CISCO ISE Backup"
                        Width="130" Height="28" Margin="0,0,12,0"
                        Background="#6C757D" Foreground="White" FontSize="11"/>
                <Button Name="BtnRefreshInventory" Content="Reload Inventory"
                        Width="115" Height="28" Margin="0,0,14,0" FontSize="11"/>

                <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}"
                           Background="#555" Margin="0,2,14,2"/>

                <TextBlock Text="Prefix:" Foreground="#CCC"
                           VerticalAlignment="Center" Margin="0,0,4,0" FontSize="11"/>
                <TextBox Name="TxtPrefix" Width="55" Height="24" Margin="0,0,10,0"
                         CharacterCasing="Upper" VerticalContentAlignment="Center"
                         FontSize="11" Background="#3E3E42" Foreground="White"
                         BorderBrush="#555" BorderThickness="1"/>

                <TextBlock Text="Type:" Foreground="#CCC"
                           VerticalAlignment="Center" Margin="0,0,4,0" FontSize="11"/>
                <ComboBox Name="CmbDeviceType" Width="120" Height="24" Margin="0,0,10,0"
                          FontSize="11">
                    <ComboBoxItem Content="W - Workstation"/>
                    <ComboBoxItem Content="L - Laptop"/>
                    <ComboBoxItem Content="T - Tablet"/>
                    <ComboBoxItem Content="V - Virtual Machine"/>
                </ComboBox>

                <TextBlock Text="SN Digits:" Foreground="#CCC"
                           VerticalAlignment="Center" Margin="0,0,4,0" FontSize="11"/>
                <TextBox Name="TxtSnDigits" Width="40" Height="24" Margin="0,0,14,0"
                         VerticalContentAlignment="Center" FontSize="11"
                         Background="#3E3E42" Foreground="White"
                         BorderBrush="#555" BorderThickness="1"/>

                <ToggleButton Name="ChkDevMode" Content="DEV Mode"
                              Style="{StaticResource SwitchToggleStyle}"
                              VerticalAlignment="Center" Margin="0,0,14,0"
                              Foreground="#FFD700" FontWeight="Bold" FontSize="11"/>

                <!-- Settings gear button -->
                <Button Name="BtnSettings" Content="&#9881; Settings"
                        Width="100" Height="28" FontSize="11"
                        Background="#555" Foreground="White"
                        BorderBrush="#777" BorderThickness="1"/>

                <Border Name="BdrAccountTypeTag"
                        VerticalAlignment="Center" Margin="8,0,0,0"
                        CornerRadius="3" Padding="10,4"
                        Background="#6C757D">
                    <TextBlock Name="TxtAccountTypeTag" Text="USER"
                               Foreground="White" FontSize="11" FontWeight="Bold"/>
                </Border>
            </WrapPanel>
        </Border>

        <!-- Settings popup panel (hidden by default) -->
        <Border Name="SettingsPanel" Grid.Row="0" Grid.RowSpan="4"
                Background="{DynamicResource AppBarBackgroundBrush}" CornerRadius="8"
                BorderBrush="#555" BorderThickness="1"
                Width="320" Height="372"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="0,50,12,0" Padding="16"
                Visibility="Collapsed" Panel.ZIndex="100">
            <StackPanel>
                <TextBlock Text="SETTINGS" FontSize="14" FontWeight="Bold"
                           Foreground="White" Margin="0,0,0,14"/>
                <TextBlock Text="UI Mode" FontSize="12"
                           Foreground="#CCC" Margin="0,0,0,6"/>
                <ComboBox Name="CmbUIMode" Height="26" Margin="0,0,0,12">
                    <ComboBoxItem Content="Hamburger"/>
                    <ComboBoxItem Content="AppBar"/>
                </ComboBox>

                <TextBlock Text="Start Tab" FontSize="12"
                           Foreground="#CCC" Margin="0,0,0,6"/>
                <ComboBox Name="CmbStartTab" Height="26" Margin="0,0,0,8">
                    <ComboBoxItem Content="Computer"/>
                    <ComboBoxItem Content="User"/>
                    <ComboBoxItem Content="Last Active"/>
                </ComboBox>

                <Button Name="BtnShortNameMap" Content="ShortName Map"
                        Height="28" Margin="0,8,0,12"
                        Background="#3E3E42" Foreground="White"
                        BorderBrush="#555" FontSize="11"/>
                <ToggleButton Name="ChkSimulation" Content="AD Simulation (use local DB)"
                              Style="{StaticResource SwitchToggleStyle}"
                              Foreground="White" FontSize="11"
                              Margin="0,0,0,12"/>
                <ToggleButton Name="ChkDarkMode" Content="Dark Mode"
                              Style="{StaticResource SwitchToggleStyle}"
                              Foreground="White" FontSize="11"
                              Margin="0,0,0,12"/>
                <TextBlock Text="Window Size" FontSize="12"
                           Foreground="#CCC" Margin="0,0,0,8"/>
                <CheckBox Name="ChkAutoSize" Content="Auto-size to display"
                          Foreground="White" FontSize="11"
                          Margin="0,0,0,6"/>
                <Grid Margin="0,0,0,14">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="W:" Grid.Column="0" Foreground="#CCC"
                               VerticalAlignment="Center" Margin="0,0,4,0" FontSize="11"/>
                    <TextBox Name="TxtWindowWidth" Grid.Column="1" Height="24"
                             Margin="0,0,8,0" FontSize="11" Width="60"
                             Background="#3E3E42" Foreground="White"
                             BorderBrush="#555" BorderThickness="1"/>
                    <TextBlock Text="H:" Grid.Column="2" Foreground="#CCC"
                               VerticalAlignment="Center" Margin="0,0,4,0" FontSize="11"/>
                    <TextBox Name="TxtWindowHeight" Grid.Column="3" Height="24"
                             FontSize="11" Width="60"
                             Background="#3E3E42" Foreground="White"
                             BorderBrush="#555" BorderThickness="1"/>
                </Grid>
                <Button Name="BtnCloseSettings" Content="Close" Height="28"
                        Background="#555" Foreground="White" Margin="0,6,0,0"/>
            </StackPanel>
        </Border>

        <!-- ============================================================ -->
        <!-- ROW 1: MAIN CONTENT (TabControl)                             -->
        <!-- ============================================================ -->
        <TabControl Name="MainTabControl" Grid.Row="1" Background="{DynamicResource PanelBackgroundBrush}" Margin="0,8,0,0">

            <!-- COMPUTER MANAGEMENT TAB -->
            <TabItem Header="Computer Management" Name="TabComputer">
                <Grid Margin="15">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="220"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1.25*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <!-- LEFT: ACTIONS -->
                    <GroupBox Header="Select Action" Grid.Column="0" Grid.Row="0"
                              Margin="0,0,15,0" FontWeight="Bold">
                        <StackPanel Margin="10" TextElement.FontWeight="Normal">
                            <RadioButton Name="RadGet" Content="Get Computer Info"
                                         IsChecked="True" Margin="0,6"/>
                            <RadioButton Name="RadEnable" Content="Enable Computer"
                                         Margin="0,6"/>
                            <RadioButton Name="RadDisable" Content="Disable Computer"
                                         Margin="0,6"/>
                            <RadioButton Name="RadReset" Content="Reset Computer"
                                         Margin="0,6"/>
                            <Separator Margin="0,8"/>
                            <RadioButton Name="RadNew" Content="Create New Computer"
                                         Margin="0,6"/>
                            <CheckBox Name="ChkTechRefreshPackage"
                                      Content="Tech Refresh Package"
                                      Margin="18,0,0,0" 
                                      FontStyle="Italic"/>
                            <RadioButton Name="RadRemove" Content="Remove Computer"
                                         Margin="0,6" Foreground="DarkRed"/>
                            <CheckBox Name="ChkRecycleBin"
                                      Content="Include Recycle Bin"
                                      Margin="18,0,0,0" 
                                      FontStyle="Italic"/>
                        </StackPanel>
                    </GroupBox>

                    <!-- CENTER: WORK AREA -->
                    <Grid Grid.Column="1" Grid.Row="0" Margin="0,0,15,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <!-- Target Computers -->
                        <GroupBox Header="Target Computer(s)" Grid.Row="0" FontWeight="Bold">
                            <Grid Margin="10" TextElement.FontWeight="Normal">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <TextBlock Text="Enter serials/names (Press ENTER to format). Click an item in the target list to view inventory details."
                                           Foreground="Gray" Margin="0,0,0,5" Grid.Row="0"
                                           TextWrapping="Wrap"/><Grid Grid.Row="1">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="1.3*"/>
                                        <ColumnDefinition Width="12"/>
                                        <ColumnDefinition Width="1*"/>
                                    </Grid.ColumnDefinitions>
                                    <TextBox Name="TxtComputerNames" Grid.Column="0"
                                             MinHeight="180"
                                             TextWrapping="Wrap" AcceptsReturn="True"
                                             VerticalScrollBarVisibility="Auto"
                                             VerticalContentAlignment="Top"
                                             CharacterCasing="Upper"/>
                                    <ListView Name="LstTargets" Grid.Column="2"
                                              MinHeight="180" FontFamily="Consolas">
                                        <ListView.View>
                                            <GridView>
                                                <GridViewColumn Width="30">
                                                    <GridViewColumn.CellTemplate>
                                                        <DataTemplate>
                                                            <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"
                                                                      VerticalAlignment="Center"
                                                                      HorizontalAlignment="Center"/>
                                                        </DataTemplate>
                                                    </GridViewColumn.CellTemplate>
                                                </GridViewColumn>
                                                <GridViewColumn Header="Computer Name"
                                                                DisplayMemberBinding="{Binding Name}"
                                                                Width="180"/>
                                            </GridView>
                                        </ListView.View>
                                    </ListView>
                                </Grid>
                                <Grid Grid.Row="2" Margin="0,5,0,0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="1.3*"/>
                                        <ColumnDefinition Width="12"/>
                                        <ColumnDefinition Width="1*"/>
                                    </Grid.ColumnDefinitions>
                                    <Button Name="BtnClearAll" Grid.Column="0" Content="Clear All"
                                            Height="26" HorizontalAlignment="Left" Width="85"/>
                                    <Button Name="BtnSelectAll" Grid.Column="2" Content="Select All"
                                            Height="26" HorizontalAlignment="Right" Width="100"/>
                                </Grid>
                            </Grid>
                        </GroupBox>

                        <!-- New Computer Details -->
                        <GroupBox Name="GrpNewDetails" Header="New Computer Details"
                                  Grid.Row="1" Margin="0,10,0,0" FontWeight="Bold"
                                  Visibility="Collapsed">
                            <Grid Margin="10" TextElement.FontWeight="Normal">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <TextBlock Text="OS:" Grid.Row="0" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtOS" Grid.Row="0" Grid.Column="1"
                                         Margin="0,3" CharacterCasing="Upper"/>

                                <TextBlock Text="Computer Model:" Grid.Row="1" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtModel" Grid.Row="1" Grid.Column="1"
                                         Margin="0,3" CharacterCasing="Upper"/>

                                <TextBlock Text="Organization:" Grid.Row="2" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <ComboBox Name="CmbOrg" Grid.Row="2" Grid.Column="1"
                                          Margin="0,3" IsEditable="True"
                                          IsTextSearchEnabled="True" StaysOpenOnEdit="True"
                                          Background="{DynamicResource ControlBackgroundBrush}"
                                          Foreground="{DynamicResource ControlForegroundBrush}"
                                          BorderBrush="{DynamicResource ControlBorderBrush}"/>

                                <TextBlock Text="Building Number:" Grid.Row="3" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtBldg" Grid.Row="3" Grid.Column="1"
                                         Margin="0,3" CharacterCasing="Upper"/>

                                <TextBlock Text="Room Number:" Grid.Row="4" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtRoom" Grid.Row="4" Grid.Column="1"
                                         Margin="0,3" CharacterCasing="Upper"/>

                                <TextBlock Text="Extension:" Grid.Row="5" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtExt" Grid.Row="5" Grid.Column="1"
                                         Margin="0,3" CharacterCasing="Upper"/>

                                <TextBlock Text="Description:" Grid.Row="6" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3"
                                           FontWeight="Bold"/>
                                <TextBox Name="TxtDesc" Grid.Row="6" Grid.Column="1"
                                         Margin="0,3"
                                         Background="{DynamicResource ControlBackgroundBrush}"
                                         Foreground="{DynamicResource ControlForegroundBrush}"
                                         BorderBrush="{DynamicResource ControlBorderBrush}"
                                         CharacterCasing="Upper"/>

                                <Button Name="BtnPopulateFromInventory"
                                        Content="Populate from Selected Computer"
                                        Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2"
                                        Height="28" Width="200" Margin="0,10,0,0"
                                        HorizontalAlignment="Center"/>
                            </Grid>
                        </GroupBox>
                    </Grid>

                    <!-- RIGHT: INVENTORY -->
                    <GroupBox Header="Inventory / Equipment Custodian Details"
                              Grid.Column="2" Grid.Row="0" FontWeight="Bold">
                        <Grid Margin="10" TextElement.FontWeight="Normal">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>

                            <TextBlock Text="Status:" Grid.Row="0" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"
                                       FontWeight="Bold"/>
                            <TextBox Name="TxtInvStatus" Grid.Row="0" Grid.Column="1"
                                     Margin="0,3"
                                     Background="{DynamicResource ControlBackgroundBrush}"
                                     Foreground="{DynamicResource ControlForegroundBrush}"
                                     BorderBrush="{DynamicResource ControlBorderBrush}"
                                     IsReadOnly="True"/>

                            <TextBlock Text="Equipment Custodian:" Grid.Row="1" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvCustodian" Grid.Row="1" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Unit / Organization:" Grid.Row="2" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvUnit" Grid.Row="2" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Duty Phone:" Grid.Row="3" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvDutyPhone" Grid.Row="3" Grid.Column="1"
                                     Margin="0,3"/>

                            <TextBlock Text="Building:" Grid.Row="4" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvBuilding" Grid.Row="4" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Room:" Grid.Row="5" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvRoom" Grid.Row="5" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Serial Number:" Grid.Row="6" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvSerial" Grid.Row="6" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Computer Name:" Grid.Row="7" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvComputerName" Grid.Row="7" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Replaced:" Grid.Row="8" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvReplaced" Grid.Row="8" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Type / Model:" Grid.Row="9" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvType" Grid.Row="9" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="MAC Address:" Grid.Row="10" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"
                                       FontWeight="Bold"/>
                            <TextBox Name="TxtInvMAC" Grid.Row="10" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"
                                     Foreground="Red" FontWeight="Bold"/>

                            <TextBlock Text="Series:" Grid.Row="11" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvSeries" Grid.Row="11" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <TextBlock Text="Short Name:" Grid.Row="12" Grid.Column="0"
                                       VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <TextBox Name="TxtInvShortName" Grid.Row="12" Grid.Column="1"
                                     Margin="0,3" CharacterCasing="Upper"/>

                            <Border Grid.Row="14" Grid.Column="0" Grid.ColumnSpan="2"
                                    Padding="0,10,0,0">
                                <Button Name="BtnAddInventory"
                                        Content="Add / Append Inventory Entry"
                                        Height="32" FontWeight="Bold"
                                        Background="#198754" Foreground="White"/>
                            </Border>
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>

            <!-- USER MANAGEMENT TAB -->
            <TabItem Header="User Management" Name="TabUser">
                <Grid Margin="15">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="220"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1.25*"/>
                    </Grid.ColumnDefinitions>
                    <GroupBox Header="Select Action" Grid.Column="0" FontWeight="Bold" Margin="0,0,15,0">
                        <StackPanel Margin="10" TextElement.FontWeight="Normal">
                            <RadioButton Name="RadUserGet" Content="Get User Info" IsChecked="True" Margin="0,8"/>
                            <RadioButton Name="RadUserEnable" Content="Enable User" Margin="0,8"/>
                            <RadioButton Name="RadUserDisable" Content="Disable User" Margin="0,8"/>
                            <RadioButton Name="RadUserUnlock" Content="Unlock User" Margin="0,8"/>
                            <RadioButton Name="RadUserCreateUDrive" Content="Create U-Drive(s)" Margin="0,8"/>
                            <Separator Margin="0,10"/>
                            <RadioButton Name="RadUserSet" Content="Set User Property" Margin="0,8"/>
                            <Separator Margin="0,10"/>
                            <RadioButton Name="RadUserAddGroup" Content="Add to Group" Margin="0,8"/>
                            <RadioButton Name="RadUserRemoveGroup" Content="Remove from Group" Margin="0,5"/>
                            <RadioButton Name="RadUserClone" Content="Clone Groups" Margin="0,8"/>
                            <RadioButton Name="RadUserTestGroup" Content="Test Group Membership" Margin="0,8"/>
                        </StackPanel>
                    </GroupBox>
                    <Grid Grid.Column="1" Margin="0,0,15,0">
                        <Grid.RowDefinitions><RowDefinition Height="*"/><RowDefinition Height="Auto"/></Grid.RowDefinitions>
                        <GroupBox Header="Target User(s)" Grid.Row="0" FontWeight="Bold">
                            <Grid Margin="10" TextElement.FontWeight="Normal">
                                <Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="*"/><RowDefinition Height="Auto"/></Grid.RowDefinitions>
                                <TextBlock Text="Enter DOD ID, email, or LAST, FIRST. Press ENTER to search." Foreground="Gray" Margin="0,0,0,5" Grid.Row="0" TextWrapping="Wrap"/>
                                <Grid Grid.Row="1"><Grid.ColumnDefinitions><ColumnDefinition Width="1.3*"/><ColumnDefinition Width="12"/><ColumnDefinition Width="1*"/></Grid.ColumnDefinitions>
                                    <TextBox Name="TxtUserInput" Grid.Column="0" MinHeight="220" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Top"/>
                                    <ListView Name="LstUserTargets" Grid.Column="2" MinHeight="220" FontFamily="Consolas" SelectionMode="Single"><ListView.View><GridView><GridViewColumn Width="30"><GridViewColumn.CellTemplate><DataTemplate><CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" VerticalAlignment="Center" HorizontalAlignment="Center"/></DataTemplate></GridViewColumn.CellTemplate></GridViewColumn><GridViewColumn Header="Users List" DisplayMemberBinding="{Binding Name}" Width="130"/><GridViewColumn Header="DOD ID" DisplayMemberBinding="{Binding DodId}" Width="90"/><GridViewColumn Header="PIV" DisplayMemberBinding="{Binding Piv}" Width="35"/></GridView></ListView.View></ListView>
                                </Grid>
                                <Grid Grid.Row="2" Margin="0,5,0,0"><Grid.ColumnDefinitions><ColumnDefinition Width="1.3*"/><ColumnDefinition Width="12"/><ColumnDefinition Width="1*"/></Grid.ColumnDefinitions>
                                    <Button Name="BtnUserClearAll" Grid.Column="0" Content="Clear All" Height="26" HorizontalAlignment="Left" Width="85"/>
                                    <Button Name="BtnUserSelectAll" Grid.Column="2" Content="Select All" Height="26" HorizontalAlignment="Right" Width="100" />
                                </Grid>
                            </Grid>
                        </GroupBox>
                        <GroupBox Name="GrpUserDetails" Header="Action Details" Grid.Row="1"
                                  FontWeight="Bold" Margin="0,8,0,0" Visibility="Collapsed">
                            <Grid Margin="10" TextElement.FontWeight="Normal">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <TextBlock Name="LblUserProperty" Text="Property:" Grid.Row="0" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3" Visibility="Collapsed"/>
                                <TextBox Name="TxtUserProperty" Grid.Row="0" Grid.Column="1"
                                         Margin="0,3" Visibility="Collapsed" CharacterCasing="Upper"/>

                                <TextBlock Name="LblUserValue" Text="Value:" Grid.Row="1" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3" Visibility="Collapsed"/>
                                <TextBox Name="TxtUserValue" Grid.Row="1" Grid.Column="1"
                                         Margin="0,3" Visibility="Collapsed"/>

                                <TextBlock Name="LblUserGroup" Text="Group Name:" Grid.Row="0" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3" Visibility="Collapsed"/>
                                <DockPanel Name="PanelUserGroupSearch" Grid.Row="0" Grid.Column="1"
                                           Margin="0,3" Visibility="Collapsed" LastChildFill="True">
                                    <Button Name="BtnUserGroupSearch" DockPanel.Dock="Right"
                                            Content="Search" Width="70" Height="24" Margin="6,0,0,0"/>
                                    <TextBox Name="TxtUserGroup" Height="24"/>
                                </DockPanel>

                                <TextBlock Name="LblUserPrimary" Text="Primary User:" Grid.Row="0" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3" Visibility="Collapsed"/>
                                <TextBox Name="TxtUserPrimary" Grid.Row="0" Grid.Column="1"
                                         Margin="0,3" Visibility="Collapsed" IsReadOnly="True"/>
                                <TextBlock Name="LblUserClone" Text="Clone User:" Grid.Row="1" Grid.Column="0"
                                           VerticalAlignment="Center" Margin="0,3,10,3" Visibility="Collapsed"/>
                                <TextBox Name="TxtUserClone" Grid.Row="1" Grid.Column="1"
                                         Margin="0,3" Visibility="Collapsed" IsReadOnly="True"
                                         AcceptsReturn="True" TextWrapping="NoWrap"
                                         VerticalScrollBarVisibility="Auto"
                                         HorizontalScrollBarVisibility="Auto"
                                         MinHeight="58"/>
                            </Grid>
                        </GroupBox>
                    </Grid>
                    <Grid Grid.Column="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="200"/>
                            <RowDefinition Height="8"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <GroupBox Name="GrpUserSearchResults" Header="Search Results" Grid.Row="0" FontWeight="Bold">
                            <Grid>
                                <ListView Name="LstSearchResults" FontFamily="Consolas" FontSize="11" SelectionMode="Single">
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="360"/>
                                            <GridViewColumn Header="DOD ID" DisplayMemberBinding="{Binding DodId}" Width="75"/>
                                            <GridViewColumn Header="PIV" DisplayMemberBinding="{Binding Piv}" Width="30"/>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                                <ListView Name="LstUserGroupResults" FontFamily="Consolas" FontSize="11"
                                          SelectionMode="Single" Visibility="Collapsed">
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="Group Name" DisplayMemberBinding="{Binding Name}" Width="240"/>
                                            <GridViewColumn Header="Email" DisplayMemberBinding="{Binding Email}" Width="180"/>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </GroupBox>
                        <GroupBox Name="GrpUserDetailsRight" Header="User Details" Grid.Row="2" FontWeight="Bold">
                        <Grid>
                        <ScrollViewer Name="ScrUserDetails" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                        <Grid Margin="10" TextElement.FontWeight="Normal">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/><RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>

                            <TextBlock Name="TxtUserStatus" Visibility="Collapsed"/>

                            <TextBlock Text="Display Name:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <DockPanel Grid.Row="0" Grid.Column="1" Margin="0,3" LastChildFill="True">
                                <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="8,0,0,0">
                                    <Border Name="BdrUserEnabledTag" Visibility="Collapsed" CornerRadius="3" Padding="6,2" Margin="0,0,4,0">
                                        <TextBlock Name="TxtUserEnabledTag" Foreground="White" FontSize="10" FontWeight="Bold"/>
                                    </Border>
                                    <Border Name="BdrUserLockedTag" Visibility="Collapsed" CornerRadius="3" Padding="6,2">
                                        <TextBlock Name="TxtUserLockedTag" Foreground="White" FontSize="10" FontWeight="Bold"/>
                                    </Border>
                                </StackPanel>
                                <Border Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                    <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                        <TextBox Name="TxtUserFullName" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                    </Viewbox>
                                </Border>
                            </DockPanel>

                            <TextBlock Text="DOD ID:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <Border Grid.Row="1" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserDodId" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserRank" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="Rank:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="2" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserRank" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <TextBlock Text="Base:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <Border Grid.Row="3" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserBase" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <StackPanel Grid.Row="4" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserEmail" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="Email:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="4" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserEmail" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserPhone" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="Phone:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="5" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserPhone" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <StackPanel Grid.Row="6" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserUPN" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="User Principal Name:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="6" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserUPN" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <TextBlock Text="IA Training Date:" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <DockPanel Grid.Row="7" Grid.Column="1" Margin="0,3" LastChildFill="True">
                                <Border Name="BdrIATrainingTag" DockPanel.Dock="Right" Visibility="Collapsed" CornerRadius="3" Padding="6,2" Margin="8,0,0,0">
                                    <TextBlock Name="TxtIATrainingTag" Foreground="White" FontSize="10" FontWeight="Bold"/>
                                </Border>
                                <Border Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                    <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                        <TextBox Name="TxtUserIATrainingDate" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                    </Viewbox>
                                </Border>
                            </DockPanel>

                            <StackPanel Grid.Row="8" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserHomeDrive" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="Home Drive:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="8" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserHomeDrive" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <StackPanel Grid.Row="9" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,3,10,3">
                                <CheckBox Name="ChkSetUserHomeDirectory" Visibility="Collapsed" Margin="0,0,4,0"/>
                                <TextBlock Text="Home Directory:" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Border Grid.Row="9" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserHomeDirectory" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <TextBlock Text="Enabled:" Grid.Row="10" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <Border Grid.Row="10" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserEnabled" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <TextBlock Text="Locked Out:" Grid.Row="11" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                            <Border Grid.Row="11" Grid.Column="1" Margin="0,3" Background="{DynamicResource ControlBackgroundBrush}" BorderBrush="{DynamicResource ControlBorderBrush}" BorderThickness="1" Padding="4,2" MinHeight="22">
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left">
                                    <TextBox Name="TxtUserLockedOut" Foreground="{DynamicResource ControlForegroundBrush}" FontSize="12" VerticalAlignment="Center" IsReadOnly="True" BorderThickness="0" Background="Transparent" Padding="0" Cursor="IBeam" ToolTip="Select text or right-click to copy"/>
                                </Viewbox>
                            </Border>

                            <TextBlock Text="Groups:" Grid.Row="12" Grid.Column="0" VerticalAlignment="Top" Margin="0,6,10,3"/>
                            <ListView Name="TxtUserGroups" Grid.Row="12" Grid.Column="1" Margin="0,3"
                                      MinHeight="80" SelectionMode="Single"
                                      ScrollViewer.VerticalScrollBarVisibility="Auto">
                                <ListView.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"
                                                  IsEnabled="{Binding IsEnabled}"
                                                  Content="{Binding GroupName}"
                                                  ToolTip="{Binding DistinguishedName}"
                                                  VerticalAlignment="Center"/>
                                    </DataTemplate>
                                </ListView.ItemTemplate>
                            </ListView>
                        </Grid>
                        </ScrollViewer>
                        <Grid Name="PanelSelectedGroups" Margin="10" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <ListView Name="LstSelectedGroups" Grid.Row="0" FontFamily="Consolas" FontSize="11"
                                      SelectionMode="Single">
                                <ListView.View>
                                    <GridView>
                                        <GridViewColumn Width="30">
                                            <GridViewColumn.CellTemplate>
                                                <DataTemplate>
                                                    <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"
                                                              HorizontalAlignment="Center"/>
                                                </DataTemplate>
                                            </GridViewColumn.CellTemplate>
                                        </GridViewColumn>
                                        <GridViewColumn Header="Selected Groups" DisplayMemberBinding="{Binding Name}" Width="250"/>
                                        <GridViewColumn Header="Remove" Width="70">
                                            <GridViewColumn.CellTemplate>
                                                <DataTemplate>
                                                    <Button Content="Remove" Tag="{Binding}" Padding="4,1"/>
                                                </DataTemplate>
                                            </GridViewColumn.CellTemplate>
                                        </GridViewColumn>
                                    </GridView>
                                </ListView.View>
                            </ListView>
                            <TextBlock Name="TxtSelectedGroupsStatus" Grid.Row="1" Margin="0,6,0,0"
                                       Foreground="Gray" TextWrapping="Wrap"/>
                        </Grid>
                        </Grid>
                    </GroupBox>
                    </Grid>
                </Grid>
            </TabItem>

            <TabItem Header="Printers" Name="TabGroup" IsEnabled="False">
                <Grid Name="PanelGroup" Margin="15">
                    <GroupBox Header="Printers" FontWeight="Bold">
                        <Grid Margin="12" TextElement.FontWeight="Normal"/>
                    </GroupBox>
                </Grid>
            </TabItem>
        </TabControl>

        <!-- ============================================================ -->
        <!-- ROW 2: EXECUTE & PROGRESS                                    -->
        <!-- ============================================================ -->
        <Grid Grid.Row="2" Margin="15,12,15,8">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock Name="TxtStatusFile" Grid.Column="0" Text=""
                       VerticalAlignment="Center" FontSize="11" Foreground="#999"
                       Margin="14,0,15,0" TextTrimming="CharacterEllipsis"/>
            <ProgressBar Name="ProgBar" Grid.Column="0" Height="25"
                         Margin="14,0,15,0" Minimum="0" Maximum="100"
                         Visibility="Collapsed"/>
            <Button Name="BtnExecute" Grid.Column="1" Content="Execute Action"
                    Width="150" Height="35" FontWeight="Bold"
                    Background="#005A9C" Foreground="White"/>
        </Grid>

        <!-- ============================================================ -->
        <!-- ROW 3: OUTPUT CONSOLE                                        -->
        <!-- ============================================================ -->
        <GroupBox Header="Output / Logs" Grid.Row="3" FontWeight="Bold" Margin="0,0,0,0">
            <RichTextBox Name="TxtOutput" IsReadOnly="True"
                         VerticalScrollBarVisibility="Auto"
                         HorizontalScrollBarVisibility="Auto"
                         FontFamily="Consolas" FontSize="10"
                         Background="#1E1E1E" Foreground="#D4D4D4"
                         Margin="5">
                <RichTextBox.Resources>
                    <Style TargetType="{x:Type Paragraph}">
                        <Setter Property="Margin" Value="0"/>
                    </Style>
                </RichTextBox.Resources>
            </RichTextBox>
        </GroupBox>
    </Grid>
</Window>
