<Application
    x:Class="StockPortfolio.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:c1tile="using:C1.Xaml.Tile"
    xmlns:common="using:StockPortfolio.Common"
    xmlns:local="using:StockPortfolio">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Default">
                    <SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="#FF1D1D1D"/>
                    <SolidColorBrush x:Key="ControlExplorerBackgroundThemeBrush" Color="#E5000000"/>
                    <SolidColorBrush x:Key="ControlExplorerMainTitleThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkStripeThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerLightStripeThemeBrush" Color="#FF0AC2FF"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerLightForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerBodyBackgroundThemeBrush" Color="#FF1D1D1D"/>
                    <SolidColorBrush x:Key="ControlExplorerLeftPanelThemeBrush" Color="Black"/>
                    <SolidColorBrush x:Key="ControlExplorerSimpleTextForegroundThemeBrush" Color="White"/>
                    <SolidColorBrush x:Key="ControlExplorerHyperlinkThemeBrush" Color="#FF0AC2FF"/>
                    <SolidColorBrush x:Key="ControlExplorerHubSectionHeaderThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerIconBackgroundThemeBrush" Color="#FF333333"/>
                    <SolidColorBrush x:Key="ControlExplorerIconThemeBrush" Color="#FFFFFFFF"/>
                </ResourceDictionary>
                <ResourceDictionary x:Key="Light">
                    <SolidColorBrush x:Key="ControlExplorerBackgroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerMainTitleThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkStripeThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerLightStripeThemeBrush" Color="#FF0AC2FF"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkForegroundThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerLightForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerBodyBackgroundThemeBrush" Color="#FFF2F2F2"/>
                    <SolidColorBrush x:Key="ControlExplorerLeftPanelThemeBrush" Color="White"/>
                    <SolidColorBrush x:Key="ControlExplorerSimpleTextForegroundThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="#FFF2F2F2"/>
                    <SolidColorBrush x:Key="ControlExplorerHyperlinkThemeBrush" Color="#FF0AC2FF"/>
                    <SolidColorBrush x:Key="ControlExplorerHubSectionHeaderThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerIconBackgroundThemeBrush" Color="#FF2C383D"/>
                    <SolidColorBrush x:Key="ControlExplorerIconThemeBrush" Color="#FFFFFFFF"/>
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrast">
                    <SolidColorBrush x:Key="ControlExplorerBackgroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerMainTitleThemeBrush" Color="#FFFFFF00"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkStripeThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerLightStripeThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkForegroundThemeBrush" Color="#FFFFFF00"/>
                    <SolidColorBrush x:Key="ControlExplorerLightForegroundThemeBrush" Color="#FFFFFF00"/>
                    <SolidColorBrush x:Key="ControlExplorerBodyBackgroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerLeftPanelThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerSimpleTextForegroundThemeBrush" Color="#FFFFFF00"/>
                    <SolidColorBrush x:Key="ControlExplorerHyperlinkThemeBrush" Color="#FF8080FF"/>
                    <SolidColorBrush x:Key="ControlExplorerHubSectionHeaderThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerIconBackgroundThemeBrush" Color="#FF222222"/>
                    <SolidColorBrush x:Key="ControlExplorerIconThemeBrush" Color="#FFFFFFFF"/>
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrastBlack">
                    <SolidColorBrush x:Key="ControlExplorerBackgroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerMainTitleThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkStripeThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerLightStripeThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerLightForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerBodyBackgroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerLeftPanelThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerSimpleTextForegroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerHyperlinkThemeBrush" Color="#FFFFFF00"/>
                    <SolidColorBrush x:Key="ControlExplorerHubSectionHeaderThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerIconBackgroundThemeBrush" Color="#FF222222"/>
                    <SolidColorBrush x:Key="ControlExplorerIconThemeBrush" Color="#FFFFFFFF"/>
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrastWhite">
                    <SolidColorBrush x:Key="ControlExplorerBackgroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerMainTitleThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkStripeThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerLightStripeThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerDarkForegroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerLightForegroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerBodyBackgroundThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerLeftPanelThemeBrush" Color="#FFFFFFFF"/>
                    <SolidColorBrush x:Key="ControlExplorerSimpleTextForegroundThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerHyperlinkThemeBrush" Color="#FF00009F"/>
                    <SolidColorBrush x:Key="ControlExplorerHubSectionHeaderThemeBrush" Color="#FF000000"/>
                    <SolidColorBrush x:Key="ControlExplorerIconBackgroundThemeBrush" Color="#FFF0F0F0"/>
                    <SolidColorBrush x:Key="ControlExplorerIconThemeBrush" Color="#FF000000"/>
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Common/StandardStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
             <!--TileStyle-->
            <DataTemplate x:Key="Style1">
                <c1tile:C1Tile  Padding="0" HorizontalHeaderAlignment="Stretch"  Width="{Binding Width}" Height="{Binding Height}" Background="#FFb1356b" Foreground="White" HeaderBackground="#22000000" HeaderForeground="White" BackContent="{Binding Title}"  Header="{Binding Title}" BorderThickness="0">
                    <c1tile:C1Tile.Content>
                        <Grid >
                            <Path Data="M21,20 L27,20 L27,24 L21,24 z M48,13.47 L48,34 C48,36.2091 46.2091,38 44,38 L4,38 C1.79086,38 0,36.2091 0,34 L0,13.47 L0.050926,13.5439 C3.27892,18.0839 10.0333,21.5167 18.266,22.6214 L19,22.7097 L19,25 C19,25.5523 19.4477,26 20,26 L28,26 C28.5523,26 29,25.5523 29,25 L29,22.7097 L29.734,22.6214 C37.9667,21.5167 44.7211,18.0839 47.9491,13.5439 z M17,3 L17,8 L31,8 L31,3 z M16,0 L32,0 C33.1046,0 34,0.895432 34,2 L34,8 L44,8 C46.071,8 47.7745,9.574 47.9793,11.591 L47.9807,11.6093 L47.9518,11.6676 C45.3818,16.643 38.329,20.495 29.5135,21.6458 L29,21.7059 L29,19 C29,18.4477 28.5523,18 28,18 L20,18 C19.4477,18 19,18.4477 19,19 L19,21.7059 L18.4865,21.6458 C9.67095,20.495 2.6182,16.643 0.048165,11.6676 L0.019261,11.6093 L0.020652,11.591 C0.225491,9.574 1.92893,8 4,8 L14,8 L14,2 C14,0.895432 14.8954,0 16,0 z"  Fill="#26FFFFFF" Stretch="UniformToFill" Margin="10 -30 10 0"/>
                        </Grid>
                    </c1tile:C1Tile.Content>
                </c1tile:C1Tile>
            </DataTemplate>
            <DataTemplate x:Key="Style2">
                <c1tile:C1SlideTile  Width="{Binding Width}" Height="{Binding Height}"
                                       Header="{Binding Title}">
                    <c1tile:C1Tile.ContentTemplate>
                        <DataTemplate>
                            <Border Background="#38BDF7" >
                                <TextBlock Text="{Binding Title}"/>
                            </Border>
                        </DataTemplate>
                    </c1tile:C1Tile.ContentTemplate>
                    <c1tile:C1Tile.BackContentTemplate>
                        <DataTemplate>
                            <Border Background="#B25287" >
                                <TextBlock Text="{Binding Title}"/>
                            </Border>
                        </DataTemplate>
                    </c1tile:C1Tile.BackContentTemplate>
                </c1tile:C1SlideTile>
            </DataTemplate>
            <DataTemplate x:Key="Style3">
                <c1tile:C1SlideTile Padding="0" HorizontalHeaderAlignment="Stretch"  Width="{Binding Width}" Height="{Binding Height}" Background="#FFF79319" Foreground="White" HeaderBackground="#22000000" HeaderForeground="White" BackContent="{Binding Title}"  Header="{Binding Title}"  BorderThickness="0">
                    <c1tile:C1Tile.Content>
                        <Grid>
                            <Path Data="M6.69231,18.961 L10.6944,18.961 L14.6983,25.6534 L18.7251,18.961 L22.3077,18.961 C26.0038,18.961 29,21.9573 29,25.6534 L29,34.5766 L29,29.269 L0,29.269 L0,25.6534 C0,21.9573 2.99625,18.961 6.69231,18.961 z M14.5,0 C19.4281,0 23.423,3.99496 23.423,8.92298 C23.423,13.851 19.4281,17.846 14.5,17.846 C9.57199,17.846 5.57703,13.851 5.57703,8.92298 C5.57703,3.99496 9.57199,0 14.5,0 z" Fill="#26FFFFFF" Stretch="UniformToFill" Margin="0 10 0 0" />
                        </Grid>
                    </c1tile:C1Tile.Content>
                </c1tile:C1SlideTile>
            </DataTemplate>
            <DataTemplate x:Key="Style4">
                <c1tile:C1SlideTile Width="{Binding Width}" Height="{Binding Height}" BackContent="{Binding Title}" Background="#327D05" Content="{Binding Title}" Header="{Binding Title}"  SlideDirection="Right" HorizontalHeaderAlignment="Right"/>
            </DataTemplate>
            <DataTemplate x:Key="Style5">
                <c1tile:C1SlideTile Width="{Binding Width}" Height="{Binding Height}" Background="#289A56" Content="{Binding Title}" Header="{Binding Title}" />
            </DataTemplate>
            <DataTemplate x:Key="Style6">
                <c1tile:C1FlipTile Width="{Binding Width}" Height="{Binding Height}" Background="#F7DB16" Content="{Binding Title}" Header="{Binding Title}" />
            </DataTemplate>
            <DataTemplate x:Key="Style7">
                <c1tile:C1FlipTile Padding="0" HorizontalHeaderAlignment="Stretch"  Width="{Binding Width}" Height="{Binding Height}" Background="#FF76AF3C" Foreground="White" HeaderBackground="#22000000" HeaderForeground="White" BackContent="{Binding Title}"  Header="{Binding Title}"  BorderThickness="0">
                       <c1tile:C1Tile.ContentTemplate>
                        <DataTemplate>
                             <Grid>
                                <Path Data="M2.3626099,4.055696 C2.7749274,4.0572982 3.1461689,4.1598258 3.3802159,4.4126482 C4.0277925,5.1121783 4.0129013,5.4725938 3.9938798,6.391921 L3.9938798,36.091122 L4.2066398,36.043842 C8.0528564,35.221184 14.373047,35.085327 22.5,37.95092 C30.626953,35.085327 36.947144,35.221184 40.793362,36.043842 L41.006123,36.091122 L41.006123,6.3919196 C40.987099,5.4725938 40.972206,5.1121783 41.619785,4.4126482 C42.45195,3.5137229 45.018528,4.5148258 44.999065,5.1968217 L44.999065,37.952763 L44.999985,37.955627 L44.999985,39.126827 C45.005363,39.975769 43.556091,40.693535 42.531628,40.32386 C40.426746,39.564323 35.022133,37.814011 22.5,42 C9.9778709,37.814011 4.573256,39.564323 2.4683735,40.32386 C1.4439085,40.693535 -0.0053622052,39.975769 1.4919346E-05,39.126827 L1.4919346E-05,37.955627 L0.00093357591,37.952766 L0.00093357591,5.1968217 C-0.013054229,4.7066374 1.3089093,4.0516014 2.3626099,4.055696 z M33.422558,0.0009542405 C35.24612,0.016040623 36.837742,0.20785359 37.832417,0.42234066 L38,0.4603602 L38,33.387119 L37.892441,33.362915 C34.442463,32.636154 29.71471,32.96352 24.230867,34.611851 L23.999994,34.682953 L23.999994,2.1520827 L24.061659,2.1114509 C26.699711,0.44157395 30.383282,-0.024189515 33.422558,0.0009542405 z M11.577444,0.0009542405 C14.616719,-0.02418978 18.300289,0.44157371 20.938343,2.1114509 L20.999994,2.1520741 L20.999994,34.682949 L20.769135,34.611855 C15.285291,32.96352 10.557538,32.636154 7.1075583,33.362915 L6.9999981,33.387119 L6.9999981,0.46036017 L7.1675854,0.42233998 C8.1622581,0.20785329 9.7538776,0.016040336 11.577444,0.0009542405 z" Fill="#26FFFFFF" Stretch="UniformToFill" Margin="10 20 10 10" />
                            </Grid>
                        </DataTemplate>
                    </c1tile:C1Tile.ContentTemplate>
                    <c1tile:C1Tile.BackContentTemplate>
                        <DataTemplate>
                            <Border Background="#FF76AF3C" >
                                <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                                    <TextBlock Text="{Binding Title}"  Foreground="White" HorizontalAlignment="Center"/>
                                   
                                </StackPanel>
                            </Border>
                        </DataTemplate>
                    </c1tile:C1Tile.BackContentTemplate>
                </c1tile:C1FlipTile>
            </DataTemplate>

            <Style x:Key="Style1x1" TargetType="GridViewItem" 
               >
                <Setter Property="VariableSizedWrapGrid.ColumnSpan" Value="1"/>
                <Setter Property="VariableSizedWrapGrid.RowSpan" Value="1"/>
                <Setter Property="Width" Value="180"/>
                <Setter Property="Height" Value="180"/>
               
            </Style>
            <Style x:Key="Style2x2" TargetType="GridViewItem" 
               >
                <Setter Property="VariableSizedWrapGrid.ColumnSpan" Value="2"/>
                <Setter Property="VariableSizedWrapGrid.RowSpan" Value="2"/>
                <Setter Property="Width" Value="360"/>
                <Setter Property="Height" Value="360"/>
               
            </Style>
            <Style x:Key="Style2x1" TargetType="GridViewItem" 
               >
                <Setter Property="VariableSizedWrapGrid.ColumnSpan" Value="2"/>
                <Setter Property="VariableSizedWrapGrid.RowSpan" Value="1"/>
                <Setter Property="Width" Value="360"/>
                <Setter Property="Height" Value="180"/>
                
            </Style>
            <Style x:Key="Style1x2" TargetType="GridViewItem" 
               >
                <Setter Property="VariableSizedWrapGrid.ColumnSpan" Value="1"/>
                <Setter Property="VariableSizedWrapGrid.RowSpan" Value="2"/>
                <Setter Property="Width" Value="180"/>
                <Setter Property="Height" Value="360"/>
                
            </Style>
            <!--TileStyle-->

            
            <!--
                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="Back"/>
                <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" Text="&#xE0A8;" Foreground="{TemplateBinding Foreground}" Opacity="0"/>
                                    <TextBlock x:Name="NormalGlyph" Text="{StaticResource BackButtonGlyph}" Foreground="{TemplateBinding Foreground}"/>
                                    <TextBlock x:Name="ArrowGlyph" Text="&#xE0A6;" Foreground="{TemplateBinding Foreground}" 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="#FFD1D1D1"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalGlyph" Storyboard.TargetProperty="Foreground">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="#FFD1D1D1"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="White"/>
                                                </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="FindButtonStyle" TargetType="Button">
                <Setter Property="Foreground" Value="{ThemeResource AppBarItemForegroundThemeBrush}"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
                <Setter Property="FontWeight" Value="Normal"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid x:Name="RootGrid" Background="Transparent" Width="100">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="ApplicationViewStates">
                                        <VisualState x:Name="FullSize"/>
                                        <VisualState x:Name="Compact">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="TextLabel">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Width" Storyboard.TargetName="RootGrid">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="60"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="PointerOver">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundEllipse">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemPointerOverBackgroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Content">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemPointerOverForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="OutlineEllipse">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundEllipse">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Content">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemPressedForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="OutlineEllipse">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemDisabledForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Content">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemDisabledForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="TextLabel">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemDisabledForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualState x:Name="Focused">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualWhite"/>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualBlack"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unfocused"/>
                                        <VisualState x:Name="PointerFocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <StackPanel Margin="0,14,0,13" VerticalAlignment="Top">
                                    <Grid HorizontalAlignment="Center" Height="40" Margin="0,0,0,5" Width="40">
                                        <Ellipse x:Name="BackgroundEllipse" Fill="{ThemeResource AppBarItemBackgroundThemeBrush}" Height="40" UseLayoutRounding="False" Width="40"/>
                                        <Ellipse x:Name="OutlineEllipse" Height="40" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="5" UseLayoutRounding="False" Width="40"/>
                                        <ContentPresenter x:Name="Content" AutomationProperties.AccessibilityView="Raw" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                                    </Grid>
                                </StackPanel>
                                <Rectangle x:Name="FocusVisualWhite" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1"/>
                                <Rectangle x:Name="FocusVisualBlack" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="0.5" StrokeEndLineCap="Square" Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <common:DoubleToBrushConverter x:Key="doubleToBrush" />
            <common:ChangeToTransformConverter x:Key="changeToTransform" />
            <common:StringFormatConverter x:Key="stringFormat" />
            <common:BooleanToVisibilityConverter x:Key="booleanVisibility" />
            <common:DateFormatConverter x:Key="dateFormat" />
            <common:StringToVisibilityConverter x:Key="StringToVisibilityConverter"/>
            <common:DateTimeToStringConverter x:Key="DateTimeToStringConverter"/>

            <common:DoubleToGlyphConverter x:Key="doubleToGlyph" />
            <SolidColorBrush x:Key="CE-HeaderBackground" Color="#FF263232"/>
            <Style x:Key="CE-HeaderTextBlock" TargetType="TextBlock">
                <Setter Property="FontSize" Value="20" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="FontWeight" Value="Bold" />
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>
