<!--
	Copyright (c) Microsoft. All rights reserved.
-->

<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<UserControl.Resources>
		<ResourceDictionary Source="/xaml/view/styles/MsoCustomDialogStyles.xaml" />
	</UserControl.Resources>
	<StackPanel>
		<TextBlock Style="{StaticResource SubHeaderTextStyle}" Text="{CustomResource :appstring:0x11A3A547L}" />
		<TextBlock x:Name="tbLiveContent"
							 Style="{StaticResource BodyTextStyle}" Text="{CustomResource :appstring:0xD422566CL}"
							 AutomationProperties.Name="{Binding Path=Text, RelativeSource={RelativeSource Self}}"
							 AutomationProperties.AutomationId="SQMOptInTextBlock"
							 AutomationProperties.LiveSetting="Assertive" />
		<HyperlinkButton Style="{StaticResource LargeHyperlinkButton}" NavigateUri="{CustomResource :oredirurl:rlidOneNoteCEIPStatement}">
			<TextBlock Style="{StaticResource LargeHyperlinkText}" Text="{CustomResource :appstring:0xA2EB627DL}"/>
		</HyperlinkButton>
		<ToggleSwitch
			Style="{StaticResource ToggleSwitchStyle}"
			IsOn="{Binding SQMOptInOption, Mode=TwoWay}"
			AutomationProperties.Name="{Binding Text, ElementName=CustomerImprovementProgramToggleSwitchHeaderTextBlock}"
			AutomationProperties.AutomationId="CustomerImprovementProgramToggleSwitch">
			<ToggleSwitch.Header>
				<TextBlock
					x:Name="CustomerImprovementProgramToggleSwitchHeaderTextBlock"
					Style="{StaticResource BodyTextStyle}"
					Text="{CustomResource :appstring:0x122D73B6L}"/>
			</ToggleSwitch.Header>
			<ToggleSwitch.OnContent>
				<TextBlock TextWrapping="Wrap" Text="{CustomResource :appstring:0x4ADC6607L}"/>
			</ToggleSwitch.OnContent>
			<ToggleSwitch.OffContent>
				<TextBlock TextWrapping="Wrap" Text="{CustomResource :appstring:0x3682395AL}"/>
			</ToggleSwitch.OffContent>
		</ToggleSwitch>
	</StackPanel>
</UserControl>
