﻿    <UserControl
    x:Class="FeedbackApp.SIUFViews.SIUF_GoodBadQuestionView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FeedbackApp.SIUFViews"
    xmlns:conv="using:FeedbackApp.Converters"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="500">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="SIUFStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>

        <conv:EnumToBooleanConverter x:Key="EnumToBooleanConverter"/>
        
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <!--Main SubHeader-->
        <TextBlock Grid.Row="0" 
                   Text="{Binding Path=QuestionText}" 
                   Style="{ThemeResource QuestionText}"/>
        
        <!--Main Content-->
        <RadioButton x:Name="RadioButtonYes" Grid.Row="1" x:Uid="/FeedbackApp.Resources/SIUF_YesNoControl_Yes" IsChecked="{Binding Path=ResultSuccessful, Mode=TwoWay, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Microsoft.Windows.Internal.Feedback.GoodBad.Yes}" 
                     Style="{StaticResource RadioButton}"/>
        <RadioButton Grid.Row="2" x:Uid="/FeedbackApp.Resources/SIUF_YesNoControl_No" IsChecked="{Binding Path=ResultSuccessful, Mode=TwoWay, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Microsoft.Windows.Internal.Feedback.GoodBad.No}" 
                     Style="{ThemeResource RadioButton}" />
        
        <!--FollowUp Header-->
        <TextBlock Grid.Row="3" x:Name="FollowUpQuestion"
                   Text="{Binding Path=FollowUpQuestionText}" 
                   Style="{ThemeResource FollowUpQuestion}"/>

        <!--FollowUp Content-->
        <StackPanel Grid.Row="4" >
            <TextBox x:Name="FollowUpTextBox" 
                     x:Uid="/FeedbackApp.Resources/SIUF_FollowupQuestion_TextBox" 
                     Text="{Binding Path=FollowUpText, Mode=TwoWay}" 
                     Style="{ThemeResource FollowUpQuestionTextBox}"
                     AutomationProperties.Name="{Binding Path=FollowUpQuestionText}"/>
        </StackPanel>

    </Grid>
</UserControl>

