jestermgee Posted Tuesday at 12:19 AM Posted Tuesday at 12:19 AM Preface: I am pretty new to LB but not generally a "noob" in terms of technical ability. I have just started setting up LB in the last week and have almost everything ticking away nicely to the point I am now in the process of doing tweaks to things. One thing I would like to know is how I can easily adjust a few elements that are not showing how I would like. Using the default theme (have tested numerous others but the features I like are in the default) I already know I cannot edit it due to the fact it resets every launch so I have copied it to my own custom theme and messed around in the code to make sure I know which view file I am using. I am simply using Notepad++ to try make some basic changes so I do not have VSCode or anything installed as yet. One simple change I would like to do is change the platform icon in the top right, it is very dim (almost completely hidden) and I would like to make this non transparent so when browsing global favourite lists etc I can easily see what system the game is for: I would also love to adjust the main text to be white so it is easier to read on a TV in the lounge but have failed to find the correct hex value for this page view, seems to me there may be a global control for some elements instead of per-view control? I have come from a Meedio/XBMC background where editing files like this was pretty simple as they were basic xml files but the way these are created is not quite as simple to understand using a basic editor so any hints to adjust these few things will help me understand how to adjust more down the track. Not looking to overhaul everything, just a few QOL tweaks. Quote
C-Beats Posted Tuesday at 01:15 PM Posted Tuesday at 01:15 PM 12 hours ago, jestermgee said: Preface: I am pretty new to LB but not generally a "noob" in terms of technical ability. I have just started setting up LB in the last week and have almost everything ticking away nicely to the point I am now in the process of doing tweaks to things. One thing I would like to know is how I can easily adjust a few elements that are not showing how I would like. Using the default theme (have tested numerous others but the features I like are in the default) I already know I cannot edit it due to the fact it resets every launch so I have copied it to my own custom theme and messed around in the code to make sure I know which view file I am using. I am simply using Notepad++ to try make some basic changes so I do not have VSCode or anything installed as yet. One simple change I would like to do is change the platform icon in the top right, it is very dim (almost completely hidden) and I would like to make this non transparent so when browsing global favourite lists etc I can easily see what system the game is for: I would also love to adjust the main text to be white so it is easier to read on a TV in the lounge but have failed to find the correct hex value for this page view, seems to me there may be a global control for some elements instead of per-view control? I have come from a Meedio/XBMC background where editing files like this was pretty simple as they were basic xml files but the way these are created is not quite as simple to understand using a basic editor so any hints to adjust these few things will help me understand how to adjust more down the track. Not looking to overhaul everything, just a few QOL tweaks. Files in question are in \\LaunchBox\Themes\{Theme Name}\Views. The file in question is one of the Wheel Game views. You'd look for a line with a FlowImage that is passed the platform logo and then change it's opacity to 1. To change the style of all elements in the view you can add a default control style to the resources at the top of the file. Googling "WPF override default style" should get ya pretty close to what you want/need. Feel free to ask more specific questions on the forums once you get that far. Quote
jestermgee Posted Wednesday at 05:17 AM Author Posted Wednesday at 05:17 AM (edited) 16 hours ago, C-Beats said: Files in question are in \\LaunchBox\Themes\{Theme Name}\Views. The file in question is one of the Wheel Game views. You'd look for a line with a FlowImage that is passed the platform logo and then change it's opacity to 1. To change the style of all elements in the view you can add a default control style to the resources at the top of the file. Googling "WPF override default style" should get ya pretty close to what you want/need. Feel free to ask more specific questions on the forums once you get that far. Thanks! Yeah this is the exact approach I had to find in the code where I would adjust and believe me I have scanned and tested hundreds of values before writing in the forums. The issue I have hit is simply there is no term "platform" and only 2 terms for "logo" which relate to the Clear Logo on the game tile so I cannot find in the code where this is being controlled. Because I am not yet familiar with how pages are being drawn I can't follow the page code like you can with something like HTML for instance. So I am looking at this page in my testing as this would be the main page i'd like to change: For this page I believe I know the file I am needing to edit, it is a Custom copy of the Default theme = Views\Wall3GamesView.xaml This is the whole page code which I am struggling to find the values for that logo to adjust or anything in the main info area. I kind of just need a pointer as to what is controlling certain things. Spoiler <UserControl 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" xmlns:coverFlow="clr-namespace:Unbroken.LaunchBox.Windows.Controls.CoverFlow;assembly=Unbroken.LaunchBox.Windows" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Windows.Transitions;assembly=Unbroken.LaunchBox.Windows" xmlns:converters="clr-namespace:Unbroken.LaunchBox.Windows.Converters;assembly=Unbroken.LaunchBox.Windows" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" xmlns:bb="clr-namespace:Unbroken.LaunchBox.Windows.BigBox;assembly=BigBox" xmlns:bbCon="clr-namespace:Unbroken.LaunchBox.Windows.BigBox.Controls;assembly=BigBox" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FocusVisualStyle="{x:Null}" BorderThickness="0" Margin="0" Padding="0" Background="#000"> <UserControl.Resources> <converters:ToUpperConverter x:Key="UpperCase"/> <converters:AspectRatioStringConverter x:Key="AspectRatio"/> <converters:AreEqualConverter x:Key="AreEqualConverter"/> <converters:ScaleWithResolutionConverter x:Key="ScaleConverter" SourceResolutionWidth="2560" SourceResolutionHeight="1440" /> <Style x:Key="ListBoxItemStyle" TargetType="ListBoxItem"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Padding" Value="0" /> <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" /> <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListBoxItem}"> <Viewbox> <Border x:Name="Bd" Width="50" Height="50" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Padding="0" SnapsToDevicePixels="True" CornerRadius="15"> <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" SnapsToDevicePixels="True" Margin="-11,0,0,0" /> </Border> </Viewbox> <ControlTemplate.Triggers> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="IsMouseOver" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Bd" Property="Background" Value="#5F34B8ED" /> <Setter TargetName="Bd" Property="BorderBrush" Value="#5F34B8ED" /> </MultiTrigger> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="Selector.IsSelectionActive" Value="False" /> <Condition Property="IsSelected" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Bd" Property="Background" Value="#FF34B8ED" /> <Setter TargetName="Bd" Property="BorderBrush" Value="#FF34B8ED" /> <Setter Property="TextBlock.Foreground" Value="White" /> </MultiTrigger> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="Selector.IsSelectionActive" Value="True" /> <Condition Property="IsSelected" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Bd" Property="Background" Value="#FF34B8ED" /> <Setter TargetName="Bd" Property="BorderBrush" Value="#FF34B8ED" /> </MultiTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="ListBoxStyle" TargetType="ListBox"> <Setter Property="ItemContainerStyle" Value="{DynamicResource ListBoxItemStyle}"></Setter> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="Foreground" Value="#999999"></Setter> <Setter Property="FontFamily" Value="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Light.ttf#Red Hat Display Light" /> <Setter Property="TextBlock.TextAlignment" Value="Center"/> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" /> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Padding" Value="0" /> <Setter Property="Margin" Value="0" /> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> </Style> </UserControl.Resources> <Grid> <transitions:TransitionPresenter TransitionSelector="{Binding BackgroundTransitionSelector}" Opacity="0.7" Content="{Binding BackgroundView}" Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}" IsContentVideo="true" /> <Grid Grid.Row="1" Background="#FF212121" Opacity="{Binding BackgroundFade}"/> <Grid Grid.Row="1"> <Grid.Style> <Style TargetType="Grid"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush StartPoint="0 0" EndPoint="0 1"> <GradientStop Color="#AA212121" Offset="0.0"/> <GradientStop Color="#F0212121" Offset="0.8"/> <GradientStop Color="#FF212121" Offset="1.0"/> </LinearGradientBrush> </Setter.Value> </Setter> <Style.Triggers> <DataTrigger Binding="{Binding BackgroundFade}" Value="0.0"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush StartPoint="0 0" EndPoint="0 1"> <GradientStop Color="#00212121" Offset="0.0"/> <GradientStop Color="#00212121" Offset="1.0"/> </LinearGradientBrush> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style> </Grid.Style> <Grid.RowDefinitions> <RowDefinition> <RowDefinition.Style> <Style TargetType="RowDefinition"> <Setter Property="Height" Value="1*"/> <Style.Triggers> <DataTrigger Binding="{Binding Converter={StaticResource AspectRatio}}" Value="Widescreen Portrait"> <Setter Property="Height" Value="0.5*"/> </DataTrigger> </Style.Triggers> </Style> </RowDefinition.Style> </RowDefinition> <RowDefinition Height="20*"/> <RowDefinition> <RowDefinition.Style> <Style TargetType="RowDefinition"> <Setter Property="Height" Value="1*"/> <Style.Triggers> <DataTrigger Binding="{Binding Converter={StaticResource AspectRatio}}" Value="Widescreen Portrait"> <Setter Property="Height" Value="0.5*"/> </DataTrigger> </Style.Triggers> </Style> </RowDefinition.Style> </RowDefinition> </Grid.RowDefinitions> <!-- Middle Section --> <Grid Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="1.5*"/> <RowDefinition> <RowDefinition.Style> <Style TargetType="RowDefinition"> <Setter Property="Height" Value="2.15*"/> <Style.Triggers> <DataTrigger Binding="{Binding Converter={StaticResource AspectRatio}}" Value="Widescreen Portrait"> <Setter Property="Height" Value="3.33*"/> </DataTrigger> </Style.Triggers> </Style> </RowDefinition.Style> </RowDefinition> </Grid.RowDefinitions> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="8.5*"/> <ColumnDefinition Width="100*"/> <ColumnDefinition Width="8.5*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="10*"/> <RowDefinition Height="100*"/> </Grid.RowDefinitions> <transitions:TransitionPresenter Grid.Column="1" Grid.Row="1" TransitionSelector="{Binding GameDetailsTransitionSelector}" Content="{Binding GameDetailsView}" /> </Grid> <coverFlow:FlowControl x:Name="FlowControl" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Rows="5"> <coverFlow:FlowControl.Style> <Style TargetType="coverFlow:FlowControl"> <Setter Property="Columns" Value="5"/> <Setter Property="ItemSpacing" Value="0.1,-0.2"/> <Setter Property="VisibleCount" Value="16"/> <Setter Property="Camera"> <Setter.Value> <OrthographicCamera Position="0,0,5" LookDirection="0,0,-1" NearPlaneDistance=".01" FarPlaneDistance="1000" Width="12"/> </Setter.Value> </Setter> <Style.Triggers> <DataTrigger Binding="{Binding Converter={StaticResource AspectRatio}}" Value="Ultrawide Landscape"> <Setter Property="Columns" Value="7"/> <Setter Property="VisibleCount" Value="21"/> <Setter Property="Camera"> <Setter.Value> <OrthographicCamera Position="0,0,5" LookDirection="0,0,-1" NearPlaneDistance=".01" FarPlaneDistance="1000" Width="17"/> </Setter.Value> </Setter> </DataTrigger> <DataTrigger Binding="{Binding Converter={StaticResource AspectRatio}}" Value="Widescreen Portrait"> <Setter Property="NavigationRows" Value="2"/> <Setter Property="Columns" Value="3"/> <Setter Property="VisibleCount" Value="15"/> <Setter Property="Camera"> <Setter.Value> <OrthographicCamera Position="0.1,0,5" LookDirection="0,0,-1" NearPlaneDistance=".01" FarPlaneDistance="1000" Width="7.5"/> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style> </coverFlow:FlowControl.Style> <coverFlow:FlowControl.FlowTemplate> <DataTemplate> <coverFlow:FlowContext> <Border Height="410" Width="480" Background="Transparent"> <Grid> <Grid.Resources> <coverFlow:FlowImage x:Name="ScreenshotGameplay" x:Key="ScreenshotImage" ImageType="Screenshot - Gameplay" Stretch="Fill" CreateFallbackImage="False" HorizontalAlignment="Center" /> </Grid.Resources> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Border Grid.Row="1" BorderThickness="10"> <Border.Style> <Style TargetType="Border"> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Opacity" Value="1.0"/> <Setter Property="RenderTransform"> <Setter.Value> <TranslateTransform Y="0" /> </Setter.Value> </Setter> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=IsItemSelected}" Value="True"> <Setter Property="BorderBrush" Value="#34B8ED"/> <DataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="(Border.RenderTransform).(TranslateTransform.Y)" Duration="0:0:0.3" To="-50"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut" /> </DoubleAnimation.EasingFunction> </DoubleAnimation> </Storyboard> </BeginStoryboard> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="(Border.RenderTransform).(TranslateTransform.Y)" Duration="0:0:0.25"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut" /> </DoubleAnimation.EasingFunction> </DoubleAnimation> </Storyboard> </BeginStoryboard> </DataTrigger.ExitActions> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <Grid> <Border Width="480" Height="360" Background="#10FFFFFF" BorderThickness="1" BorderBrush="#555555"> <Border.Style> <Style TargetType="Border"> <Setter Property="Visibility" Value="Visible"/> <Setter Property="Opacity" Value="1.0"/> <Style.Triggers> <DataTrigger Binding="{Binding Source={StaticResource ScreenshotImage}, Path=HasImage}" Value="True"> <Setter Property="Opacity" Value="0" /> <Setter Property="Visibility" Value="Collapsed" /> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=DataContext.Title}" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Light.ttf#Red Hat Display Light" FontSize="35" Foreground="#DEDEDE" TextTrimming="None" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="20,0,20,30" /> </Border> <ContentPresenter Content="{StaticResource ScreenshotImage}" /> <Rectangle Fill="Black" Opacity="0.2" /> <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.Resources> <coverFlow:FlowVideo x:Key="FlowVideo" StretchVideo="True" LoadDelay="2000"> <coverFlow:FlowVideo.Style> <Style TargetType="{x:Type coverFlow:FlowVideo}"> <Setter Property="PlayAudio" Value="False"/> <Setter Property="PlayVideo" Value="False"/> <Setter Property="Opacity" Value="0" /> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=IsItemSelected}" Value="True"> <Setter Property="PlayAudio" Value="True"/> <Setter Property="PlayVideo" Value="True"/> </DataTrigger> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=IsItemSelected}" Value="True" /> <Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=HasVideo}" Value="True" /> </MultiDataTrigger.Conditions> <MultiDataTrigger.EnterActions> <BeginStoryboard Name="FadeInVideo"> <Storyboard> <DoubleAnimation BeginTime="0:0:2" Duration="0:0:0.5" Storyboard.TargetProperty="(Grid.Opacity)" To="1"/> </Storyboard> </BeginStoryboard> </MultiDataTrigger.EnterActions> <MultiDataTrigger.ExitActions> <BeginStoryboard Name="FadeOutVideo"> <Storyboard> <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0.2" Storyboard.TargetProperty="(Grid.Opacity)" To="0"/> </Storyboard> </BeginStoryboard> </MultiDataTrigger.ExitActions> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowVideo.Style> </coverFlow:FlowVideo> </Grid.Resources> <ContentPresenter Content="{StaticResource FlowVideo}" /> <Grid> <Grid.Effect> <DropShadowEffect Direction="280" Color="Black" ShadowDepth="15" BlurRadius="25" Opacity="100"/> </Grid.Effect> <Grid.ColumnDefinitions> <ColumnDefinition Width="5*"/> <ColumnDefinition Width="35*"/> <ColumnDefinition Width="5*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="10*"/> <RowDefinition Height="35*"/> <RowDefinition Height="10*"/> </Grid.RowDefinitions> <Grid.Resources> <coverFlow:FlowImage x:Key="ClearLogo" ImageType="Clear Logo" Stretch="Uniform" CreateFallbackImage="False" /> </Grid.Resources> <Grid.Style> <Style TargetType="{x:Type Grid}"> <Setter Property="Visibility" Value="Visible"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding Source={StaticResource FlowVideo}, Path=HasVideo}" Value="True" /> <Condition Binding="{Binding Source={StaticResource FlowVideo}, Path=PlayVideo}" Value="True" /> </MultiDataTrigger.Conditions> <MultiDataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation BeginTime="0:0:2.5" Duration="0:0:0.5" Storyboard.TargetProperty="Opacity" To="0"/> </Storyboard> </BeginStoryboard> </MultiDataTrigger.EnterActions> <MultiDataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.2"/> </Storyboard> </BeginStoryboard> </MultiDataTrigger.ExitActions> </MultiDataTrigger> <DataTrigger Binding="{Binding Source={StaticResource ScreenshotImage}, Path=HasImage}" Value="False"> <Setter Property="Visibility" Value="Hidden"/> </DataTrigger> </Style.Triggers> </Style> </Grid.Style> <ContentControl Grid.Column="1" Grid.Row="1" Content="{StaticResource ClearLogo}" HorizontalAlignment="Center" VerticalAlignment="Center" /> </Grid> </Grid> <Grid> <Grid.Style> <Style TargetType="Grid"> <Setter Property="Visibility" Value="Collapsed"/> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=DataContext.Favorite}" Value="True"> <Setter Property="Visibility" Value="Visible" /> </DataTrigger> </Style.Triggers> </Style> </Grid.Style> <Path Width="100" Height="100" Margin="0,-1,-1,0" Stretch="Uniform" Data="M2 1H297V296L2 1Z" Fill="#34B8ED" HorizontalAlignment="Right" VerticalAlignment="Top" /> <Path Width="40" Height="40" Margin="0,10,10,0" Stretch="Uniform" Fill="White" Opacity="0.8" HorizontalAlignment="Right" VerticalAlignment="Top" Data="M340.8,83C307,83,276,98.8,256,124.8c-20-26-51-41.8-84.8-41.8C112.1,83,64,131.3,64,190.7c0,27.9,10.6,54.4,29.9,74.6 L245.1,418l10.9,11l10.9-11l148.3-149.8c21-20.3,32.8-47.9,32.8-77.5C448,131.3,399.9,83,340.8,83L340.8,83z" /> </Grid> <Grid> <Grid.Resources> <coverFlow:FlowBadge x:Key="Installed" BadgeName="Installed" Height="0" Width="0" /> </Grid.Resources> <Grid.Background> <LinearGradientBrush StartPoint="0.5 0.7" EndPoint="0.5 1"> <GradientStop Color="#00000000" Offset="0"/> <GradientStop Color="#EE000000" Offset="1.0"/> </LinearGradientBrush> </Grid.Background> <Grid.Style> <Style TargetType="Grid"> <Setter Property="Visibility" Value="Hidden"/> <Style.Triggers> <DataTrigger Binding="{Binding Source={StaticResource Installed}, Path=HasBadge}" Value="True"> <Setter Property="Visibility" Value="Visible" /> </DataTrigger> </Style.Triggers> </Style> </Grid.Style> <ContentPresenter Content="{StaticResource Installed}" Visibility="Hidden" /> <Path Width="40" Height="40" Margin="0,0,10,8" Stretch="Uniform" Fill="White" Stroke="Black" StrokeThickness="1.0" Opacity="100" HorizontalAlignment="Right" VerticalAlignment="Bottom" Data="M0.172238 174.578V91.9598H34.6548V222.714H296.517V91.9598H331V257.196H0.168457V174.578H0.172238ZM132.902 150.87L100.574 118.542L124.459 94.6561L136.419 106.612C142.997 113.188 148.493 118.455 148.633 118.315C148.774 118.174 148.886 91.4976 148.886 59.0298V0H182.652V59.0298C182.652 91.4962 182.767 118.173 182.905 118.315C183.046 118.455 188.542 113.188 195.12 106.612L207.079 94.6561L230.965 118.542L198.637 150.87C180.858 168.652 166.067 183.199 165.77 183.199C165.472 183.199 150.683 168.652 132.902 150.871L132.902 150.87Z" /> </Grid> </Grid> </Border> <Grid Grid.Row="1"> <TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=DataContext.Title}" VerticalAlignment="Bottom" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Light.ttf#Red Hat Display Light" FontSize="30" Foreground="#DEDEDE" TextTrimming="CharacterEllipsis" TextAlignment="Center" HorizontalAlignment="Center" Margin="20,0"> <TextBlock.Style> <Style TargetType="TextBlock"> <Setter Property="Opacity" Value="100"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type coverFlow:FlowContext}}, Path=IsItemSelected}" Value="True"/> </MultiDataTrigger.Conditions> <MultiDataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" BeginTime="0:0:0" Duration="0:0:0.3" To="1.0" /> </Storyboard> </BeginStoryboard> </MultiDataTrigger.EnterActions> <MultiDataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:0.2" /> </Storyboard> </BeginStoryboard> </MultiDataTrigger.ExitActions> </MultiDataTrigger> </Style.Triggers> </Style> </TextBlock.Style> </TextBlock> </Grid> </Grid> </Border> </coverFlow:FlowContext> </DataTemplate> </coverFlow:FlowControl.FlowTemplate> </coverFlow:FlowControl> </Grid> <!-- Alpha-numeric Index --> <Grid Grid.Row="1"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="30*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="125*"/> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <Viewbox Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,0,0"> <ListBox Name="Index" Style="{DynamicResource ListBoxStyle}" Width="90" Visibility="{Binding IndexVisibility}"> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseDoubleClick"> <cal:ActionMessage MethodName="OnEnter" /> </i:EventTrigger> </i:Interaction.Triggers> </ListBox> </Viewbox> </Grid> <!-- TOP BAR --> <Grid Background="#090909"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="50*"/> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="7*"/> <RowDefinition Height="30*"/> <RowDefinition Height="7*"/> </Grid.RowDefinitions> <Viewbox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left"> <TextBlock Text="{Binding FilterTitle}" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Black.ttf#Red Hat Display Black" Foreground="#EFEFEF" /> </Viewbox> <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right"> <StackPanel Orientation="Horizontal"> <StackPanel.Style> <Style TargetType="StackPanel"> <Setter Property="Visibility" Value="Collapsed"/> <Style.Triggers> <DataTrigger Binding="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.HasBattery, Mode=OneWay}" Value="True"> <Setter Property="Visibility" Value="Visible"/> </DataTrigger> </Style.Triggers> </Style> </StackPanel.Style> <Viewbox Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,2.3,15,0'}"> <TextBlock Text="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.BatteryLife, StringFormat={}{0:0%}, Mode=OneWay}" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Regular.ttf#Red Hat Display" Foreground="#EFEFEF" /> </Viewbox> <Grid Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,0,25,0'}"> <Viewbox Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,12,0,8'}"> <Grid> <coverFlow:FlowImage Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,0,5,0'}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='9'}" ImagePath="LAUNCHBOX_THEME_FOLDER/Images/Battery/Battery.png" /> <ProgressBar BorderThickness="0" Minimum="0.0" Maximum="1.0" Value="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.BatteryLife, Mode=OneWay}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='1.4,1.7,7.68,1.5'}"> <ProgressBar.Style> <Style TargetType="{x:Type ProgressBar}"> <Setter Property="Foreground" Value="Transparent"/> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ProgressBar}"> <Grid Name="TemplateRoot" SnapsToDevicePixels="True" ClipToBounds="False"> <Border x:Name="PART_Track" Margin="0" CornerRadius="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> <Border x:Name="PART_Indicator" Margin="0" CornerRadius="0.2" HorizontalAlignment="Left" Background="#FFFFFF" BorderThickness="0" SnapsToDevicePixels="True" ClipToBounds="False"> </Border> </Border> </Grid> <ControlTemplate.Triggers> <DataTrigger Binding="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.IsPluggedIn}" Value="True"> <Setter TargetName="PART_Indicator" Property="Background" Value="#4CD964"/> </DataTrigger> <DataTrigger Binding="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.IsLow}" Value="True"> <Setter TargetName="PART_Indicator" Property="Background" Value="#F1342F"/> </DataTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </ProgressBar.Style> </ProgressBar> </Grid> </Viewbox> <Path Fill="White" Stroke="#090909" StrokeThickness="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='1'}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='-9,-10,8,-12'}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='25'}" Width="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='11'}" Stretch="Fill" Data="m 5,1 h 5.040576 L 8.0071691,6.52649 11,6.49529 7.2195679,15.00001 V 8.5365 L 5,8.49639 Z" RenderTransformOrigin="0.5,0.5"> <Path.Style> <Style TargetType="Path"> <Setter Property="Visibility" Value="Hidden"/> <Style.Triggers> <DataTrigger Binding="{Binding Source={x:Static bb:App.MainViewModel}, Path=Battery.IsPluggedIn, Mode=OneWay}" Value="True"> <Setter Property="Visibility" Value="Visible"/> </DataTrigger> </Style.Triggers> </Style> </Path.Style> </Path> </Grid> </StackPanel> <Viewbox> <TextBlock Text="{Binding CurrentTime}" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Black.ttf#Red Hat Display Black" Foreground="#FFFFFF" /> </Viewbox> </StackPanel> </Grid> </Grid> <!-- BOTTOM BAR --> <Grid Grid.Row="2" Background="#090909"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="45*"/> <ColumnDefinition Width="5*"/> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="12*"/> <RowDefinition Height="30*"/> <RowDefinition Height="12*"/> </Grid.RowDefinitions> <Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="100*"/> </Grid.ColumnDefinitions> <Path Grid.Row="1" Stretch="Uniform" Fill="#EFEFEF" Data="M50,11A39,39,0,1,0,89,50,39.05,39.05,0,0,0,50,11ZM62,53H45.24l3.88,3.88a3,3,0,0,1,0,4.24,3,3,0,0,1-4.24,0l-9-9a3.44,3.44,0,0,1-.38-.46l-.12-.22c-.05-.1-.11-.19-.15-.29s-.06-.2-.09-.3a2.58,2.58,0,0,1-.08-.26,2.93,2.93,0,0,1,0-1.18,2.58,2.58,0,0,1,.08-.26c0-.1,0-.2.09-.3s.1-.19.15-.29l.12-.22a3.44,3.44,0,0,1,.38-.46l9-9a3,3,0,0,1,4.24,4.24L45.24,47H62a3,3,0,0,1,0,6Z" /> <Viewbox Grid.Row="1" Grid.Column="2" HorizontalAlignment="Left"> <TextBlock Text="{Binding Converter={StaticResource UpperCase}, Path=PreviousPage}" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Black.ttf#Red Hat Display Black" Foreground="#EFEFEF"/> </Viewbox> </Grid> <!-- CONTROLLER INPUT SECTION --> <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"> <bbCon:ControllerBindingDisplay Binding="Select" HorizontalAlignment="Right"> <bbCon:ControllerBindingDisplay.ControlTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <bbCon:ControllerBindingImage Binding="{Binding Binding}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='30'}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,3,10,0'}" VerticalAlignment="Center" ItemSpacing="10"/> <TextBlock Text="{Binding Converter={StaticResource UpperCase}, Path=BindingLabel}" FontWeight="Regular" FontSize="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='28'}" Foreground="White" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Bold.ttf#Red Hat Display Bold" /> </StackPanel> </DataTemplate> </bbCon:ControllerBindingDisplay.ControlTemplate> </bbCon:ControllerBindingDisplay> <bbCon:ControllerBindingDisplay Binding="Back" HorizontalAlignment="Right" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='20,0,0,0'}"> <bbCon:ControllerBindingDisplay.ControlTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <bbCon:ControllerBindingImage Binding="{Binding Binding}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='30'}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,3,10,0'}" VerticalAlignment="Center" ItemSpacing="10"/> <TextBlock Text="{Binding Converter={StaticResource UpperCase}, Path=BindingLabel}" FontWeight="Regular" FontSize="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='28'}" Foreground="White" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Bold.ttf#Red Hat Display Bold" /> </StackPanel> </DataTemplate> </bbCon:ControllerBindingDisplay.ControlTemplate> </bbCon:ControllerBindingDisplay> <bbCon:ControllerBindingDisplay Binding="ShowGameDetails" HorizontalAlignment="Right" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='20,0,0,0'}"> <bbCon:ControllerBindingDisplay.ControlTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <bbCon:ControllerBindingImage Binding="{Binding Binding}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='30'}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,3,10,0'}" VerticalAlignment="Center" ItemSpacing="10"/> <TextBlock Text="{Binding Converter={StaticResource UpperCase}, Path=BindingLabel}" FontWeight="Regular" FontSize="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='28'}" Foreground="White" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Bold.ttf#Red Hat Display Bold" /> </StackPanel> </DataTemplate> </bbCon:ControllerBindingDisplay.ControlTemplate> </bbCon:ControllerBindingDisplay> <bbCon:ControllerBindingDisplay Binding="Search" HorizontalAlignment="Right" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='20,0,0,0'}"> <bbCon:ControllerBindingDisplay.ControlTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <bbCon:ControllerBindingImage Binding="{Binding Binding}" Height="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='30'}" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,3,10,0'}" VerticalAlignment="Center" ItemSpacing="10"/> <TextBlock Text="{Binding Converter={StaticResource UpperCase}, Path=BindingLabel}" FontWeight="Regular" FontSize="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='28'}" Foreground="White" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Bold.ttf#Red Hat Display Bold" /> </StackPanel> </DataTemplate> </bbCon:ControllerBindingDisplay.ControlTemplate> </bbCon:ControllerBindingDisplay> </StackPanel> <Viewbox Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right" Margin="{Binding Converter={StaticResource ScaleConverter}, ConverterParameter='0,0,0,0'}"> <Viewbox.Style> <Style TargetType="Viewbox"> <Setter Property="Opacity" Value="1"/> <Style.Triggers> <DataTrigger Binding="{Binding ElementName=FlowControl, Path=MaxItems, Mode=OneWay}" Value="0"> <Setter Property="Opacity" Value="0"/> </DataTrigger> </Style.Triggers> </Style> </Viewbox.Style> <TextBlock Foreground="White" FontFamily="LAUNCHBOX_THEME_FOLDER/Fonts/RedHatDisplay-Bold.ttf#Red Hat Display Bold"> <Run Text="{Binding ElementName=FlowControl, Path=SelectedItemIndex, Mode=OneWay}"/> <Run Text="/"/> <Run Text="{Binding ElementName=FlowControl, Path=MaxItems, Mode=OneWay}"/> </TextBlock> </Viewbox> </Grid> </Grid> </Grid> </Grid> </UserControl> Edited Wednesday at 05:38 AM by jestermgee Quote
Solution jestermgee Posted Wednesday at 05:50 AM Author Solution Posted Wednesday at 05:50 AM SOLVED! So after scanning that page code again I noted nothing in the "game info" part of the page has any data in that page but there is a "GameDetailsView" binding reference right where I would expect that block to show so following my intuition I followed this to the GameDetailsView.xaml and now it is making far more sense, I see the value: PlatformClearLogoImagePath So it's just a case of finding the linked files which now makes much more sense. Quote
C-Beats Posted Wednesday at 12:11 PM Posted Wednesday at 12:11 PM 6 hours ago, jestermgee said: SOLVED! So after scanning that page code again I noted nothing in the "game info" part of the page has any data in that page but there is a "GameDetailsView" binding reference right where I would expect that block to show so following my intuition I followed this to the GameDetailsView.xaml and now it is making far more sense, I see the value: PlatformClearLogoImagePath So it's just a case of finding the linked files which now makes much more sense. Glad you were able to solve it. Yeah anytime you see a binding that points to something ending in "View" then what is being displayed isn't in that file and potentially can be found in a different file in that folder. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.