<!--
	Copyright (c) Microsoft. All rights reserved.
-->

<UserControl x:Class="MOX.ContextualErrorPane"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Padding="0">
	<UserControl.Resources>
		<Style TargetType="Button">
			<Setter Property="VerticalAlignment" Value="Stretch"/>
			<Setter Property="HorizontalAlignment" Value="Right"/>
			<Setter Property="Margin" Value="5, 0, 5, 10"/>
			<Setter Property="ContentTemplate">
				<Setter.Value>
					<DataTemplate>
						<TextBlock Text="{Binding}" 
									TextAlignment="Center" 
									TextWrapping="Wrap"
									HorizontalAlignment="Center" 
									Margin="0"/>
					</DataTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
  <StackPanel Margin="0">
		<TextBlock x:Name="tbErrorText" Margin="10" Style="{StaticResource MsoTextBlockStandard}" TextWrapping="Wrap" Foreground="{CustomResource :mso_brush:2439}">
			<Run x:Name="runErrorTitle" FontWeight="{StaticResource MsoFontWeightEmphasis}" FontFamily="{StaticResource MsoFontFamilyEmphasis}" />
			<Run x:Name="runErrorMsg" />
		</TextBlock>
		<TextBlock x:Name="tbErrorTextMsgOnly"
							 Margin="10"
							 Style="{StaticResource MsoTextBlockStandard}"
							 TextWrapping="Wrap"
							 Visibility="Collapsed"
							 Foreground="{CustomResource :mso_brush:2439}"
							 AutomationProperties.Name="{Binding Path=Text, RelativeSource={RelativeSource Self}}"
							 AutomationProperties.AutomationId="ErrorTextMsg"
							 AutomationProperties.LiveSetting="Assertive" />
		<StackPanel x:Name="spButtonContainer" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5, 0, 5, 0">
			<Button x:Name="btnAction1" Content="Action1" />
			<Button x:Name="btnAction2" Content="Action2" />
			<Button x:Name="btnClose" Content="Close" />
		</StackPanel>
  </StackPanel>
</UserControl>
