thewhite Posted July 11, 2020 Share Posted July 11, 2020 (edited) Hi, I have a problem with my custom theme. In the image below, it's a video in-game. But if the game don't have a video, it doesn't show a image. I think that my problem is this line; <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding BackgroundView}" Grid.Row="1" IsContentVideo="true" VerticalAlignment="Top"/> If i change BackgroundView to ImageVideoView, the video doesn't show anymore and when i get a game with no video, i see the in-game image. And this image replace all game with a video. I have another problem, maybe it's related. I must use SelectedGame instead of ActiveGame, for example <Binding Path="SelectedGame.CommunityStarRating" />. I didn't get any issue with SelectedGame, but in the doc it suggests using ActiveGame... 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:transitions="clr-namespace:Unbroken.LaunchBox.Windows.Transitions;assembly=Unbroken.LaunchBox.Windows" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FocusVisualStyle="{x:Null}" BorderThickness="0" Margin="0" Padding="0" Background="#000"> <Canvas Name="Canvas"> <!--<transitions:TransitionPresenter TransitionSelector="{Binding BackgroundTransitionSelector}" Content="{Binding BackgroundView}" Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}" IsContentVideo="true" />--> <Grid Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}"> <Grid.Background> <ImageBrush Stretch="Fill" ImageSource="pack://siteoforigin:,,,/Themes/clean/Images/background/background_list_games.jpg" AlignmentY="Top" AlignmentX="Center"/> </Grid.Background> <Grid.ColumnDefinitions> <ColumnDefinition Width="26*" /> <ColumnDefinition Width="71*" /> <ColumnDefinition Width="3*" /> </Grid.ColumnDefinitions> <transitions:TransitionPresenter Grid.Column="0" TransitionSelector="{Binding ListTransitionSelector}" Content="{Binding ListView}" /> <Grid Grid.Column="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="4*" /> <ColumnDefinition Width="96*" /> </Grid.ColumnDefinitions> <Grid Grid.Column="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="60*" /> <ColumnDefinition Width="5*" /> <ColumnDefinition Width="35*" /> </Grid.ColumnDefinitions> <Grid Grid.Column="0"> <Grid.RowDefinitions> <RowDefinition Height="4.2*" /> <RowDefinition Height="59.3*" /> <RowDefinition Height="5.4*" /> <RowDefinition Height="45.3*" /> <RowDefinition Height="4.2*" /> </Grid.RowDefinitions> <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding BackgroundView}" Grid.Row="1" IsContentVideo="true" VerticalAlignment="Top"/> <transitions:TransitionPresenter Grid.Row="3" TransitionSelector="{Binding GameDetailsTransitionSelector}" Content="{Binding GameDetailsView}" /> </Grid> <Grid Grid.Column="2"> <Grid.RowDefinitions> <RowDefinition Height="4.2*" /> <RowDefinition Height="45.8*" /> <RowDefinition Height="10*" /> <RowDefinition Height="35.8*" /> <RowDefinition Height="4.2*" /> </Grid.RowDefinitions> <Image Grid.Row="1" Margin="0" Source="{Binding Path=ActiveGame.FrontImagePath}" VerticalAlignment="Top" /> <Image Grid.Row="3" Source="{Binding Path=SelectedGame.ClearLogoImagePath}" VerticalAlignment="Top" /> </Grid> </Grid> </Grid> </Grid> </Canvas> </UserControl> Thanks. Edited July 11, 2020 by thewhite Quote Link to comment Share on other sites More sharing options...
wallmachine Posted July 11, 2020 Share Posted July 11, 2020 (edited) I had a similar issue on my custom theme after 11 beta 1 none of my videos showed and I had to turn off all the video settings in BigBox, below is the code I use. <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding ImageVideoView}" IsContentVideo="True" /> Edited July 11, 2020 by wallmachine Quote Link to comment Share on other sites More sharing options...
thewhite Posted July 11, 2020 Author Share Posted July 11, 2020 (edited) Thanks a lot, it works ? Edited July 11, 2020 by thewhite Quote Link to comment Share on other sites More sharing options...
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.