Assets/RSOP.xaml

<Window x:Class="ADLookups_v2.RSOP"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ADLookups_v2"
        Title="RSOP" MinWidth="300" WindowStartupLocation="CenterOwner" MinHeight="415" Width="300" Height="415">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="C:\temp\LightTheme.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
    <Grid Margin="5,5,5,25">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" TextWrapping="Wrap" Text="Make sure the account you're running with has permissions to pull a RSOP report. Firewalls can also cause issues retrieving the report." Margin="0,0,0,15" IsReadOnly="True" Focusable="False" IsHitTestVisible="False"/>
        <Label Grid.Column="0" Grid.Row="2" Content="Hostname" HorizontalAlignment="Right"/>
        <ComboBox Grid.Column="1" Grid.Row="2" x:Name="HostnameComboBox" VerticalAlignment="Center" IsEditable="True"/>
        <GroupBox Grid.Column="1" Grid.Row="3" Header="Report Type">
            <StackPanel Orientation="Vertical" Margin="0,5,0,5">
                <RadioButton x:Name="HTMLRadioButton" Content="HTML" IsChecked="True" Margin="0,0,0,5"/>
                <RadioButton x:Name="ListingRadioButton" Content="Listing of GPOs"/>
            </StackPanel>
        </GroupBox>
        <GroupBox Grid.Column="1" Grid.Row="4" Header="Options">
            <StackPanel Orientation="Vertical" Margin="0,5,0,5">
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="ComputerScopeRadioButton" Content="Computer" IsChecked="True"/>
                    <RadioButton x:Name="UserScopeRadioButton" Content="User" Margin="10,0,0,0"/>
                </StackPanel>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Label Grid.Column="0" Content="Username"/>
                        <ComboBox Grid.Column="1" x:Name="UsernameScopeComboBox" VerticalAlignment="Center" IsEnabled="False" IsEditable="True">
                            <ComboBox.Style>
                                <Style TargetType="ComboBox">
                                    <Setter Property="IsEnabled" Value="False"></Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding IsChecked,ElementName=UserScopeRadioButton}" Value="True">
                                            <Setter Property="IsEnabled" Value="True"/>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </ComboBox.Style>
                        </ComboBox>
                </Grid>
                    <CheckBox x:Name="PromptCredsCheckBox" Content="Prompt for credentials" Margin="0,5,0,0" IsEnabled="False">
                        <CheckBox.Style>
                            <Style TargetType="CheckBox">
                                <Setter Property="IsEnabled" Value="True"></Setter>
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsChecked,ElementName=HTMLRadioButton}" Value="True">
                                        <Setter Property="IsChecked" Value="False"/>
                                        <Setter Property="IsEnabled" Value="False"/>
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </CheckBox.Style>
                    </CheckBox>
            </StackPanel>
        </GroupBox>
        <Button Grid.Column="1" Grid.Row="5" x:Name="RunReportButton" Content="Run Report" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,5,0,0"/>
        <TextBox x:Name="RSOPFileLocationLabel" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Left" BorderBrush="#00ABADB3" FontSize="10" IsReadOnly="True" Grid.Row="6" TextWrapping="Wrap" Margin="5,0,5,5" Height="35"/>
        </Grid>
        <StatusBar VerticalAlignment="Bottom" Height="25">
            <StatusBarItem x:Name="CredentialsStatusBarItem" Content="Stored username: None" VerticalAlignment="Center" Margin="5,0,0,0"/>
        </StatusBar>
    </Grid>
</Window>