<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    mc:Ignorable="d">

    <Style TargetType="{x:Type DetailsViewGameOverview}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DetailsViewGameOverview}">
                    <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                                  VerticalScrollBarVisibility="Auto"
                                  Style="{DynamicResource DetailsScrollViewer}"
                                  d:DesignWidth="1280"
                                  d:DesignHeight="1280"
                                  d:DataContext="{x:Static DesignMainViewModel.DesignSelectedGameDetailsIntance}"
                                  x:Name="PART_ScrollViewHost">
                        <Grid Margin="0,0,0,40">
                            <StackPanel Name="BackgroundBlurPanel">
                                <Border Height="{Binding ElementName=HeaderImagesGrid, Path=ActualHeight}"/>
                                <Border Name="FastBlurGrid"
                                        Opacity="0.25"
                                        VerticalAlignment="Top">
                                    <Border.OpacityMask>
                                        <LinearGradientBrush StartPoint="0.5, 0.0"
                                                EndPoint="0.5, 1.0">
                                            <GradientStop Color="Black"
                                                    Offset="0.8"/>
                                            <GradientStop Color="Transparent"
                                                    Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.OpacityMask>
                                    <Grid x:Name="MainGrid"
                                            Height="600">
                                        <Grid.Clip>
                                            <RectangleGeometry Rect="0, 0, 3840, 800"/>
                                        </Grid.Clip>
                                        <Grid.CacheMode>
                                            <BitmapCache EnableClearType="False"
                                                         RenderAtScale="0.05"
                                                         SnapsToDevicePixels="False"/>
                                        </Grid.CacheMode>
                                        <Border RenderTransformOrigin="0.5,0.5">
                                            <Border.Background>
                                                <VisualBrush Visual="{Binding ElementName=BorderImageBackground}"
                                                        Stretch="UniformToFill"
                                                             AlignmentY="Center"
                                                        AlignmentX="Center"/>
                                            </Border.Background>
                                            <Border.Effect>
                                                <BlurEffect Radius="100"
                                                        KernelType="Gaussian"
                                                        RenderingBias="Performance"/>
                                            </Border.Effect>
                                            <Border.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform ScaleX="-1"
                                                            ScaleY="1"/>
                                                    <RotateTransform Angle="180"/>
                                                </TransformGroup>
                                            </Border.RenderTransform>
                                        </Border>
                                    </Grid>
                                </Border>
                            </StackPanel>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid Grid.Row="0"
                                        Height="{Binding ElementName=DetailsTop, Path=ActualHeight}"
                                      Name="BorderImageBackground">
                                    <Grid.OpacityMask>
                                        <LinearGradientBrush StartPoint="0.5, 0.0"
                                                EndPoint="0.5, 1.0">
                                            <GradientStop Color="Black"
                                                    Offset="0.90"/>
                                            <GradientStop Color="Transparent"
                                                    Offset="1"/>
                                        </LinearGradientBrush>
                                    </Grid.OpacityMask>
                                    <Grid Background="#141414"
                                            Height="{Binding ElementName=DetailsTop, Path=ActualHeight}">
                                        <Grid.Style>
                                            <Style TargetType="Grid">
                                                <Setter Property="Visibility"
                                                        Value="Visible"/>
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Settings DetailsVisibility.BackgroundImage}"
                                                            Value="False">
                                                        <Setter Property="Visibility"
                                                                Value="Hidden"/>
                                                    </DataTrigger>
                                                    <DataTrigger Binding="{Binding Game.BackgroundImage}"
                                                            Value="{x:Null}">
                                                        <Setter Property="Visibility"
                                                                Value="Hidden"/>
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </Grid.Style>
                                    </Grid>
                                    <Border>
                                        <Border.Style>
                                            <Style TargetType="{x:Type Border}">
                                                <Setter Property="Visibility"
                                                        Value="Visible"/>
                                                <Style.Triggers>
                                                    <MultiDataTrigger>
                                                        <MultiDataTrigger.Conditions>
                                                            <Condition Binding="{PluginSettings Plugin=BackgroundChanger, Path=HasDataBackground, FallbackValue=False}"
                                                                    Value="True"/>
                                                            <Condition Binding="{PluginSettings Plugin=BackgroundChanger, Path=EnableBackgroundImage, FallbackValue=False}"
                                                                    Value="True"/>
                                                        </MultiDataTrigger.Conditions>
                                                        <Setter Property="Visibility"
                                                                Value="Collapsed"/>
                                                    </MultiDataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </Border.Style>
                                        <FadeImage x:Name="PART_ImageBackground"
                                                Stretch="UniformToFill"
                                                   HorizontalAlignment="{DynamicResource DetailsViewBackgroundHorizontalAlignment}"
                                                   VerticalAlignment="{DynamicResource DetailsViewBackgroundVerticalAlignment}">
                                            <FadeImage.OpacityMask>
                                                <LinearGradientBrush StartPoint="0.5, 0.0"
                                                        EndPoint="0.5, 1.0">
                                                    <GradientStop Color="Black"
                                                            Offset="0.75"/>
                                                    <GradientStop Color="Transparent"
                                                            Offset="1"/>
                                                </LinearGradientBrush>
                                            </FadeImage.OpacityMask>
                                        </FadeImage>
                                    </Border>

                                    <!-- BackgroundChanger plugin background -->
                                    <ContentControl x:Name="BackgroundChanger_PluginBackgroundImage"
                                                    HorizontalAlignment="{DynamicResource DetailsViewBackgroundHorizontalAlignment}"
                                                    VerticalAlignment="{DynamicResource DetailsViewBackgroundVerticalAlignment}"/>
                                </Grid>

                                <StackPanel Grid.Row="0"
                                        Name="DetailsTop"
                                        VerticalAlignment="Top">
                                    <Grid Name="HeaderImagesGrid"
                                            Height="{Settings CalculatedGameDetailsIndentation}"
                                            MinHeight="310">
                                        <Border Panel.ZIndex="99">
                                            <Border.Style>
                                                <Style TargetType="Border">
                                                    <Setter Property="Visibility"
                                                            Value="Visible"/>
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=EnableVideoPlayer, FallbackValue=False}"
                                                                Value="False">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </Border.Style>
                                            <ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControlAlternative"
                                                    Margin="10"
                                                    HorizontalAlignment="Left"/>
                                        </Border>
                                        <ContentControl x:Name="ExtraMetadataLoader_LogoLoaderControl"
                                                        Margin="20,20,30,20"
                                                        Tag="{DynamicResource DetailsViewAllowUseOfLogos}"
                                                        Style="{DynamicResource ControlPanelBoolTagToVisibility}"/>

                                        <StackPanel Margin="20,0,10,20"
                                                VerticalAlignment="Bottom">
                                            <!--<Image Name="PART_ImageIcon" MaxHeight="48" MaxWidth="48"
                                                   DockPanel.Dock="Left" Margin="0,0,20,0"
                                                   VerticalAlignment="Bottom"
                                                   RenderOptions.BitmapScalingMode="Fant" />-->
                                            <DockPanel LastChildFill="False">
                                                <ContentControl x:Name="ScreenshotsVisualizer_PluginButton"
                                                        Height="40"
                                                        VerticalAlignment="Bottom"
                                                        Margin="0,0,10,0"
                                                        DockPanel.Dock="Left"
                                                        Opacity="0.80"
                                                                Visibility="{PluginSettings Plugin=ScreenshotsVisualizer, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                <ContentControl x:Name="SystemChecker_PluginButton"
                                                        Height="40"
                                                        VerticalAlignment="Bottom"
                                                        Margin="0,0,10,0"
                                                        DockPanel.Dock="Left"
                                                        Opacity="0.80"
                                                                Visibility="{PluginSettings Plugin=SystemChecker, Path=EnableIntegrationButton, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                <ContentControl x:Name="CheckLocalizations_PluginButton"
                                                        Height="40"
                                                        VerticalAlignment="Bottom"
                                                        Margin="0,0,10,0"
                                                        DockPanel.Dock="Left"
                                                        Opacity="0.80"
                                                                Visibility="{PluginSettings Plugin=CheckLocalizations, Path=EnableIntegrationButton, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                <ContentControl x:Name="CheckDlc_PluginButton"
                                                        Height="40"
                                                        VerticalAlignment="Bottom"
                                                        Margin="0,0,10,0"
                                                        DockPanel.Dock="Left"
                                                        Opacity="0.80"
                                                                Visibility="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationButton, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                <ContentControl x:Name="LibraryManagement_PluginFeaturesIconList"
                                                        Height="30"
                                                        Margin="0,0,20,0"
                                                                VerticalAlignment="Bottom"
                                                        DockPanel.Dock="Right"
                                                        Opacity="0.80"
                                                                Visibility="{PluginSettings Plugin=LibraryManagement, Path=EnableIntegrationFeatures, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <ContentControl.Effect>
                                                        <DropShadowEffect BlurRadius="5"
                                                                RenderingBias="Performance"
                                                                          ShadowDepth="0"
                                                                Color="DarkGray"/>
                                                    </ContentControl.Effect>
                                                </ContentControl>
                                            </DockPanel>
                                            <Border DockPanel.Dock="Left"
                                                    Margin="0,10,0,0"
                                                    Tag="{DynamicResource DetailsViewDisplayGameNameIfLogoVisible}">
                                                <Border.Style>
                                                    <Style TargetType="Border">
                                                        <Setter Property="Visibility"
                                                                Value="Visible"/>
                                                        <Style.Triggers>
                                                            <MultiDataTrigger>
                                                                <MultiDataTrigger.Conditions>
                                                                    <Condition Binding="{Binding Tag, RelativeSource={RelativeSource Self}, FallbackValue=False}"
                                                                            Value="False"/>
                                                                    <Condition Binding="{Binding ElementName=ExtraMetadataLoader_LogoLoaderControl, Path=Visibility, FallbackValue=Collapsed}"
                                                                            Value="Visible"/>
                                                                    <Condition Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=IsLogoAvailable, FallbackValue=False}"
                                                                            Value="True"/>
                                                                </MultiDataTrigger.Conditions>
                                                                <Setter Property="Visibility"
                                                                        Value="Collapsed"/>
                                                            </MultiDataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </Border.Style>
                                                <TextBlock FontFamily="{DynamicResource FontFamily}"
                                                        Name="PART_TextDisplayName"
                                                           FontSize="{DynamicResource FontSizeLargest}"
                                                           FontWeight="Medium"
                                                           TextWrapping="Wrap"
                                                        VerticalAlignment="Center"
                                                        Foreground="White">
                                                    <TextBlock.Effect>
                                                        <DropShadowEffect Color="Black"
                                                                ShadowDepth="0"
                                                                Opacity="1"
                                                                          BlurRadius="10"
                                                                Direction="0"
                                                                          RenderingBias="Performance"/>
                                                    </TextBlock.Effect>
                                                </TextBlock>
                                            </Border>
                                        </StackPanel>
                                        <StackPanel Margin="20,20,0,0"
                                                    HorizontalAlignment="Left"
                                                VerticalAlignment="Top">
                                            <ContentControl x:Name="CheckLocalizations_PluginFlags"
                                                    Height="30"
                                                            Margin="0,0,0,10"
                                                            Visibility="{PluginSettings Plugin=CheckLocalizations, Path=EnableIntegrationFlags, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
                                                            Opacity="0.85"/>
                                            <ContentControl x:Name="DuplicateHider_SourceSelector"
                                                            HorizontalAlignment="Left"
                                                    VerticalAlignment="Top"
                                                            VerticalContentAlignment="Center"
                                                            Height="24"
                                                            RenderOptions.BitmapScalingMode="Fant"/>
                                        </StackPanel>

                                        <StackPanel Margin="0,0,30,0"
                                                VerticalAlignment="Top"
                                                HorizontalAlignment="Right">
                                            <!--GridConverterGridPanelCloseButton-->
                                            <ContentControl x:Name="NewsViewer_PlayersInGameViewerControl"
                                                            Margin="0,20,0,0"
                                                            HorizontalAlignment="Right"
                                                    VerticalAlignment="Top">
                                                <ContentControl.Resources>
                                                    <Style TargetType="Button"
                                                            BasedOn="{StaticResource PlayersCountButtonStyle}"/>
                                                </ContentControl.Resources>
                                            </ContentControl>

                                            <Border Margin="0,10,0,0"
                                                    Background="{DynamicResource DetailsViewBannerPanelBackgroundBrush}"
                                                    BorderBrush="{DynamicResource DetailsViewBannerPanelBorderBrush}"
                                                    BorderThickness="1"
                                                    Padding="6,2,6,2"
                                                    Visibility="{PluginSettings Plugin=GogSecondClassWatcher, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                <ContentControl x:Name="GogSecondClassWatcher_SecondClassWatcherControl"/>
                                            </Border>
                                        </StackPanel>
                                    </Grid>
                                    <Grid Name="DetailsHeader">
                                        <Border Height="{Binding ElementName=DetailsHeader, Path=Height}"
                                                ClipToBounds="True">
                                            <Border.CacheMode>
                                                <BitmapCache EnableClearType="False"
                                                        RenderAtScale="0.125"
                                                             SnapsToDevicePixels="False"/>
                                            </Border.CacheMode>
                                            <Border.Background>
                                                <VisualBrush Visual="{Binding ElementName=BorderImageBackground}"
                                                        Stretch="None"
                                                        AlignmentY="Bottom"/>
                                            </Border.Background>
                                            <Border.Effect>
                                                <BlurEffect Radius="24"
                                                        KernelType="Gaussian"
                                                        RenderingBias="Performance"/>
                                            </Border.Effect>
                                        </Border>
                                        <Border Background="{DynamicResource BackdropGlass1}"/>
                                        <Border Padding="20,10,30,10"
                                                x:Name="HeaderRow"
                                                Background="{DynamicResource DetailsSectionBackgroundBrush}">
                                            <DockPanel>
                                                <DockPanel.Resources>
                                                    <Style x:Key="RoundedProgressBar"
                                                            TargetType="ProgressBar">
                                                        <Setter Property="Background"
                                                                Value="#151619"/>
                                                        <Setter Property="Foreground"
                                                                Value="#2d73ff"/>
                                                        <Setter Property="BorderThickness"
                                                                Value="{DynamicResource ControlBorderThickness}"/>
                                                        <Setter Property="Template">
                                                            <Setter.Value>
                                                                <ControlTemplate TargetType="{x:Type ProgressBar}">
                                                                    <Border BorderThickness="{TemplateBinding BorderThickness}"
                                                                            CornerRadius="{DynamicResource ControlCornerRadius}">
                                                                        <Grid SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                                                                            <Rectangle Fill="{TemplateBinding Background}"
                                                                                    RadiusY="4"
                                                                                    RadiusX="4"/>
                                                                            <Rectangle x:Name="PART_Track"
                                                                                    Margin="0"
                                                                                    RadiusY="4"
                                                                                    RadiusX="4"/>
                                                                            <Decorator x:Name="PART_Indicator"
                                                                                    HorizontalAlignment="Left"
                                                                                    VerticalAlignment="Stretch">
                                                                                <Grid>
                                                                                    <Rectangle Fill="{TemplateBinding Foreground}"
                                                                                            RadiusY="4"
                                                                                            RadiusX="4"/>
                                                                                </Grid>
                                                                            </Decorator>
                                                                        </Grid>
                                                                    </Border>
                                                                </ControlTemplate>
                                                            </Setter.Value>
                                                        </Setter>
                                                    </Style>
                                                </DockPanel.Resources>
                                                <DockPanel HorizontalAlignment="Left"
                                                        VerticalAlignment="Center"
                                                           Margin="0,0,10,0"
                                                        DockPanel.Dock="Left">
                                                    <Button Name="PART_ButtonPlayAction"
                                                            Style="{DynamicResource PlayButton}"/>
                                                    <Button Name="PART_ButtonContextAction"
                                                            Style="{DynamicResource ContextButton}"/>
                                                    <Button Name="PART_ButtonMoreActions"
                                                            Style="{DynamicResource MoreActionsButton}"/>
                                                </DockPanel>

                                                <DockPanel DockPanel.Dock="Right"
                                                        VerticalAlignment="Center"
                                                        Margin="0,0,0,0">
                                                    <ContentControl x:Name="PlayState_GameStateSwitchControl"
                                                            Margin="10,0,0,0"
                                                                    Visibility="{PluginSettings Plugin=PlayState, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                        <ContentControl.Resources>
                                                            <Style TargetType="Button"
                                                                    BasedOn="{StaticResource DetailsSemiTransparentButton}">
                                                                <Setter Property="Width"
                                                                        Value="32"/>
                                                                <Setter Property="Height"
                                                                        Value="32"/>
                                                            </Style>
                                                        </ContentControl.Resources>
                                                    </ContentControl>
                                                    <Button x:Name="PART_ButtonEditGame"
                                                            Focusable="False"
                                                            Height="32"
                                                            Width="32"
                                                            Style="{StaticResource DetailsViewEditButton}"
                                                            Margin="10,0,0,0"/>
                                                    <ToggleButton Name="PanelToggleButton"
                                                            Margin="10,0,0,0"
                                                            Focusable="False"
                                                            Height="32"
                                                            Width="32"
                                                            Style="{DynamicResource PannelToggleButton}"
                                                            IsChecked="{DynamicResource DetailsViewShowInfoPanelDefault}"/>
                                                    <ToggleButton Name="GameFavoriteToggleButton"
                                                            Margin="10,0,0,0"
                                                            Focusable="False"
                                                            Height="32"
                                                            Width="32"
                                                            Style="{DynamicResource PannelFavoriteToggleButton}"
                                                                  Visibility="{PluginStatus Plugin=felixkmh_Extras_Plugin}"
                                                                  IsChecked="{PluginSettings Plugin=ThemeExtras, Path=Game.Favorite, Mode=TwoWay, FallbackValue={StaticResource False}}"/>
                                                </DockPanel>

                                                <StackPanel Margin="20,0,0,0"
                                                        VerticalAlignment="Center"
                                                            Style="{DynamicResource PluginStackpanelVisibility}"
                                                            Tag="{PluginSettings Plugin=SteamGameStatusDetector, Path=HasData, FallbackValue=False}">
                                                    <Label Content="{PluginSettings Plugin=SteamGameStatusDetector, Path=AppState, FallbackValue='-'}"
                                                            Style="{DynamicResource HeaderLabel}"/>
                                                    <ProgressBar FontSize="10"
                                                            Margin="0,0,0,0"
                                                            HorizontalAlignment="Left"
                                                                 Maximum="{PluginSettings Plugin=SteamGameStatusDetector, Path=BytesToDownload, FallbackValue=1}"
                                                                 Value="{PluginSettings Plugin=SteamGameStatusDetector, Path=BytesDownloaded, FallbackValue=0}"
                                                                 Width="75"
                                                            Height="6"
                                                            Style="{DynamicResource RoundedProgressBar}"/>

                                                    <TextBlock Text="{PluginSettings Plugin=SteamGameStatusDetector, Path=DownloadProgress, FallbackValue='-'}"
                                                               Style="{DynamicResource HeaderTextBlock}"/>
                                                </StackPanel>

                                                <DockPanel x:Name="PART_ElemLastPlayed"
                                                        DockPanel.Dock="Left"
                                                        VerticalAlignment="Center"
                                                        Margin="20,0,0,0">
                                                    <StackPanel HorizontalAlignment="Left"
                                                            VerticalAlignment="Top"
                                                            Margin="5,0,0,0">
                                                        <Label Style="{DynamicResource HeaderLabel}"
                                                                Content="{DynamicResource LOCLastPlayed}"/>
                                                        <TextBlock x:Name="PART_TextLastActivity"
                                                                Style="{DynamicResource HeaderTextBlock}"/>
                                                    </StackPanel>
                                                </DockPanel>

                                                <DockPanel x:Name="PART_ElemPlayTime"
                                                        DockPanel.Dock="Left"
                                                        VerticalAlignment="Center"
                                                        Margin="20,0,0,0">

                                                    <Viewbox Height="25">
                                                        <Canvas Width="256"
                                                                Height="256"
                                                                Canvas.Left="0"
                                                                Canvas.Top="0">
                                                            <Canvas.RenderTransform>
                                                                <TranslateTransform X="0"
                                                                        Y="0"/>
                                                            </Canvas.RenderTransform>
                                                            <Canvas.Resources/>
                                                            <Polyline Points="85.5,149.167 128,128 128,55.167 "
                                                                    FillRule="NonZero"
                                                                    StrokeThickness="16"
                                                                    Stroke="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeMiterLimit="10"
                                                                    StrokeLineJoin="Round"
                                                                    StrokeStartLineCap="Round"
                                                                    StrokeEndLineCap="Round"/>
                                                            <Path StrokeThickness="16"
                                                                    Stroke="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeMiterLimit="10"
                                                                    StrokeLineJoin="Round"
                                                                    StrokeStartLineCap="Round"
                                                                    StrokeEndLineCap="Round">
                                                                <Path.Data>
                                                                    <PathGeometry Figures="M128 17.5c61.027 0 110.5 49.473 110.5 110.5S189.027 238.5 128 238.5S17.5 189.027 17.5 128"
                                                                            FillRule="NonZero"/>
                                                                </Path.Data>
                                                            </Path>
                                                            <Ellipse Canvas.Left="20.9"
                                                                    Canvas.Top="80.3"
                                                                    Width="11"
                                                                    Height="11"
                                                                    Fill="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeThickness="7"
                                                                    Stroke="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeMiterLimit="10"
                                                                    StrokeLineJoin="Round"
                                                                    StrokeStartLineCap="Round"
                                                                    StrokeEndLineCap="Round"/>
                                                            <Ellipse Canvas.Left="44.7"
                                                                    Canvas.Top="45"
                                                                    Width="11"
                                                                    Height="11"
                                                                    Fill="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeThickness="7"
                                                                    Stroke="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeMiterLimit="10"
                                                                    StrokeLineJoin="Round"
                                                                    StrokeStartLineCap="Round"
                                                                    StrokeEndLineCap="Round"/>
                                                            <Ellipse Canvas.Left="80.5"
                                                                    Canvas.Top="21.2"
                                                                    Width="11"
                                                                    Height="11"
                                                                    Fill="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeThickness="7"
                                                                    Stroke="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                    StrokeMiterLimit="10"
                                                                    StrokeLineJoin="Round"
                                                                    StrokeStartLineCap="Round"
                                                                    StrokeEndLineCap="Round"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                    <StackPanel HorizontalAlignment="Left"
                                                            VerticalAlignment="Top"
                                                            Margin="5,0,0,0">
                                                        <Label Style="{DynamicResource HeaderLabel}"
                                                                Content="{DynamicResource LOCTimePlayed}"/>
                                                        <TextBlock x:Name="PART_TextPlayTime"
                                                                Style="{DynamicResource HeaderTextBlock}"/>
                                                    </StackPanel>
                                                </DockPanel>

                                                <StackPanel DockPanel.Dock="Left"
                                                        VerticalAlignment="Center"
                                                        Margin="20,0,0,0">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Binding ElementName=PART_ButtonCompletionStatus, Path=Visibility}"
                                                                        Value="Visible">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding ElementName=ThemeExtras_SettableCompletionStatus, Path=Visibility}"
                                                                        Value="Visible">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Settings DetailsVisibility.CompletionStatus}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>

                                                    <Label Style="{DynamicResource HeaderLabel}"
                                                            Content="{DynamicResource LOCCompletionStatus}"/>
                                                    <Border Tag="{PluginStatus Plugin=felixkmh_Extras_Plugin, Status=Installed}"
                                                            Visibility="{Binding RelativeSource={RelativeSource Self}, Path=Tag, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                                                        <Button Name="PART_ButtonCompletionStatus"
                                                                Style="{StaticResource PropertyItemButton}"
                                                                Margin="0"/>
                                                    </Border>

                                                    <ContentControl Visibility="{PluginStatus Plugin=felixkmh_Extras_Plugin, Status=Installed}"
                                                                    x:Name="ThemeExtras_SettableCompletionStatus">
                                                        <ContentControl.Resources>
                                                            <Style TargetType="UserControl"
                                                                    BasedOn="{StaticResource ThemeExtrasUserControlCompStatusStyle}"/>
                                                        </ContentControl.Resources>
                                                    </ContentControl>
                                                </StackPanel>

                                                <DockPanel DockPanel.Dock="Left"
                                                        VerticalAlignment="Center"
                                                        Margin="20,0,0,0"
                                                           Visibility="{PluginSettings Plugin=SuccessStory, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Viewbox Stretch="Uniform"
                                                            Height="32"
                                                            Margin="-2,3,-2,0">
                                                        <Viewbox.Style>
                                                            <Style TargetType="{x:Type Viewbox}">
                                                                <Setter Property="Visibility"
                                                                        Value="Collapsed"/>
                                                                <Style.Triggers>
                                                                    <DataTrigger Binding="{PluginSettings Plugin=SuccessStory, Path=Is100Percent, FallbackValue=False}"
                                                                            Value="True">
                                                                        <Setter Property="Visibility"
                                                                                Value="Visible"/>
                                                                    </DataTrigger>
                                                                </Style.Triggers>
                                                            </Style>
                                                        </Viewbox.Style>
                                                        <Image Height="100"
                                                                Width="100">
                                                            <Image.Source>
                                                                <DrawingImage>
                                                                    <DrawingImage.Drawing>
                                                                        <DrawingGroup ClipGeometry="M0,0 V36 H36 V0 H0 Z">
                                                                            <GeometryDrawing Geometry="F1 M36,36z M0,0z M10.1777,10.0258L10.3929,9.80693 10.3929,9.49999 10.3929,5.52777 14.2857,5.52777 14.6001,5.52777 14.8205,5.30358 18,2.06976 21.1795,5.30358 21.3999,5.52777 21.7143,5.52777 25.6071,5.52777 25.6071,9.50001 25.6071,9.80696 25.8223,10.0258 28.5553,12.8055 25.8223,15.5853 25.6071,15.8041 25.6071,16.1111 25.6071,20.0833 21.7143,20.0833 21.3999,20.0833 21.1795,20.3075 18,23.5413 14.8205,20.3075 14.6001,20.0833 14.2857,20.0833 10.3929,20.0833 10.3929,16.1111 10.3929,15.8042 10.1777,15.5853 7.44464,12.8055 10.1777,10.0258z M14.7399,28.0317L11.56,33.4221 9.85164,29.9469 9.6456,29.5278 9.17857,29.5278 6.29474,29.5278 8.68445,25.3611 12.1142,25.3611 14.7399,28.0317z M26.8214,29.5278L26.3544,29.5278 26.1484,29.9469 24.44,33.4221 21.2601,28.0317 23.8858,25.3611 27.3155,25.3611 29.7053,29.5278 26.8214,29.5278z">
                                                                                <GeometryDrawing.Brush>
                                                                                    <LinearGradientBrush StartPoint="7.08,3.72"
                                                                                            EndPoint="33.6694,25.0697"
                                                                                            MappingMode="Absolute"
                                                                                            SpreadMethod="Pad"
                                                                                            Opacity="1">
                                                                                        <GradientStop Color="#FF0056D6"
                                                                                                Offset="0"/>
                                                                                        <GradientStop Color="#FF1A9FFF"
                                                                                                Offset="1"/>
                                                                                    </LinearGradientBrush>
                                                                                </GeometryDrawing.Brush>
                                                                                <GeometryDrawing.Pen>
                                                                                    <Pen Thickness="1.5"
                                                                                            StartLineCap="Flat"
                                                                                            EndLineCap="Flat"
                                                                                            LineJoin="Miter">
                                                                                        <Pen.Brush>
                                                                                            <LinearGradientBrush StartPoint="7.08,3.72"
                                                                                                    EndPoint="33.6694,25.0697"
                                                                                                    MappingMode="Absolute"
                                                                                                    SpreadMethod="Pad"
                                                                                                    Opacity="1">
                                                                                                <GradientStop Color="#FF0056D6"
                                                                                                        Offset="0"/>
                                                                                                <GradientStop Color="#FF1A9FFF"
                                                                                                        Offset="1"/>
                                                                                            </LinearGradientBrush>
                                                                                        </Pen.Brush>
                                                                                    </Pen>
                                                                                </GeometryDrawing.Pen>
                                                                            </GeometryDrawing>
                                                                            <GeometryDrawing Brush="#FFFFC82C">
                                                                                <GeometryDrawing.Pen>
                                                                                    <Pen Brush="#FFFFAB2C"
                                                                                            Thickness="1"
                                                                                            StartLineCap="Flat"
                                                                                            EndLineCap="Flat"
                                                                                            LineJoin="Miter"/>
                                                                                </GeometryDrawing.Pen>
                                                                                <GeometryDrawing.Geometry>
                                                                                    <EllipseGeometry RadiusX="5.5"
                                                                                            RadiusY="5.5"
                                                                                            Center="18,13"/>
                                                                                </GeometryDrawing.Geometry>
                                                                            </GeometryDrawing>
                                                                        </DrawingGroup>
                                                                    </DrawingImage.Drawing>
                                                                </DrawingImage>
                                                            </Image.Source>
                                                        </Image>
                                                    </Viewbox>

                                                    <Viewbox Stretch="Uniform"
                                                            Height="32"
                                                            Margin="-2,3,-2,0">
                                                        <Viewbox.Style>
                                                            <Style TargetType="{x:Type Viewbox}">
                                                                <Setter Property="Visibility"
                                                                        Value="Collapsed"/>
                                                                <Style.Triggers>
                                                                    <DataTrigger Binding="{PluginSettings Plugin=SuccessStory, Path=Is100Percent, FallbackValue={x:Null}}"
                                                                            Value="False">
                                                                        <Setter Property="Visibility"
                                                                                Value="Visible"/>
                                                                    </DataTrigger>
                                                                </Style.Triggers>
                                                            </Style>
                                                        </Viewbox.Style>
                                                        <Image Height="100"
                                                                Width="100">
                                                            <Image.Source>
                                                                <DrawingImage>
                                                                    <DrawingImage.Drawing>
                                                                        <DrawingGroup ClipGeometry="M0,0 V36 H36 V0 H0 Z">
                                                                            <GeometryDrawing Brush="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                                    Geometry="F0 M36,36z M0,0z M10.178,10.026L10.393,9.807 10.393,5.528 14.6,5.528 14.82,5.304 18,2.07 21.18,5.304 21.4,5.528 25.607,5.528 25.607,9.807 25.822,10.026 28.555,12.806 25.822,15.585 25.607,15.804 25.607,20.083 21.4,20.083 21.18,20.308 18,23.541 14.82,20.308 14.6,20.083 10.393,20.083 10.393,15.804 10.178,15.585 7.445,12.806 10.178,10.026z M18,7.5C14.964,7.5 12.5,9.964 12.5,13 12.5,16.036 14.964,18.5 18,18.5 21.036,18.5 23.5,16.036 23.5,13 23.5,9.964 21.036,7.5 18,7.5z M14.74,28.032L11.56,33.422 9.852,29.947 9.646,29.528 6.295,29.528 8.684,25.361 12.114,25.361 14.74,28.032z M29.705,29.528L26.354,29.528 26.148,29.947 24.44,33.422 21.26,28.032 23.886,25.361 27.316,25.361 29.705,29.528z">
                                                                                <GeometryDrawing.Pen>
                                                                                    <Pen Brush="{DynamicResource DetailsViewHeaderIconsFillBrush}"
                                                                                            Thickness="1.5"
                                                                                            StartLineCap="Flat"
                                                                                            EndLineCap="Flat"
                                                                                            LineJoin="Miter"/>
                                                                                </GeometryDrawing.Pen>
                                                                            </GeometryDrawing>
                                                                        </DrawingGroup>
                                                                    </DrawingImage.Drawing>
                                                                </DrawingImage>
                                                            </Image.Source>
                                                        </Image>
                                                    </Viewbox>

                                                    <StackPanel Margin="10,0,0,0"
                                                            VerticalAlignment="Center">
                                                        <Label x:Name="AchievementsHeaderLabel"
                                                               Content="{DynamicResource LOCSuccessStoryAchievements}"
                                                               Style="{DynamicResource HeaderLabel}"
                                                               HorizontalAlignment="Left"/>

                                                        <DockPanel LastChildFill="False">
                                                            <DockPanel Margin="0,0,8,0">
                                                                <TextBlock Text="{PluginSettings Plugin=SuccessStory, Path=Unlocked, FallbackValue='-'}"
                                                                           Style="{DynamicResource HeaderTextBlock}"/>
                                                                <TextBlock Text="/"
                                                                        Style="{DynamicResource HeaderTextBlock}"/>
                                                                <TextBlock Text="{PluginSettings Plugin=SuccessStory, Path=Total, FallbackValue='-'}"
                                                                           Style="{DynamicResource HeaderTextBlock}"/>
                                                            </DockPanel>

                                                            <StackPanel x:Name="DockAchievementsBar"
                                                                        VerticalAlignment="Center"
                                                                        MinWidth="70"
                                                                    HorizontalAlignment="Left">
                                                                <ProgressBar x:Name="progressBar"
                                                                             FontSize="10"
                                                                        Margin="0,0,0,0"
                                                                             Maximum="{PluginSettings Plugin=SuccessStory, Path=Total, FallbackValue=0}"
                                                                             Value="{PluginSettings Plugin=SuccessStory, Path=Unlocked, FallbackValue=0}"
                                                                             HorizontalAlignment="Left"
                                                                             Background="#151619"
                                                                        Foreground="#2d73ff"
                                                                             Height="6"
                                                                             Style="{DynamicResource RoundedProgressBar}"
                                                                             Width="{Binding ActualWidth, ElementName=DockAchievementsBar}"/>
                                                            </StackPanel>
                                                        </DockPanel>
                                                    </StackPanel>
                                                </DockPanel>

                                            </DockPanel>
                                        </Border>
                                    </Grid>
                                </StackPanel>

                                <Grid Name="GameDetailsSection"
                                        Grid.Row="1">
                                    <Grid>
                                        <Border Background="{DynamicResource BackdropGlass2}"
                                                Height="380"
                                                VerticalAlignment="Top"
                                                Margin="0,0,0,0"/>
                                    </Grid>
                                    <Grid Name="DetailsGrid">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>

                                        <Grid Grid.Row="1">
                                            <Grid.Style>
                                                <Style TargetType="Grid">
                                                    <Setter Property="Visibility"
                                                            Value="Visible"/>
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Binding ElementName=PanelToggleButton, Path=IsChecked}"
                                                                Value="False">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </Grid.Style>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                            </Grid.RowDefinitions>
                                            <Grid Grid.Row="0">
                                                <Border Background="{DynamicResource GameInfoContainerBackgroundBrush}"
                                                        Margin="20,0,30,0"
                                                        Padding="15,10,15,10">
                                                    <DockPanel LastChildFill="True">
                                                        <DockPanel.Resources>
                                                            <Style TargetType="Button"
                                                                    BasedOn="{StaticResource PropertyItemButton}"/>
                                                            <Style TargetType="Label">
                                                                <Setter Property="FontSize"
                                                                        Value="{DynamicResource FontSize}"/>
                                                                <Setter Property="Foreground"
                                                                        Value="{DynamicResource DetailsViewContainerLabelBrush}"/>
                                                                <Setter Property="Padding"
                                                                        Value="0"/>
                                                                <Setter Property="Margin"
                                                                        Value="0,4,20,4"/>
                                                                <Setter Property="VerticalAlignment"
                                                                        Value="Top"/>
                                                            </Style>
                                                        </DockPanel.Resources>
                                                        <Border DockPanel.Dock="Left"
                                                                Name="ContainerHeightBorder"
                                                                Height="{Settings GameDetailsCoverHeight}"
                                                                MinHeight="150"/>

                                                        <Grid DockPanel.Dock="Left"
                                                                Margin="0,0,15,0">
                                                            <Grid.Style>
                                                                <Style TargetType="Grid">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                    <Style.Triggers>
                                                                        <DataTrigger Binding="{Binding ElementName=PART_ImageCover, Path=Source}"
                                                                                Value="{x:Null}">
                                                                            <Setter Property="Visibility"
                                                                                    Value="Collapsed"/>
                                                                        </DataTrigger>
                                                                        <DataTrigger Binding="{Binding ElementName=PART_ImageCover, Path=Visibility}"
                                                                                Value="Collapsed">
                                                                            <Setter Property="Visibility"
                                                                                    Value="Collapsed"/>
                                                                        </DataTrigger>
                                                                        <DataTrigger Binding="{Binding ElementName=BackgroundChanger_PluginCoverImage, Path=Visibility}"
                                                                                Value="Visible">
                                                                            <Setter Property="Visibility"
                                                                                    Value="Collapsed"/>
                                                                        </DataTrigger>
                                                                    </Style.Triggers>
                                                                </Style>
                                                            </Grid.Style>
                                                            <Border BorderThickness="8"
                                                                    BorderBrush="Black">
                                                                <Border.CacheMode>
                                                                    <BitmapCache EnableClearType="False"
                                                                                 SnapsToDevicePixels="False"/>
                                                                </Border.CacheMode>
                                                                <Border.Effect>
                                                                    <DropShadowEffect RenderingBias="Performance"
                                                                                      BlurRadius="15"
                                                                            ShadowDepth="0"/>
                                                                </Border.Effect>
                                                            </Border>
                                                            <Image Name="PART_ImageCover"
                                                                    VerticalAlignment="Bottom"
                                                                   Height="{Binding ElementName=ContainerHeightBorder, Path=ActualHeight}"
                                                                   StretchDirection="Both"
                                                                    Stretch="Uniform"
                                                                   RenderOptions.BitmapScalingMode="Fant"/>
                                                        </Grid>

                                                        <ContentControl x:Name="BackgroundChanger_PluginCoverImage"
                                                                        Margin="0,0,15,0"
                                                                        DockPanel.Dock="Left"
                                                                VerticalAlignment="Bottom"
                                                                        Height="{Binding ElementName=ContainerHeightBorder, Path=ActualHeight}">
                                                            <ContentControl.Style>
                                                                <Style TargetType="ContentControl">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                    <Style.Triggers>
                                                                        <MultiDataTrigger>
                                                                            <MultiDataTrigger.Conditions>
                                                                                <Condition Binding="{PluginSettings Plugin=BackgroundChanger, Path=HasDataCover, FallbackValue=False}"
                                                                                        Value="True"/>
                                                                                <Condition Binding="{PluginSettings Plugin=BackgroundChanger, Path=EnableCoverImage, FallbackValue=False}"
                                                                                        Value="True"/>
                                                                            </MultiDataTrigger.Conditions>
                                                                            <Setter Property="Visibility"
                                                                                    Value="Visible"/>
                                                                        </MultiDataTrigger>
                                                                    </Style.Triggers>
                                                                </Style>
                                                            </ContentControl.Style>
                                                            <ContentControl.Effect>
                                                                <DropShadowEffect BlurRadius="15"
                                                                        ShadowDepth="0"/>
                                                            </ContentControl.Effect>
                                                        </ContentControl>

                                                        <ScrollViewer Height="{Binding ElementName=ContainerHeightBorder, Path=ActualHeight}"
                                                                VerticalScrollBarVisibility="Disabled"
                                                                      HorizontalScrollBarVisibility="Auto">
                                                            <DockPanel>
                                                                <DockPanel.Resources>
                                                                    <Style TargetType="ItemsControl">
                                                                        <Setter Property="HorizontalAlignment"
                                                                                Value="Left"/>
                                                                    </Style>
                                                                    <Style TargetType="Button"
                                                                            BasedOn="{StaticResource PropertyItemButton}">
                                                                        <Setter Property="Background"
                                                                                Value="Transparent"/>
                                                                        <Setter Property="VerticalAlignment"
                                                                                Value="Center"/>
                                                                    </Style>
                                                                </DockPanel.Resources>
                                                                <ScrollViewer Name="PART_ElemDescription"
                                                                        Tag="{DynamicResource DetailsViewDescriptionDockToRight}"
                                                                              Width="{DynamicResource DetailsViewDescriptionWidth}"
                                                                        Margin="0,0,15,0">
                                                                    <ScrollViewer.Style>
                                                                        <Style TargetType="ScrollViewer">
                                                                            <Setter Property="DockPanel.Dock"
                                                                                    Value="Left"/>
                                                                            <Style.Triggers>
                                                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}"
                                                                                        Value="true">
                                                                                    <Setter Property="DockPanel.Dock"
                                                                                            Value="Right"/>
                                                                                </DataTrigger>
                                                                            </Style.Triggers>
                                                                        </Style>
                                                                    </ScrollViewer.Style>
                                                                    <StackPanel>
                                                                        <TextBlock Text="{DynamicResource LOCGameDescriptionTitle}"
                                                                                Margin="0,15,0,5"
                                                                                   Style="{DynamicResource BaseTextBlockStyle}"
                                                                                Visibility="Collapsed"/>
                                                                        <Separator Background="{DynamicResource PanelSeparatorBrush}"
                                                                                Visibility="Collapsed"/>
                                                                        <HtmlTextView Name="PART_HtmlDescription"
                                                                                      Margin="0,5,0,5"
                                                                                      HtmlFontSize="{DynamicResource FontSize}"
                                                                                      HtmlFontFamily="{DynamicResource FontFamily}"
                                                                                      HtmlForeground="{DynamicResource DetailsViewContainerLabelColor}"
                                                                                      LinkForeground="{DynamicResource GlyphColor}"
                                                                                      ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                                                                      ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
                                                                    </StackPanel>
                                                                </ScrollViewer>

                                                                <ScrollViewer Margin="15,0,0,0"
                                                                        DockPanel.Dock="Left">
                                                                    <GridEx ColumnCount="2"
                                                                            AutoLayoutColumns="2"
                                                                            RowCount="8">
                                                                        <Label Name="PART_ElemRecentActivity"
                                                                                Content="{DynamicResource LOCRecentActivityLabel}"/>
                                                                        <TextBlock Name="PART_TextRecentActivity"
                                                                                Style="{DynamicResource BaseTextBlockStyle}"
                                                                                VerticalAlignment="Center"/>
                                                                        <Label Name="PART_ElemAdded"
                                                                                Content="{DynamicResource LOCDateAddedLabel}"/>
                                                                        <TextBlock Name="PART_TextAdded"
                                                                                Style="{DynamicResource BaseTextBlockStyle}"
                                                                                VerticalAlignment="Center"/>
                                                                        <Label Name="PART_ElemReleaseDate"
                                                                                Content="{DynamicResource LOCGameReleaseDateTitle}"/>
                                                                        <Button Name="PART_ButtonReleaseDate"/>
                                                                        <Label Name="PART_ElemLibrary"
                                                                                Content="{DynamicResource LOCGameProviderTitle}"/>
                                                                        <Button Name="PART_ButtonLibrary"/>
                                                                        <Label Name="PART_ElemSource"
                                                                                Content="{DynamicResource LOCSourceLabel}"/>
                                                                        <Button Name="PART_ButtonSource"/>
                                                                        <Label Name="PART_ElemPlatform"
                                                                                Content="{DynamicResource LOCPlatformTitle}"/>
                                                                        <ItemsControl Name="PART_ItemsPlatforms"/>
                                                                        <Label Name="PART_ElemDevelopers"
                                                                                Content="{DynamicResource LOCDeveloperLabel}"/>
                                                                        <ItemsControl Name="PART_ItemsDevelopers"
                                                                                MaxWidth="180"/>
                                                                        <Label Name="PART_ElemPublishers"
                                                                                Content="{DynamicResource LOCPublisherLabel}"/>
                                                                        <ItemsControl Name="PART_ItemsPublishers"
                                                                                MaxWidth="180"/>
                                                                    </GridEx>
                                                                </ScrollViewer>
                                                                <ScrollViewer Margin="15,0,0,0"
                                                                        DockPanel.Dock="Left">
                                                                    <GridEx ColumnCount="2"
                                                                            AutoLayoutColumns="2"
                                                                            RowCount="9">
                                                                        <Label Name="PART_ElemInstallSize"
                                                                                Content="{DynamicResource LOCInstallSizeLabel}"/>
                                                                        <TextBlock Name="PART_TextInstallSize"
                                                                                Style="{DynamicResource BaseTextBlockStyle}"
                                                                                VerticalAlignment="Center"/>

                                                                        <Label Name="PART_ElemInstallDirectory"
                                                                                Content="{DynamicResource LOCGameInstallDirTitle}"/>
                                                                        <Button Name="PART_ButtonInstallDirectory"
                                                                                HorizontalAlignment="Left"
                                                                                MaxWidth="200"/>

                                                                        <Label Name="PART_ElemSeries"
                                                                                Content="{DynamicResource LOCSeriesLabel}"/>
                                                                        <ItemsControl Name="PART_ItemsSeries"
                                                                                MaxWidth="200"/>

                                                                        <Label Name="PART_ElemRegion"
                                                                                Content="{DynamicResource LOCRegionLabel}"/>
                                                                        <ItemsControl Name="PART_ItemsRegions"/>

                                                                        <Label Name="PART_ElemVersion"
                                                                                Content="{DynamicResource LOCVersionLabel}"/>
                                                                        <Button Name="PART_ButtonVersion"
                                                                                VerticalAlignment="Center"/>
                                                                        <Label Name="PART_ElemUserScore"
                                                                                Content="{DynamicResource LOCUserScore}"/>
                                                                        <StackPanel Orientation="Horizontal"
                                                                                    Visibility="{Binding ElementName=PART_TextUserScore, Path=Visibility}">
                                                                            <TextBlock Name="PART_TextUserScore"
                                                                                    VerticalAlignment="Center"
                                                                                       Style="{DynamicResource TextBlockGameScore}"/>
                                                                            <ContentControl Content="{Binding Game.UserScore}"
                                                                                            Padding="6,0,0,4"
                                                                                            HorizontalAlignment="Left"
                                                                                            VerticalAlignment="Center"
                                                                                            Background="Transparent"
                                                                                            Foreground="{Binding ElementName=PART_TextUserScore, Path=Foreground}"
                                                                                            Height="{Binding ElementName=PART_TextUserScore, Path=ActualHeight}"
                                                                                            ContentTemplate="{StaticResource FiveStarScoreTemplate}"/>
                                                                        </StackPanel>

                                                                        <Label Name="PART_ElemCommunityScore"
                                                                                Content="{DynamicResource LOCCommunityScore}"/>
                                                                        <StackPanel Orientation="Horizontal"
                                                                                    Visibility="{Binding ElementName=PART_TextCommunityScore, Path=Visibility}">
                                                                            <TextBlock Name="PART_TextCommunityScore"
                                                                                    VerticalAlignment="Center"
                                                                                       Style="{DynamicResource TextBlockGameScore}"/>
                                                                            <ContentControl Content="{Binding Game.CommunityScore}"
                                                                                            Padding="6,0,0,4"
                                                                                            HorizontalAlignment="Left"
                                                                                            VerticalAlignment="Center"
                                                                                            Background="Transparent"
                                                                                            Foreground="{Binding ElementName=PART_TextCommunityScore, Path=Foreground}"
                                                                                            Height="{Binding ElementName=PART_TextCommunityScore, Path=ActualHeight}"
                                                                                            ContentTemplate="{StaticResource FiveStarScoreTemplate}"/>
                                                                        </StackPanel>

                                                                        <Label Name="PART_ElemCriticScore"
                                                                                Content="{DynamicResource LOCCriticScore}"/>
                                                                        <StackPanel Orientation="Horizontal"
                                                                                    Visibility="{Binding ElementName=PART_TextCriticScore, Path=Visibility}">
                                                                            <TextBlock Name="PART_TextCriticScore"
                                                                                    VerticalAlignment="Center"
                                                                                       Style="{DynamicResource TextBlockGameScore}"/>
                                                                            <ContentControl Content="{Binding Game.CriticScore}"
                                                                                            Padding="6,0,0,4"
                                                                                            HorizontalAlignment="Left"
                                                                                            VerticalAlignment="Center"
                                                                                            Background="Transparent"
                                                                                            Foreground="{Binding ElementName=PART_TextCriticScore, Path=Foreground}"
                                                                                            Height="{Binding ElementName=PART_TextCriticScore, Path=ActualHeight}"
                                                                                            ContentTemplate="{StaticResource FiveStarScoreTemplate}"/>
                                                                        </StackPanel>

                                                                        <Label Name="PART_ElemAgeRating"
                                                                                Content="{DynamicResource LOCAgeRatingLabel}"/>
                                                                        <ItemsControl Name="PART_ItemsAgeRatings"/>
                                                                    </GridEx>
                                                                </ScrollViewer>
                                                            </DockPanel>
                                                        </ScrollViewer>

                                                    </DockPanel>
                                                </Border>
                                                <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"
                                                        CornerRadius="0"
                                                        Margin="20,0,30,0"
                                                        Padding="15,10,15,10"/>
                                            </Grid>
                                        </Grid>

                                        <Grid Margin="20,10,30,10"
                                                Grid.Row="2">
                                            <Grid.Style>
                                                <Style TargetType="Grid">
                                                    <Setter Property="Visibility"
                                                            Value="Visible"/>
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Settings DetailsVisibility.Links}"
                                                                Value="False">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                        </DataTrigger>
                                                        <DataTrigger Binding="{Binding Game.Links}"
                                                                Value="{x:Null}">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                        </DataTrigger>
                                                        <DataTrigger Binding="{Binding Game.Links.Count, TargetNullValue=0}"
                                                                Value="0">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </Grid.Style>
                                            <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                            <Border Style="{DynamicResource OutlineBorder}"/>

                                            <ItemsControl ItemsSource="{Binding Game.Links}"
                                                    Margin="0,5,0,5">
                                                <ItemsControl.ItemsPanel>
                                                    <ItemsPanelTemplate>
                                                        <WrapPanel Orientation="Horizontal"
                                                                VerticalAlignment="Center"/>
                                                    </ItemsPanelTemplate>
                                                </ItemsControl.ItemsPanel>
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Button Content="{Binding Name}"
                                                                Style="{StaticResource PropertyItemLinksPanelButton}"
                                                                ToolTip="{Binding Url}"
                                                                ToolTipService.InitialShowDelay="500"
                                                                Command="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=DataContext.OpenLinkCommand}"
                                                                CommandParameter="{Binding}"/>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                        </Grid>

                                        <Grid Grid.Row="3"
                                                Margin="20,0,30,0">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="2*"/>
                                                <ColumnDefinition Width="40"/>
                                                <ColumnDefinition Width="1*"/>
                                            </Grid.ColumnDefinitions>

                                            <StackPanel Grid.Column="0"
                                                    Margin="0,0,0,0">
                                                <StackPanel Margin="0,0,0,10">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Binding ElementName=PART_TextNotes, Path=Visibility}"
                                                                        Value="Visible">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{PluginSettings Plugin=PlayNotes, Path=IsControlVisible, FallbackValue=False}"
                                                                        Value="True">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>

                                                    <Label Content="{DynamicResource LOCNotesLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Margin="0,0,0,10"
                                                            MinHeight="45">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorder}"/>
                                                        <StackPanel Margin="10">
                                                            <TextBox Name="PART_TextNotes"
                                                                    IsReadOnly="True"
                                                                     BorderThickness="0"
                                                                    Background="Transparent"
                                                                     AcceptsReturn="True"
                                                                    TextWrapping="Wrap"
                                                                     VerticalScrollBarVisibility="Auto"
                                                                     MaxHeight="300"
                                                                     Margin="20,0,20,0"
                                                                    VerticalAlignment="Center"/>

                                                            <ContentControl x:Name="PlayNotes_NotesViewerControl"
                                                                            Visibility="{PluginSettings Plugin=PlayNotes, Path=IsControlVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                            Margin="0,10,0,0"/>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="PART_ElemGenres">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Settings DetailsVisibility.Genres}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding Game.Genres}"
                                                                        Value="{x:Null}">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="{DynamicResource LOCGenreLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Margin="0,0,0,10"
                                                            MinHeight="45">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorder}"/>
                                                        <ItemsControl ItemsSource="{Binding Game.Genres}"
                                                                Margin="0,3,0,3">
                                                            <ItemsControl.ItemsPanel>
                                                                <ItemsPanelTemplate>
                                                                    <WrapPanel Orientation="Horizontal"
                                                                            VerticalAlignment="Center"/>
                                                                </ItemsPanelTemplate>
                                                            </ItemsControl.ItemsPanel>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Button Content="{Binding Name}"
                                                                            Style="{StaticResource PropertyItemFeedPanelButton}"
                                                                            Command="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=DataContext.SetGenreFilterCommand}"
                                                                            CommandParameter="{Binding}"/>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="PART_ElemCategories">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Settings DetailsVisibility.Categories}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding Game.Categories}"
                                                                        Value="{x:Null}">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="{DynamicResource LOCGameCategoriesTitle}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Margin="0,0,0,10"
                                                            MinHeight="45">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorder}"/>
                                                        <ItemsControl ItemsSource="{Binding Game.Categories}"
                                                                Margin="0,3,0,3">
                                                            <ItemsControl.ItemsPanel>
                                                                <ItemsPanelTemplate>
                                                                    <WrapPanel Orientation="Horizontal"
                                                                            VerticalAlignment="Center"/>
                                                                </ItemsPanelTemplate>
                                                            </ItemsControl.ItemsPanel>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Button Content="{Binding Name}"
                                                                            Style="{StaticResource PropertyItemFeedPanelButton}"
                                                                            Command="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=DataContext.SetCategoryFilterCommand}"
                                                                            CommandParameter="{Binding}"/>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="PART_ElemFeatures">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Settings DetailsVisibility.Features}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding Game.Features}"
                                                                        Value="{x:Null}">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="{DynamicResource LOCFeaturesLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Margin="0,0,0,10"
                                                            MinHeight="45">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorder}"/>
                                                        <ItemsControl ItemsSource="{Binding Game.Features}"
                                                                Margin="0,3,0,3">
                                                            <ItemsControl.ItemsPanel>
                                                                <ItemsPanelTemplate>
                                                                    <WrapPanel Orientation="Horizontal"
                                                                            VerticalAlignment="Center"/>
                                                                </ItemsPanelTemplate>
                                                            </ItemsControl.ItemsPanel>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Button Content="{Binding Name}"
                                                                            Style="{StaticResource PropertyItemFeedPanelButton}"
                                                                            Command="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=DataContext.SetFeatureFilterCommand}"
                                                                            CommandParameter="{Binding}"/>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="PART_ElemTags">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Settings DetailsVisibility.Tags}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding Game.Tags}"
                                                                        Value="{x:Null}">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="{DynamicResource LOCTagsLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Margin="0,0,0,10"
                                                            MinHeight="45">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorder}"/>
                                                        <ItemsControl ItemsSource="{Binding Game.Tags}"
                                                                Margin="0,3,0,3">
                                                            <ItemsControl.ItemsPanel>
                                                                <ItemsPanelTemplate>
                                                                    <WrapPanel Orientation="Horizontal"
                                                                            VerticalAlignment="Center"/>
                                                                </ItemsPanelTemplate>
                                                            </ItemsControl.ItemsPanel>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Button Content="{Binding Name}"
                                                                            Style="{StaticResource PropertyItemFeedPanelButton}"
                                                                            Command="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=DataContext.SetTagFilterCommand}"
                                                                            CommandParameter="{Binding}"/>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="NewsFeed"
                                                        Margin="0,0,0,15"
                                                            Visibility="{PluginSettings Plugin=NewsViewer, Path=ReviewsAvailable, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOC_NewsViewer_NewsViewerControl_NewsLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <StackPanel Orientation="Vertical"
                                                                Margin="10">
                                                            <ContentControl x:Name="NewsViewer_NewsViewerControl"/>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="VideoFeed"
                                                        Margin="0,0,0,15">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=IsAnyVideoAvailable, FallbackValue=False}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=EnableVideoPlayer, FallbackValue=False}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=EnableAlternativeDetailsVideoPlayer, FallbackValue=False}"
                                                                        Value="True">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="{DynamicResource LOCExtra_Metadata_Loader_VideoLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <!--Rectangle used to expand the panel while the video loads-->
                                                        <Viewbox Stretch="Uniform"
                                                                Visibility="{Binding ElementName=VideoFeed, Path=Visibility}">
                                                            <Rectangle Width="16"
                                                                    Height="9"
                                                                    Fill="Transparent"
                                                                    IsHitTestVisible="False"/>
                                                        </Viewbox>
                                                        <StackPanel Orientation="Vertical"
                                                                Margin="10">
                                                            <ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl"/>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="GameActivityFeed"
                                                        Margin="0,0,0,15">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <!-- If no controls are enabled, hide the panel. -->
                                                                <MultiDataTrigger>
                                                                    <MultiDataTrigger.Conditions>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationButton, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationChartTime, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationChartLog, FallbackValue=False}"
                                                                                Value="False"/>
                                                                    </MultiDataTrigger.Conditions>
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </MultiDataTrigger>
                                                                <!-- If only the log control is enabled, but there is no log data, hide the panel. -->
                                                                <MultiDataTrigger>
                                                                    <MultiDataTrigger.Conditions>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationButton, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationChartTime, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=EnableIntegrationChartLog, FallbackValue=True}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=GameActivity, Path=HasDataLog, FallbackValue=False}"
                                                                                Value="False"/>
                                                                    </MultiDataTrigger.Conditions>
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </MultiDataTrigger>
                                                                <!-- If there is no data, hide the panel. -->
                                                                <DataTrigger Binding="{PluginSettings Plugin=GameActivity, Path=HasData, FallbackValue=False}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>

                                                    <Label Content="{DynamicResource LOCGameActivityTitle}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <StackPanel Orientation="Vertical"
                                                                Margin="10">
                                                            <ContentControl x:Name="GameActivity_PluginChartTime"
                                                                    Margin="0,0,0,10"/>
                                                            <ContentControl x:Name="GameActivity_PluginChartLog"
                                                                    Margin="0,0,0,10"/>
                                                            <ContentControl x:Name="GameActivity_PluginButton"
                                                                    HorizontalAlignment="Right"
                                                                            Visibility="{PluginSettings Plugin=GameActivity, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="CheckDlcPanel"
                                                        Margin="0,0,0,15">
                                                    <!-- Visibility="{PluginSettings Plugin=CheckDlc, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"> -->
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible"/>
                                                            <Style.Triggers>
                                                                <!-- If no controls are enabled, hide the panel. -->
                                                                <MultiDataTrigger>
                                                                    <MultiDataTrigger.Conditions>
                                                                        <Condition Binding="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcAll, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcOwned, FallbackValue=False}"
                                                                                Value="False"/>
                                                                        <Condition Binding="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcNotOwned, FallbackValue=False}"
                                                                                Value="False"/>
                                                                    </MultiDataTrigger.Conditions>
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </MultiDataTrigger>
                                                                <!-- If there is no data, hide the panel. -->
                                                                <DataTrigger Binding="{PluginSettings Plugin=CheckDlc, Path=HasData, FallbackValue=False}"
                                                                        Value="False">
                                                                    <Setter Property="Visibility"
                                                                            Value="Collapsed"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <StackPanel.Resources>
                                                        <Style TargetType="ListBox">
                                                            <Setter Property="Background"
                                                                    Value="Transparent"/>
                                                            <Setter Property="BorderThickness"
                                                                    Value="0"/>
                                                        </Style>
                                                    </StackPanel.Resources>
                                                    <Label Content="DLC"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <StackPanel Orientation="Vertical"
                                                                Margin="10">
                                                            <ContentControl x:Name="CheckDlc_PluginListDlcAll"
                                                                    Height="700"
                                                                    Margin="0,0,0,10"
                                                                            Visibility="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcAll, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                            <ContentControl x:Name="CheckDlc_PluginListDlcOwned"
                                                                    Height="700"
                                                                    Margin="0,0,0,10"
                                                                            Visibility="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcOwned, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                            <ContentControl x:Name="CheckDlc_PluginListDlcNotOwned"
                                                                    Height="700"
                                                                    Margin="0,0,0,10"
                                                                            Visibility="{PluginSettings Plugin=CheckDlc, Path=EnableIntegrationListDlcNotOwned, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="GameRelationsPanel"
                                                        Margin="0,0,0,15"
                                                            Visibility="{Binding ElementName=GameRelationsVisibilityProxy, Path=Tag}">
                                                    <Label Content="{DynamicResource LOCGameRelations_RelatedGamesLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <StackPanel Orientation="Vertical"
                                                                Margin="10">
                                                            <TextBlock x:Name="GameRelationsVisibilityProxy"
                                                                    Visibility="Collapsed">
                                                                <TextBlock.Style>
                                                                    <Style TargetType="TextBlock">
                                                                        <Setter Property="Tag"
                                                                                Value="Collapsed"/>
                                                                        <Style.Triggers>
                                                                            <DataTrigger Binding="{Binding ElementName=Panel_GameRelations_SimilarGamesControl, Path=Visibility}"
                                                                                    Value="Visible">
                                                                                <Setter Property="Tag"
                                                                                        Value="Visible"/>
                                                                            </DataTrigger>
                                                                            <DataTrigger Binding="{Binding ElementName=Panel_GameRelations_SameSeriesControl, Path=Visibility}"
                                                                                    Value="Visible">
                                                                                <Setter Property="Tag"
                                                                                        Value="Visible"/>
                                                                            </DataTrigger>
                                                                            <DataTrigger Binding="{Binding ElementName=Panel_GameRelations_SameDeveloperControl, Path=Visibility}"
                                                                                    Value="Visible">
                                                                                <Setter Property="Tag"
                                                                                        Value="Visible"/>
                                                                            </DataTrigger>
                                                                            <DataTrigger Binding="{Binding ElementName=Panel_GameRelations_SamePublisherControl, Path=Visibility}"
                                                                                    Value="Visible">
                                                                                <Setter Property="Tag"
                                                                                        Value="Visible"/>
                                                                            </DataTrigger>
                                                                        </Style.Triggers>
                                                                    </Style>
                                                                </TextBlock.Style>
                                                            </TextBlock>

                                                            <Expander x:Name="Panel_GameRelations_SimilarGamesControl"
                                                                      Header="{DynamicResource LOCGameRelations_SimilarGamesLabel}"
                                                                      IsExpanded="True"
                                                                      Margin="0,10,0,0"
                                                                      Visibility="{PluginSettings Plugin=GameRelations, Path=SimilarGamesControlSettings.IsVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                                                <ContentControl x:Name="GameRelations_SimilarGamesControl"
                                                                        Margin="0,10,0,0"/>
                                                            </Expander>

                                                            <Expander x:Name="Panel_GameRelations_SameSeriesControl"
                                                                      Header="{DynamicResource LOCGameRelations_SameSeriesLabel}"
                                                                      IsExpanded="True"
                                                                      Margin="0,10,0,0"
                                                                      Visibility="{PluginSettings Plugin=GameRelations, Path=SameSeriesControlSettings.IsVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                                                <ContentControl x:Name="GameRelations_SameSeriesControl"
                                                                        Margin="0,10,0,0"/>
                                                            </Expander>

                                                            <Expander x:Name="Panel_GameRelations_SameDeveloperControl"
                                                                      Header="{DynamicResource LOCGameRelations_SameDeveloperLabel}"
                                                                      IsExpanded="True"
                                                                      Margin="0,10,0,0"
                                                                      Visibility="{PluginSettings Plugin=GameRelations, Path=SameDeveloperControlSettings.IsVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                                                <ContentControl x:Name="GameRelations_SameDeveloperControl"
                                                                        Margin="0,10,0,0"/>
                                                            </Expander>

                                                            <Expander x:Name="Panel_GameRelations_SamePublisherControl"
                                                                      Header="{DynamicResource LOCGameRelations_SamePublisherLabel}"
                                                                      IsExpanded="True"
                                                                      Margin="0,10,0,0"
                                                                      Visibility="{PluginSettings Plugin=GameRelations, Path=SamePublisherControlSettings.IsVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                                                <ContentControl x:Name="GameRelations_SamePublisherControl"
                                                                        Margin="0,10,0,0"/>
                                                            </Expander>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="WebExplorerPanel"
                                                        Margin="0,0,0,15"
                                                            Visibility="{Binding ElementName=WebExplorer_BrowserHostViewControl, Path=Content.IsControlVisible, Converter={StaticResource BooleanToVisibilityConverter}, TargetNullValue=Collapsed, FallbackValue=Collapsed}">
                                                    <Label Content="{DynamicResource LOCWebExplorer_WebLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid Background="{DynamicResource SectionContainerMainBackgroundBrush}"
                                                            MinHeight="45"
                                                            Margin="0,0,0,10"
                                                          SnapsToDevicePixels="True"
                                                            UseLayoutRounding="True">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderMainPanels}"/>
                                                        <ContentControl x:Name="WebExplorer_BrowserHostViewControl"
                                                                        Height="{DynamicResource WebExplorerControlHeight}"
                                                                        Margin="0,10,0,0"/>
                                                    </Grid>
                                                </StackPanel>

                                            </StackPanel>

                                            <StackPanel Grid.Column="2">
                                                <StackPanel Name="HltbPanel"
                                                        Margin="0,0,0,15">
                                                    <StackPanel.Style>
                                                        <Style TargetType="StackPanel">
                                                            <Setter Property="Visibility"
                                                                    Value="Collapsed"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{PluginSettings Plugin=HowLongToBeat, Path=EnableIntegrationProgressBar, FallbackValue=False}"
                                                                        Value="True">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{PluginSettings Plugin=HowLongToBeat, Path=EnableIntegrationButton, FallbackValue=False}"
                                                                        Value="True">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding ElementName=HltbDataGrid, Path=Visibility}"
                                                                        Value="Visible">
                                                                    <Setter Property="Visibility"
                                                                            Value="Visible"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </StackPanel.Style>
                                                    <Label Content="HowLongToBeat"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                        <Border Padding="10">
                                                            <StackPanel>
                                                                <Grid>
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="*"/>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                    </Grid.ColumnDefinitions>
                                                                    <StackPanel Grid.Column="0"
                                                                            Margin="-1,0,5,5">
                                                                        <Grid>
                                                                            <Border Name="HLTB_mask"
                                                                                    Background="#1e1e1e"
                                                                                    CornerRadius="{DynamicResource ControlCornerRadius}"
                                                                                    Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}, Path=ActualWidth}"/>
                                                                            <StackPanel>
                                                                                <StackPanel.OpacityMask>
                                                                                    <VisualBrush Visual="{Binding ElementName=HLTB_mask}"/>
                                                                                </StackPanel.OpacityMask>
                                                                                <ContentControl x:Name="HowLongToBeat_PluginProgressBar"
                                                                                        HorizontalAlignment="Stretch"
                                                                                        Height="25"
                                                                                                Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}, Path=ActualWidth}"/>
                                                                            </StackPanel>
                                                                        </Grid>
                                                                    </StackPanel>
                                                                    <StackPanel Grid.Column="1"
                                                                            Margin="5,0,0,5">
                                                                        <ContentControl x:Name="HowLongToBeat_PluginButton"
                                                                                HorizontalAlignment="Right"
                                                                                Height="25"
                                                                                        Visibility="{PluginSettings Plugin=HowLongToBeat, Path=EnableIntegrationButton, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                                    </StackPanel>
                                                                </Grid>
                                                                <Grid Tag="{DynamicResource DetailsViewShowHltbDataGrid}">
                                                                    <Grid.Style>
                                                                        <Style TargetType="Grid">
                                                                            <Setter Property="Visibility"
                                                                                    Value="Collapsed"/>
                                                                            <Style.Triggers>
                                                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag, FallbackValue=False}"
                                                                                        Value="True">
                                                                                    <Setter Property="Visibility"
                                                                                            Value="Visible"/>
                                                                                </DataTrigger>
                                                                            </Style.Triggers>
                                                                        </Style>
                                                                    </Grid.Style>
                                                                    <Grid.Resources>
                                                                        <Style TargetType="Label"
                                                                                x:Key="HltbGridLabelStyle">
                                                                            <Setter Property="FontSize"
                                                                                    Value="{DynamicResource FontSizeSmall}"/>
                                                                            <Setter Property="Foreground"
                                                                                    Value="{DynamicResource TextBrushDarker}"/>
                                                                            <Setter Property="HorizontalAlignment"
                                                                                    Value="Center"/>
                                                                            <Setter Property="Margin"
                                                                                    Value="0,4,0,0"/>
                                                                        </Style>
                                                                        <Style TargetType="TextBlock"
                                                                                x:Key="HltbGridTextStyle"
                                                                                BasedOn="{StaticResource BaseTextBlockStyle}">
                                                                            <Setter Property="Margin"
                                                                                    Value="12,8,12,8"/>
                                                                            <Setter Property="FontSize"
                                                                                    Value="{DynamicResource FontSizeLarge}"/>
                                                                            <Setter Property="FontWeight"
                                                                                    Value="Bold"/>
                                                                            <Setter Property="Visibility"
                                                                                    Value="Visible"/>
                                                                            <Setter Property="HorizontalAlignment"
                                                                                    Value="Center"/>
                                                                            <Style.Triggers>
                                                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}"
                                                                                        Value="-">
                                                                                    <Setter Property="Visibility"
                                                                                            Value="Collapsed"/>
                                                                                </DataTrigger>
                                                                            </Style.Triggers>
                                                                        </Style>
                                                                    </Grid.Resources>
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="*"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                    </Grid.ColumnDefinitions>
                                                                    <StackPanel Grid.Column="0"
                                                                            Margin="0,0,4,0">
                                                                        <Label Content="{DynamicResource LOCHowLongToBeatMainStory}"
                                                                                Style="{DynamicResource HltbGridLabelStyle}"
                                                                               Visibility="{Binding ElementName=MainStoryFormat, Path=Visibility}"/>
                                                                        <Border Background="{DynamicResource GameInfoContainerBackgroundBrush}"
                                                                                CornerRadius="{DynamicResource ControlCornerRadius}">
                                                                            <TextBlock Name="MainStoryFormat"
                                                                                    Style="{DynamicResource HltbGridTextStyle}"
                                                                                       Text="{PluginSettings Plugin=HowLongToBeat, Path=MainStoryFormat, FallbackValue='-'}"/>
                                                                        </Border>
                                                                    </StackPanel>
                                                                    <StackPanel Grid.Column="1"
                                                                            Margin="4,0,4,0">
                                                                        <Label Content="{DynamicResource LOCHowLongToBeatMainExtra}"
                                                                                Style="{DynamicResource HltbGridLabelStyle}"
                                                                               Visibility="{Binding ElementName=MainExtraFormat, Path=Visibility}"/>
                                                                        <Border Background="{DynamicResource GameInfoContainerBackgroundBrush}"
                                                                                CornerRadius="{DynamicResource ControlCornerRadius}">
                                                                            <TextBlock Name="MainExtraFormat"
                                                                                    Style="{DynamicResource HltbGridTextStyle}"
                                                                                       Text="{PluginSettings Plugin=HowLongToBeat, Path=MainExtraFormat, FallbackValue='-'}"/>
                                                                        </Border>
                                                                    </StackPanel>
                                                                    <StackPanel Grid.Column="2"
                                                                            Margin="4,0,0,0">
                                                                        <Label Content="{DynamicResource LOCHowLongToBeatCompletionist}"
                                                                               Style="{DynamicResource HltbGridLabelStyle}"
                                                                               Visibility="{Binding ElementName=CompletionistFormat, Path=Visibility}"/>
                                                                        <Border Background="{DynamicResource GameInfoContainerBackgroundBrush}"
                                                                                CornerRadius="{DynamicResource ControlCornerRadius}">
                                                                            <TextBlock Name="CompletionistFormat"
                                                                                    Style="{DynamicResource HltbGridTextStyle}"
                                                                                       Text="{PluginSettings Plugin=HowLongToBeat, Path=CompletionistFormat, FallbackValue='-'}"/>
                                                                        </Border>
                                                                    </StackPanel>
                                                                </Grid>
                                                            </StackPanel>
                                                        </Border>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="SuccessStoryPanel"
                                                        Style="{DynamicResource PluginStackpanelVisibility}"
                                                        ClipToBounds="False"
                                                            Visibility="{PluginSettings Plugin=SuccessStory, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOCSuccessStoryAchievements}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid ClipToBounds="False">
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"
                                                                ClipToBounds="False"/>
                                                        <StackPanel ClipToBounds="False">
                                                            <Grid ClipToBounds="False">
                                                                <Border Style="{DynamicResource SectionContainerMain}"
                                                                        ClipToBounds="False"/>
                                                                <Border CornerRadius="{DynamicResource ControlCornerRadius}"
                                                                        ClipToBounds="False">
                                                                    <Border Padding="10"
                                                                            ClipToBounds="False">
                                                                        <Grid ClipToBounds="False">
                                                                            <Grid.ColumnDefinitions>
                                                                                <ColumnDefinition Width="Auto"/>
                                                                                <ColumnDefinition Width="*"/>
                                                                            </Grid.ColumnDefinitions>

                                                                            <Image Height="50"
                                                                                    Width="50"
                                                                                    ClipToBounds="False"
                                                                                    Grid.Column="0"
                                                                                    Panel.ZIndex="99"
                                                                                    Margin="-21,-6,13,0">
                                                                                <Image.Style>
                                                                                    <Style TargetType="{x:Type Image}">
                                                                                        <Setter Property="Visibility"
                                                                                                Value="Collapsed"/>
                                                                                        <Style.Triggers>
                                                                                            <DataTrigger Binding="{PluginSettings Plugin=SuccessStory, Path=Is100Percent, FallbackValue=False}"
                                                                                                    Value="True">
                                                                                                <Setter Property="Visibility"
                                                                                                        Value="Visible"/>
                                                                                            </DataTrigger>
                                                                                        </Style.Triggers>
                                                                                    </Style>
                                                                                </Image.Style>
                                                                                <Image.RenderTransform>
                                                                                    <ScaleTransform ScaleX="1.5"
                                                                                            ScaleY="1.5"/>
                                                                                </Image.RenderTransform>
                                                                                <Image.Source>
                                                                                    <DrawingImage>
                                                                                        <DrawingImage.Drawing>
                                                                                            <DrawingGroup ClipGeometry="M0,0 V36 H36 V0 H0 Z">
                                                                                                <GeometryDrawing Geometry="F1 M36,36z M0,0z M10.1777,10.0258L10.3929,9.80693 10.3929,9.49999 10.3929,5.52777 14.2857,5.52777 14.6001,5.52777 14.8205,5.30358 18,2.06976 21.1795,5.30358 21.3999,5.52777 21.7143,5.52777 25.6071,5.52777 25.6071,9.50001 25.6071,9.80696 25.8223,10.0258 28.5553,12.8055 25.8223,15.5853 25.6071,15.8041 25.6071,16.1111 25.6071,20.0833 21.7143,20.0833 21.3999,20.0833 21.1795,20.3075 18,23.5413 14.8205,20.3075 14.6001,20.0833 14.2857,20.0833 10.3929,20.0833 10.3929,16.1111 10.3929,15.8042 10.1777,15.5853 7.44464,12.8055 10.1777,10.0258z M14.7399,28.0317L11.56,33.4221 9.85164,29.9469 9.6456,29.5278 9.17857,29.5278 6.29474,29.5278 8.68445,25.3611 12.1142,25.3611 14.7399,28.0317z M26.8214,29.5278L26.3544,29.5278 26.1484,29.9469 24.44,33.4221 21.2601,28.0317 23.8858,25.3611 27.3155,25.3611 29.7053,29.5278 26.8214,29.5278z">
                                                                                                    <GeometryDrawing.Brush>
                                                                                                        <LinearGradientBrush StartPoint="7.08,3.72"
                                                                                                                EndPoint="33.6694,25.0697"
                                                                                                                MappingMode="Absolute"
                                                                                                                SpreadMethod="Pad"
                                                                                                                Opacity="1">
                                                                                                            <GradientStop Color="#FF0056D6"
                                                                                                                    Offset="0"/>
                                                                                                            <GradientStop Color="#FF1A9FFF"
                                                                                                                    Offset="1"/>
                                                                                                        </LinearGradientBrush>
                                                                                                    </GeometryDrawing.Brush>
                                                                                                    <GeometryDrawing.Pen>
                                                                                                        <Pen Thickness="1.5"
                                                                                                                StartLineCap="Flat"
                                                                                                                EndLineCap="Flat"
                                                                                                                LineJoin="Miter">
                                                                                                            <Pen.Brush>
                                                                                                                <LinearGradientBrush StartPoint="7.08,3.72"
                                                                                                                        EndPoint="33.6694,25.0697"
                                                                                                                        MappingMode="Absolute"
                                                                                                                        SpreadMethod="Pad"
                                                                                                                        Opacity="1">
                                                                                                                    <GradientStop Color="#FF0056D6"
                                                                                                                            Offset="0"/>
                                                                                                                    <GradientStop Color="#FF1A9FFF"
                                                                                                                            Offset="1"/>
                                                                                                                </LinearGradientBrush>
                                                                                                            </Pen.Brush>
                                                                                                        </Pen>
                                                                                                    </GeometryDrawing.Pen>
                                                                                                </GeometryDrawing>
                                                                                                <GeometryDrawing Brush="#FFFFC82C">
                                                                                                    <GeometryDrawing.Pen>
                                                                                                        <Pen Brush="#FFFFAB2C"
                                                                                                                Thickness="1"
                                                                                                                StartLineCap="Flat"
                                                                                                                EndLineCap="Flat"
                                                                                                                LineJoin="Miter"/>
                                                                                                    </GeometryDrawing.Pen>
                                                                                                    <GeometryDrawing.Geometry>
                                                                                                        <EllipseGeometry RadiusX="5.5"
                                                                                                                RadiusY="5.5"
                                                                                                                Center="18,13"/>
                                                                                                    </GeometryDrawing.Geometry>
                                                                                                </GeometryDrawing>
                                                                                            </DrawingGroup>
                                                                                        </DrawingImage.Drawing>
                                                                                    </DrawingImage>
                                                                                </Image.Source>
                                                                            </Image>

                                                                            <StackPanel Grid.Column="1">
                                                                                <DockPanel Width="Auto"
                                                                                        Margin="0,2,0,10">
                                                                                    <TextBlock Foreground="{DynamicResource TextBrush}">
                                                                                            <Run Text="{DynamicResource LOCSuccessStoryProgress}"/>
                                                                                            <Run Text=""/>
                                                                                    </TextBlock>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrush}"
                                                                                            Text="{PluginSettings Plugin=SuccessStory, Path=Unlocked, FallbackValue='-'}"/>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrush}"
                                                                                            Text="/"/>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrush}"
                                                                                            Text="{PluginSettings Plugin=SuccessStory, Path=Total, FallbackValue='-'}"/>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrushDarker}"
                                                                                            Text=" ("/>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrushDarker}"
                                                                                            Text="{PluginSettings Plugin=SuccessStory, Path=Percent, FallbackValue='-'}"/>
                                                                                    <TextBlock Foreground="{DynamicResource TextBrushDarker}"
                                                                                            Text="%)"/>
                                                                                </DockPanel>
                                                                                <Grid Margin="0,0,0,2">
                                                                                    <Border Name="Achievements_mask"
                                                                                            Margin="0,0,0,5"
                                                                                            Background="#1e1e1e"
                                                                                            CornerRadius="{DynamicResource ControlCornerRadius}"
                                                                                            Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}, Path=ActualWidth}"/>
                                                                                    <StackPanel>
                                                                                        <StackPanel.OpacityMask>
                                                                                            <VisualBrush Visual="{Binding ElementName=Achievements_mask}"/>
                                                                                        </StackPanel.OpacityMask>
                                                                                        <ProgressBar x:Name="progressBar2"
                                                                                                FontSize="10"
                                                                                                Margin="0,0,0,5"
                                                                                                     Maximum="{PluginSettings Plugin=SuccessStory, Path=Total, FallbackValue=0}"
                                                                                                Value="{PluginSettings Plugin=SuccessStory, Path=Unlocked, FallbackValue=0}"
                                                                                                HorizontalAlignment="Center"
                                                                                                     Background="#151619"
                                                                                                Foreground="#2d73ff"
                                                                                                Height="8"
                                                                                                Style="{DynamicResource RoundedProgressBar}"
                                                                                                     Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}, Path=ActualWidth}">
                                                                                        </ProgressBar>
                                                                                    </StackPanel>
                                                                                </Grid>
                                                                            </StackPanel>
                                                                        </Grid>
                                                                    </Border>
                                                                </Border>
                                                            </Grid>
                                                            <Grid>
                                                                <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                                <Border Padding="10">
                                                                    <StackPanel>
                                                                        <ContentControl x:Name="SuccessStory_PluginCompactUnlocked"
                                                                                Margin="-10,0,5,10"/>
                                                                        <StackPanel>
                                                                            <StackPanel.Style>
                                                                                <Style TargetType="StackPanel">
                                                                                    <Setter Property="Visibility"
                                                                                            Value="Collapsed"/>
                                                                                    <Style.Triggers>
                                                                                        <DataTrigger Binding="{PluginSettings Plugin=SuccessStory, Path=Is100Percent, FallbackValue={x:Null}}"
                                                                                                Value="False">
                                                                                            <Setter Property="Visibility"
                                                                                                    Value="Visible"/>
                                                                                        </DataTrigger>
                                                                                    </Style.Triggers>
                                                                                </Style>
                                                                            </StackPanel.Style>
                                                                            <Separator Margin="0,0,0,10">
                                                                                <Separator.Style>
                                                                                    <Style TargetType="Separator">
                                                                                        <Setter Property="Visibility"
                                                                                                Value="Visible"/>
                                                                                        <Style.Triggers>
                                                                                            <DataTrigger Binding="{PluginSettings Plugin=SuccessStory, Path=Unlocked, FallbackValue='0'}"
                                                                                                    Value="0">
                                                                                                <Setter Property="Visibility"
                                                                                                        Value="Collapsed"/>
                                                                                            </DataTrigger>
                                                                                        </Style.Triggers>
                                                                                    </Style>
                                                                                </Separator.Style>
                                                                            </Separator>
                                                                            <Label Content="Locked Achievements"
                                                                                   FontFamily="{DynamicResource FontFamily}"
                                                                                   Foreground="{DynamicResource TextBrushDarker}"
                                                                                   Margin="2,0,0,5"/>
                                                                            <ContentControl x:Name="SuccessStory_PluginCompactLocked"
                                                                                    Margin="-10,0,5,0"/>
                                                                        </StackPanel>
                                                                        <ContentControl x:Name="SuccessStory_PluginButton"
                                                                                HorizontalAlignment="Right"
                                                                                Height="25"
                                                                                Margin="0,2,2,2"
                                                                                        Visibility="{PluginSettings Plugin=SuccessStory, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                                            <TextBlock Foreground="{DynamicResource TextBrush}"
                                                                                    Text="You've unlocked "/>
                                                                        </ContentControl>
                                                                    </StackPanel>
                                                                </Border>
                                                            </Grid>
                                                        </StackPanel>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="SteamScreenshots"
                                                        Style="{DynamicResource PluginStackpanelVisibility}"
                                                            Visibility="{PluginSettings Plugin=SteamScreenshots, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOC_SteamScreenshots_SteamScreenshotsLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                        <Border Padding="10">
                                                            <StackPanel>
                                                                <ContentControl x:Name="SteamScreenshots_SteamScreenshotsViewControl"/>
                                                            </StackPanel>
                                                        </Border>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="VNDBPanel"
                                                        Style="{DynamicResource PluginStackpanelVisibility}"
                                                            Visibility="{PluginSettings Plugin=VNDBNexus, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOCSuccessStoryAchievements}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                        <Border Padding="10">
                                                            <StackPanel>
                                                                <ContentControl x:Name="VNDBNexus_VndbVisualNovelViewControl"/>
                                                            </StackPanel>
                                                        </Border>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="ScreenshotsVisualizerPanel"
                                                        Style="{DynamicResource PluginStackpanelVisibility}"
                                                            Visibility="{PluginSettings Plugin=ScreenshotsVisualizer, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOCSsvTitle}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                        <Border Padding="10">
                                                            <StackPanel>
                                                                <ContentControl x:Name="ScreenshotsVisualizer_PluginSinglePicture"
                                                                        Margin="0,0,0,10"/>
                                                                <ContentControl x:Name="ScreenshotsVisualizer_PluginListScreenshotsVertical"
                                                                        Margin="0,0,0,10"
                                                                        MinHeight="300"/>
                                                                <Button Name="PART_CustomSsvButton"
                                                                        HorizontalAlignment="Right">
                                                                    <ContentControl x:Name="ScreenshotsVisualizer_PluginViewItem"/>
                                                                </Button>
                                                            </StackPanel>
                                                        </Border>
                                                    </Grid>
                                                </StackPanel>

                                                <StackPanel Name="ReviewsPanel"
                                                        Margin="0,0,0,15"
                                                            Visibility="{PluginSettings Plugin=ReviewViewer, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                    <Label Content="{DynamicResource LOCReview_Viewer_ReviewsLabel}"
                                                            Style="{DynamicResource FeedSectionLabel}"/>
                                                    <Grid>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanelsBorder}"/>
                                                        <Border Style="{DynamicResource OutlineBorderSidePanels}"/>
                                                        <Border Padding="10">
                                                            <ContentControl x:Name="ReviewViewer_ReviewsControl"/>
                                                        </Border>
                                                    </Grid>
                                                </StackPanel>

                                            </StackPanel>
                                        </Grid>
                                    </Grid>
                                </Grid>
                            </Grid>


                        </Grid>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
