<!--
	Copyright (c) Microsoft. All rights reserved.
-->

<!-- This file contains all styles used by UI controls in the CaptureUI -->
<!-- Copyright (c) Microsoft Corporation. All rights reserved -->
<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:vsm="using:Windows.UI.Xaml">
  <ResourceDictionary.ThemeDictionaries>
    <ResourceDictionary x:Key="Light">
      <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
      <x:String x:Key="BackButtonSnappedGlyph">&#xE0BA;</x:String>
      <x:Double x:Key="AppBarHeight">90</x:Double>
      <SolidColorBrush x:Key="CaptureUIBackgroundBrush" Color="#FF000000" />
      <SolidColorBrush x:Key="FlyoutBackgroundBrush" Color="#FFFFFFFF" />
      <SolidColorBrush x:Key="CaptureUIBackButtonForegroundThemeBrush" Color="#FFFFFFFF" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPressedForegroundThemeBrush" Color="#FF000000" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPointerOverBackgroundThemeBrush" Color="#21FFFFFF" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPointerOverForegroundThemeBrush" Color="#FFFFFFFF" />
      <SolidColorBrush x:Key="CaptureUIApplicationForegroundThemeBrush" Color="#DEFFFFFF" />
      <SolidColorBrush x:Key="CaptureUIThumbnailSelectedThemeBrush" Color="#FF00AEEF" />
      <SolidColorBrush x:Key="CaptureUIThumbnailBackgroundThemeBrush" Color="#FF404142" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemForegroundThemeBrush" Color="#FF58595B" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPointerOverBackgroundThemeBrush" Color="#21FFFFFF" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPointerOverForegroundThemeBrush" Color="#FFFFFFFF" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPressedForegroundThemeBrush" Color="#FF000000" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemDisabledForegroundThemeBrush" Color="#66FFFFFF" />
      <SolidColorBrush x:Key="CaptureUICameraOptionsResolutionLabelThemeBrush" Color="#FF666666" />
      <SolidColorBrush x:Key="CaptureUIBackButtonBackgroundThemeBrush" Color="#FF222222" />
      <SolidColorBrush x:Key="CaptureUIAppBarBrush" Color="#FF000000" />
      <SolidColorBrush x:Key="CaptureUIOptionBrush" Color="#FFFFFFFF" />
      <SolidColorBrush x:Key="FlyoutBackgroundThemeBrush" Color="#00000000" />
    </ResourceDictionary>
    <ResourceDictionary x:Key="HighContrast">
      <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
      <x:String x:Key="BackButtonSnappedGlyph">&#xE0C4;</x:String>
      <x:Double x:Key="AppBarHeight">90</x:Double>
      <SolidColorBrush x:Key="CaptureUIBackgroundBrush" Color="{StaticResource SystemColorWindowTextColor}" />
      <SolidColorBrush x:Key="FlyoutBackgroundBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="CaptureUIBackButtonForegroundThemeBrush" Color="{StaticResource SystemColorButtonTextColor}" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPressedForegroundThemeBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPointerOverBackgroundThemeBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="CaptureUIBackButtonPointerOverForegroundThemeBrush" Color="{StaticResource SystemColorHighlightTextColor}" />
      <SolidColorBrush x:Key="CaptureUIApplicationForegroundThemeBrush" Color="{StaticResource SystemColorWindowTextColor}" />
      <SolidColorBrush x:Key="CaptureUIThumbnailSelectedThemeBrush" Color="{StaticResource SystemColorWindowTextColor}" />
      <SolidColorBrush x:Key="CaptureUIThumbnailBackgroundThemeBrush" Color="{StaticResource SystemColorButtonTextColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemForegroundThemeBrush" Color="{StaticResource SystemColorButtonTextColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPointerOverBackgroundThemeBrush" Color="{StaticResource SystemColorHighlightColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPointerOverForegroundThemeBrush" Color="{StaticResource SystemColorHighlightTextColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemPressedForegroundThemeBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarItemDisabledForegroundThemeBrush" Color="{StaticResource SystemColorGrayTextColor}" />
      <SolidColorBrush x:Key="CaptureUICameraOptionsResolutionLabelThemeBrush" Color="{StaticResource SystemColorWindowTextColor}" />
      <SolidColorBrush x:Key="CaptureUIBackButtonBackgroundThemeBrush" Color="{StaticResource SystemColorWindowTextColor}" />
      <SolidColorBrush x:Key="CaptureUIAppBarBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="CaptureUIOptionBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
      <SolidColorBrush x:Key="FlyoutBackgroundThemeBrush" Color="{StaticResource SystemColorButtonFaceColor}" />
    </ResourceDictionary>
  </ResourceDictionary.ThemeDictionaries>
  <!-- The following styles are based on the styles in standardstyles.xaml provided by Windows. -->
  <!--
    BackButtonStyle is used to style a Button for use in the title area of a page.  Margins appropriate for
    the conventional page layout are included as part of the style.
  -->
  <Style x:Key="BackButtonStyle" TargetType="Button">
    <Setter Property="MinWidth" Value="0"/>
    <Setter Property="Width" Value="48"/>
    <Setter Property="Height" Value="48"/>
    <Setter Property="Margin" Value="36,0,36,36"/>
    <Setter Property="VerticalAlignment" Value="Bottom"/>
    <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
    <Setter Property="FontWeight" Value="Normal"/>
    <Setter Property="FontSize" Value="56"/>
    <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x15F0F20AL}"/>
    <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
          <Grid x:Name="RootGrid">
            <Grid Margin="-1,-16,0,0">
              <TextBlock x:Name="BackgroundGlyph" FlowDirection="LeftToRight" Text="&#xE0A8;" Foreground="{StaticResource CaptureUIBackButtonPressedForegroundThemeBrush}"/>
              <TextBlock x:Name="NormalGlyph" Text="{StaticResource BackButtonGlyph}" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
              <TextBlock x:Name="ArrowGlyph" Text="&#xE0A6;" Foreground="{StaticResource CaptureUIBackButtonPressedForegroundThemeBrush}" Opacity="0"/>
            </Grid>
            <Rectangle
                x:Name="FocusVisualWhite"
                IsHitTestVisible="False"
                Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
                StrokeEndLineCap="Square"
                StrokeDashArray="1,1"
                Opacity="0"
                StrokeDashOffset="1.5"/>
            <Rectangle
                x:Name="FocusVisualBlack"
                IsHitTestVisible="False"
                Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
                StrokeEndLineCap="Square"
                StrokeDashArray="1,1"
                Opacity="0"
                StrokeDashOffset="0.5"/>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonPointerOverForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation
                        Storyboard.TargetName="ArrowGlyph"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                    <DoubleAnimation
                        Storyboard.TargetName="NormalGlyph"
                        Storyboard.TargetProperty="Opacity"
                        To="0"
                        Duration="0"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation
                        Storyboard.TargetName="FocusVisualWhite"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                    <DoubleAnimation
                        Storyboard.TargetName="FocusVisualBlack"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="PointerFocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="WingButtonStyle" TargetType="Button">
    <Setter Property="Foreground" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
    <Setter Property="VerticalAlignment" Value="Stretch"/>
    <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
    <Setter Property="FontWeight" Value="Normal"/>
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="AutomationProperties.ItemType" Value="App Bar Button"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ButtonBase">
          <Grid x:Name="RootGrid" Width="43" Height="45" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Opacity">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="1.0"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation
											Storyboard.TargetName="FocusVisualWhite"
											Storyboard.TargetProperty="Opacity"
											To="1"
											Duration="0"/>
                    <DoubleAnimation
											Storyboard.TargetName="FocusVisualBlack"
											Storyboard.TargetProperty="Opacity"
											To="1"
											Duration="0"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="PointerFocused" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Duration="0" To="0" Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Opacity"/>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundCheckedGlyph" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked"/>
                <VisualState x:Name="Indeterminate"/>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <StackPanel VerticalAlignment="Top" Margin="0,0,0,0">
              <Grid Margin="-4,-19, -2, 0" FlowDirection="LeftToRight">
                <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="56" Foreground="{StaticResource CaptureUIBackButtonPressedForegroundThemeBrush}" Opacity="0.5" />
                <TextBlock x:Name="OutlineGlyph" Text="&#xE0A7;" FontFamily="Segoe UI Symbol" FontSize="56" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"  Opacity="0.7" />
              </Grid>
              <ContentPresenter x:Name="Content" HorizontalAlignment="Center" Margin="-2,-69,0,0" VerticalAlignment="Center" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
            </StackPanel>
            <Rectangle
							x:Name="FocusVisualWhite"
							IsHitTestVisible="False"
							Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
							StrokeEndLineCap="Square"
							StrokeDashArray="1,1"
							Opacity="0"
							StrokeDashOffset="1.5"/>
            <Rectangle
							x:Name="FocusVisualBlack"
							IsHitTestVisible="False"
							Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
							StrokeEndLineCap="Square"
							StrokeDashArray="1,1"
							Opacity="0"
							StrokeDashOffset="0.5"/>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
	<Style x:Key="WhiteboardWingButtonStyle" TargetType="Button">
		<Setter Property="Foreground" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
		<Setter Property="VerticalAlignment" Value="Stretch"/>
		<Setter Property="FontFamily" Value="Segoe UI Symbol"/>
		<Setter Property="FontWeight" Value="Normal"/>
		<Setter Property="FontSize" Value="20"/>
		<Setter Property="AutomationProperties.ItemType" Value="App Bar Button"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ButtonBase">
					<Grid x:Name="RootGrid" Width="44" Height="45" Background="Transparent">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="PointerOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Opacity">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1.0"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonBackgroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused">
									<Storyboard>
										<DoubleAnimation
											Storyboard.TargetName="FocusVisualWhite"
											Storyboard.TargetProperty="Opacity"
											To="1"
											Duration="0"/>
										<DoubleAnimation
											Storyboard.TargetName="FocusVisualBlack"
											Storyboard.TargetProperty="Opacity"
											To="1"
											Duration="0"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused" />
								<VisualState x:Name="PointerFocused" />
							</VisualStateGroup>
							<VisualStateGroup x:Name="CheckStates">
								<VisualState x:Name="Checked">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0" Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Opacity"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundCheckedGlyph" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPressedForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPressedForegroundThemeBrush}"/>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unchecked"/>
								<VisualState x:Name="Indeterminate"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<StackPanel VerticalAlignment="Top" Margin="0,0,0,0">
							<Grid Margin="-4,-19, -2, 0" FlowDirection="LeftToRight">
								<TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="56" Foreground="{StaticResource CaptureUIBackButtonPressedForegroundThemeBrush}" Opacity="0.5" />
								<TextBlock x:Name="OutlineGlyph" Text="&#xE0A7;" FontFamily="Segoe UI Symbol" FontSize="56" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"  Opacity="0.7" />
								<ContentPresenter x:Name="Content" Content="&#x25AD;" HorizontalAlignment="Center" FontSize="24" Margin="12,-1,-2,-11" VerticalAlignment="Center" Height="48" Width="41" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
								<ContentPresenter x:Name="Content2" Content="⚺" HorizontalAlignment="Center" Margin="-33, 5,-7,-50" Height="19" Width="40" FontSize="24" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}">
									<ContentPresenter.RenderTransform>
										<CompositeTransform TranslateY="-10" Rotation="180"/>
									</ContentPresenter.RenderTransform>
								</ContentPresenter>
							</Grid>
						</StackPanel>
						<Rectangle
							x:Name="FocusVisualWhite"
							IsHitTestVisible="False"
							Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
							StrokeEndLineCap="Square"
							StrokeDashArray="1,1"
							Opacity="0"
							StrokeDashOffset="1.5"/>
						<Rectangle
							x:Name="FocusVisualBlack"
							IsHitTestVisible="False"
							Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
							StrokeEndLineCap="Square"
							StrokeDashArray="1,1"
							Opacity="0"
							StrokeDashOffset="0.5"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
  <!-- TextBlock styles -->
  <Style x:Key="BasicTextStyle" TargetType="TextBlock">
    <Setter Property="Foreground" Value="{StaticResource CaptureUIApplicationForegroundThemeBrush}"/>
    <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
    <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>
    <Setter Property="TextTrimming" Value="WordEllipsis"/>
    <Setter Property="TextWrapping" Value="Wrap"/>
    <Setter Property="Typography.StylisticSet20" Value="True"/>
    <Setter Property="Typography.DiscretionaryLigatures" Value="True"/>
    <Setter Property="Typography.CaseSensitiveForms" Value="True"/>
  </Style>
  <Style x:Key="BaselineTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BasicTextStyle}">
    <Setter Property="LineHeight" Value="20"/>
    <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
    <!-- Properly align text along its baseline -->
    <Setter Property="RenderTransform">
      <Setter.Value>
        <TranslateTransform X="-1" Y="4"/>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="HeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
    <Setter Property="FontSize" Value="56"/>
    <Setter Property="FontWeight" Value="Light"/>
    <Setter Property="LineHeight" Value="40"/>
    <Setter Property="RenderTransform">
      <Setter.Value>
        <TranslateTransform X="-2" Y="8"/>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="PageHeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource HeaderTextStyle}">
    <Setter Property="TextWrapping" Value="NoWrap"/>
    <Setter Property="VerticalAlignment" Value="Bottom"/>
    <Setter Property="Margin" Value="0,0,30,40"/>
  </Style>
  <!-- CameraOption Text -->
  <Style x:Key="SettingsTitleText" TargetType="TextBlock">
    <Setter Property="TextTrimming" Value="WordEllipsis"/>
    <Setter Property="TextWrapping" Value="NoWrap"/>
    <Setter Property="Typography.StylisticSet20" Value="True"/>
    <Setter Property="Typography.DiscretionaryLigatures" Value="True"/>
    <Setter Property="Typography.CaseSensitiveForms" Value="True"/>
    <Setter Property="FontSize" Value="26.667"/>
    <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
    <Setter Property="FontWeight" Value="Light"/>
    <Setter Property="LineHeight" Value="30"/>
    <Setter Property="RenderTransform">
      <Setter.Value>
        <TranslateTransform X="-1" Y="6"/>
      </Setter.Value>
    </Setter>
  </Style>
  <!--
    AppBarButtonStyle is used to style a Button (or ToggleButton) for use in an App Bar.  Content will be centered 
    and should fit within the 40 pixel radius glyph provided.  16-point Segoe UI Symbol is used for content text 
    to simplify the use of glyphs from that font.  AutomationProperties.Name is used for the text below the glyph.
  -->
  <Style x:Key="AppBarButtonStyle" TargetType="ButtonBase">
    <Setter Property="Foreground" Value="{StaticResource CaptureUIOptionBrush}"/>
    <Setter Property="VerticalAlignment" Value="Stretch"/>
    <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
    <Setter Property="FontWeight" Value="Normal"/>
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="AutomationProperties.ItemType" Value="App Bar Button"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ButtonBase">
          <Grid x:Name="RootGrid" Width="100" Background="Transparent">
            <StackPanel VerticalAlignment="Top" Margin="0,12,0,11">
              <Grid Width="40" Height="40" Margin="0,0,0,5" HorizontalAlignment="Center">
                <Grid Margin="-4,-19, -2, 0" FlowDirection="LeftToRight">
                  <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="53.333" Foreground="{StaticResource AppBarItemBackgroundThemeBrush}"/>
                  <TextBlock x:Name="OutlineGlyph" Text="&#xE0A7;" FontFamily="Segoe UI Symbol" FontSize="53.333" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                </Grid>
                <ContentPresenter x:Name="Content" HorizontalAlignment="Center" Margin="-1,-1,0,0" VerticalAlignment="Center" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
              </Grid>
              <TextBlock
                  x:Name="TextLabel"
                  Text="{TemplateBinding AutomationProperties.Name}"
                  Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"
                  Margin="0,0,2,0"
                  FontSize="12"
                  TextAlignment="Center"
                  Width="88"
                  MaxHeight="32"
                  TextTrimming="WordEllipsis"
                  Style="{StaticResource BasicTextStyle}"/>
            </StackPanel>
            <Rectangle
                x:Name="FocusVisualWhite"
                IsHitTestVisible="False"
                Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
                StrokeEndLineCap="Square"
                StrokeDashArray="1,1"
                Opacity="0"
                StrokeDashOffset="1.5"/>
            <Rectangle
                x:Name="FocusVisualBlack"
                IsHitTestVisible="False"
                Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
                StrokeEndLineCap="Square"
                StrokeDashArray="1,1"
                Opacity="0"
                StrokeDashOffset="0.5"/>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverBackgroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextLabel" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation
                        Storyboard.TargetName="FocusVisualWhite"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                    <DoubleAnimation
                        Storyboard.TargetName="FocusVisualBlack"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="PointerFocused" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Duration="0" To="0" Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Opacity"/>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundCheckedGlyph" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked"/>
                <VisualState x:Name="Indeterminate"/>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="InsertAllAppBarButtonStyle" TargetType="ButtonBase">
            <Setter Property="AutomationProperties.AutomationId" Value="UseAppBarButton"/>
            <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x943BF3DCL}"/>
            <Setter Property="Foreground" Value="{StaticResource CaptureUIOptionBrush}"/>
            <Setter Property="VerticalAlignment" Value="Stretch"/>
            <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="FontSize" Value="20"/>
            <Setter Property="AutomationProperties.ItemType" Value="App Bar Button"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ButtonBase">
                        <Grid x:Name="RootGrid" Width="100" Background="Transparent">
                            <StackPanel VerticalAlignment="Top" Margin="0,12,0,11">
                                <Grid Width="40" Height="40" Margin="0,0,0,5" HorizontalAlignment="Center">
                                    <Grid Margin="-4,-19, -2, 0" FlowDirection="LeftToRight">
                                        <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="53.333" Foreground="{StaticResource AppBarItemBackgroundThemeBrush}"/>
                                        <TextBlock x:Name="OutlineGlyph" Text="&#xE0A7;" FontFamily="Segoe UI Symbol" FontSize="53.333" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
                                    </Grid>
                                    <ContentPresenter x:Name="Content" FontSize="25" HorizontalAlignment="Center" Margin="-5,13,0,0" Content="&#xE0F8;" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}">
                                        <ContentPresenter.RenderTransform>
                                            <RotateTransform Angle="180"/>
                                        </ContentPresenter.RenderTransform>
                                    </ContentPresenter>
                                </Grid>
                                <TextBlock
                                  x:Name="TextLabel"
                                  Text="{TemplateBinding AutomationProperties.Name}"
                                  Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"
                                  Margin="0,0,2,0"
                                  FontSize="12"
                                  TextAlignment="Center"
                                  Width="88"
                                  MaxHeight="32"
                                  TextTrimming="WordEllipsis"
                                  Style="{StaticResource BasicTextStyle}"/>
                            </StackPanel>
                            <Rectangle
                              x:Name="FocusVisualWhite"
                              IsHitTestVisible="False"
                              Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
                              StrokeEndLineCap="Square"
                              StrokeDashArray="1,1"
                              Opacity="0"
                              StrokeDashOffset="1.5"/>
                            <Rectangle
                              x:Name="FocusVisualBlack"
                              IsHitTestVisible="False"
                              Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
                              StrokeEndLineCap="Square"
                              StrokeDashArray="1,1"
                              Opacity="0"
                              StrokeDashOffset="0.5"/>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="PointerOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverBackgroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextLabel" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemDisabledForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <DoubleAnimation
                        Storyboard.TargetName="FocusVisualWhite"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                                            <DoubleAnimation
                        Storyboard.TargetName="FocusVisualBlack"
                        Storyboard.TargetProperty="Opacity"
                        To="1"
                        Duration="0"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused" />
                                    <VisualState x:Name="PointerFocused" />
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CheckStates">
                                    <VisualState x:Name="Checked">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Opacity"/>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundCheckedGlyph" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unchecked"/>
                                    <VisualState x:Name="Indeterminate"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
  <Style x:Key="ToggleAppBarButtonStyle" TargetType="ToggleButton">
    <Setter Property="Foreground" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
    <Setter Property="VerticalAlignment" Value="Stretch"/>
    <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
    <Setter Property="FontWeight" Value="Normal"/>
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="AutomationProperties.ItemType" Value="App Bar ToggleButton"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
          <Grid x:Name="RootGrid" Width="65" Height="65" Background="Transparent">
            <StackPanel VerticalAlignment="Top" Margin="0,6,0,0" >
              <Grid Width="64" Height="45" Margin="0,0,0,5" HorizontalAlignment="Left" FlowDirection="LeftToRight">
                <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="83" Margin="-3,-34,0,-12" Foreground="{StaticResource CaptureUIBackButtonPressedForegroundThemeBrush}" Opacity="0.5"/>
                <TextBlock x:Name="OutlineGlyph" Text="&#xE226;" FontFamily="Segoe UI Symbol" FontSize="50" Margin="2,-10,0,-20" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"  Opacity="0.7"/>
                <ContentPresenter x:Name="Content" HorizontalAlignment="Center" Margin="11,8,-2,-11" VerticalAlignment="Center" Height="44" Width="41" Foreground="{StaticResource CaptureUIBackButtonForegroundThemeBrush}"/>
              </Grid>
            </StackPanel>
            <Rectangle
              x:Name="FocusVisualWhite"
              IsHitTestVisible="False"
              Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
              StrokeEndLineCap="Square"
              StrokeDashArray="1,1"
              Opacity="0"
              StrokeDashOffset="1.5"/>
            <Rectangle
              x:Name="FocusVisualBlack"
              IsHitTestVisible="False"
              Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
              StrokeEndLineCap="Square"
              StrokeDashArray="1,1"
              Opacity="0"
              StrokeDashOffset="0.5"/>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverBackgroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPointerOverForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed"/>
                <VisualState x:Name="Disabled"/>
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Opacity">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="1.0"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="CheckedPointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="CheckedPressed"/>
                <VisualState x:Name="CheckedDisabled"/>
                <VisualState x:Name="Indeterminate"/>
                <VisualState x:Name="IndeterminatePointerOver"/>
                <VisualState x:Name="IndeterminatePressed"/>
                <VisualState x:Name="IndeterminateDisabled"/>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation
                    Storyboard.TargetName="FocusVisualWhite"
                    Storyboard.TargetProperty="Opacity"
                    To="1"
                    Duration="0"/>
                    <DoubleAnimation
                    Storyboard.TargetName="FocusVisualBlack"
                    Storyboard.TargetProperty="Opacity"
                    To="1"
                    Duration="0"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="PointerFocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="HyperLinkButton" TargetType="Button">
    <Setter Property="MinWidth" Value="0"/>
    <Setter Property="MinHeight" Value="0"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ButtonBase">
          <Grid Background="Transparent">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPointerOverForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPressedForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualWhite" Storyboard.TargetProperty="Opacity"/>
                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualBlack" Storyboard.TargetProperty="Opacity"/>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused"/>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked"/>
                <VisualState x:Name="Unchecked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationSecondaryForegroundThemeBrush}"/>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Indeterminate"/>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <ContentPresenter x:Name="Text" Content="{TemplateBinding Content}" />
            <Rectangle
              x:Name="FocusVisualWhite"
              IsHitTestVisible="False"
              Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
              StrokeEndLineCap="Square"
              StrokeDashArray="1,1"
              Opacity="0"
              StrokeDashOffset="1.5"/>
            <Rectangle
              x:Name="FocusVisualBlack"
              IsHitTestVisible="False"
              Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
              StrokeEndLineCap="Square"
              StrokeDashArray="1,1"
              Opacity="0"
              StrokeDashOffset="0.5"/>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="StandardCameraAppBarButtonStyle" TargetType="ToggleButton" BasedOn="{StaticResource ToggleAppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="StandardCameraAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0xB2C719C4L}"/>
    <Setter Property="Content" Value="&#xE114;"/>
  </Style>
  <Style x:Key="WhiteBoardCameraAppBarButtonStyle" TargetType="ToggleButton" BasedOn="{StaticResource ToggleAppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="WhiteBoardCameraAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x2A11EC3CL}"/>
    <Setter Property="Content" Value="&#xE1E4;"/>
  </Style>
  <Style x:Key="DocumentCameraAppBarButtonStyle" TargetType="ToggleButton" BasedOn="{StaticResource ToggleAppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="DocumentCameraAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0xF2090DD2L}"/>
    <Setter Property="Content" Value="&#xE160;"/>
  </Style>
  <Style x:Key="CropAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="CropAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x809AD427L}"/>
    <Setter Property="Content" Value="&#xE123;"/>
  </Style>
  <Style x:Key="RetryAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="RetryAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x2B9A51F0L}"/>
    <Setter Property="Content" Value="&#xE10E;"/>
  </Style>
  <Style x:Key="AddImageAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="AddImageAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x41988DD7L}"/>
    <Setter Property="Content" Value="&#xE109;"/>
  </Style>
  <Style x:Key="OkAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="OkAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0x76014B31L}"/>
    <Setter Property="Content" Value="&#xE10B;"/>
  </Style>
  <Style x:Key="CancelAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId" Value="CancelAppBarButton"/>
    <Setter Property="AutomationProperties.Name" Value="{CustomResource :appstring:0xB6119CE9L}"/>
    <Setter Property="Content" Value="&#xE10A;"/>
  </Style>
  <Style x:Key="CroppingCorner" TargetType="ContentControl">
    <Setter Property="Width" Value="100" />
    <Setter Property="Height" Value="100" />
  </Style>
  <Style x:Key="FlyoutStyle" TargetType="FlyoutPresenter">
    <Setter Property="Margin" Value="0"/>
    <Setter Property="Padding" Value="0"/>
    <Setter Property="Background" Value="{StaticResource CaptureUIAppBarItemPointerOverForegroundThemeBrush}"/>
    <Setter Property="BorderThickness" Value="3"/>
    <Setter Property="BorderBrush" Value="{StaticResource CaptureUIAppBarItemPressedForegroundThemeBrush}"/>
  </Style>
  <Style x:Key="ButtonTextStyle" TargetType="TextBlock">
    <Setter Property="FontFamily" Value="Segoe UI" />
    <Setter Property="FontSize" Value="14.66" />
    <Setter Property="Foreground" Value="{StaticResource CaptureUIAppBarItemForegroundThemeBrush}" />
    <Setter Property="Margin" Value="20, 0, 0, 0"/>
  </Style>
  <Style x:Key="ModeToggleButtonStyle" TargetType="ToggleButton">
    <Setter Property="BorderBrush" Value="{StaticResource FlyoutBackgroundThemeBrush}" />
    <Setter Property="Padding" Value="0" />
    <Setter Property="Margin" Value="0"/>
    <Setter Property="HorizontalContentAlignment" Value="Left"/>
    <Setter Property="HorizontalAlignment" Value="Stretch"/>
	</Style>  
  <Style x:Name="ChangeFlashToggleButtonStyle" TargetType="ToggleButton">
    <Setter Property="Padding" Value="0"/>
    <Setter Property="Margin" Value="0"/>
    <Setter Property="IsThreeState" Value="True"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="PointerOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPointerOverBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C6;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C6;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
								<VisualState x:Name="CheckedPointerOver">
									<Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPointerOverBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C6;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
								</VisualState>
                <VisualState x:Name="CheckedPressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C7;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Indeterminate">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C7;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
								<VisualState x:Name="IndeterminatePointerOver">
									<Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPointerOverBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C7;" />
                    </ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
                <VisualState x:Name="IndeterminatePressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedBackgroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextContent" Storyboard.TargetProperty="Foreground">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToggleButtonPressedForegroundThemeBrush}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconContent" Storyboard.TargetProperty="Content">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="&#x25C8;" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
                             Storyboard.TargetProperty="Opacity"
                             To="1"
                             Duration="0" />
                    <DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
                             Storyboard.TargetProperty="Opacity"
                             To="1"
                             Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="PointerFocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="ContentPresenter"
                          Margin="{TemplateBinding Padding}"
                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
									        Background="{StaticResource FlyoutBackgroundThemeBrush}"
													BorderThickness="2">
              <StackPanel Orientation="Horizontal">
                <Grid Width="36" Height="34" Margin="5,5,-5,5" HorizontalAlignment="Center">
                  <ContentControl x:Name="IconContent" Content="&#x25C8;" FontFamily="../../font/CameraSymbols.ttf#Camera Symbols" HorizontalAlignment="Center" Margin="15,-1,0,0" VerticalAlignment="Center" IsTabStop="False" />
                </Grid>
                <TextBlock x:Name="TextContent" FontSize="14.66" Text="{CustomResource :appstring:0xB62171F1L}" Style="{StaticResource ButtonTextStyle}" VerticalAlignment="Center" HorizontalAlignment="Left" MinWidth="150"/>
              </StackPanel>
            </Border>
            <Rectangle x:Name="FocusVisualWhite"
               IsHitTestVisible="False"
               Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
               StrokeEndLineCap="Square"
               StrokeDashArray="1,1"
               Opacity="0"
               StrokeDashOffset="1.5" />
            <Rectangle x:Name="FocusVisualBlack"
               IsHitTestVisible="False"
               Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
               StrokeEndLineCap="Square"
               StrokeDashArray="1,1"
               Opacity="0"
               StrokeDashOffset="0.5" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="ImagePreviewItemPresenterTemplate" TargetType="ListViewItem">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ListViewItem">
          <ListViewItemPresenter
          SelectionCheckMarkVisualEnabled="False"
          SelectedBorderThickness="3"
          SelectedBackground="{StaticResource CaptureUIThumbnailSelectedThemeBrush}"
          SelectedPointerOverBorderBrush="{StaticResource CaptureUIThumbnailSelectedThemeBrush}"
          FocusBorderBrush="{StaticResource CaptureUIApplicationForegroundThemeBrush}" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
</ResourceDictionary>
