Jump to content
LaunchBox Community Forums

How to change an image?


Narbat

Recommended Posts

I want to make a minor tweak to the default theme.  It seems like it should be easy, but I can't figure out the XAML needed.

For the Arcade platform (the only platform I'm using) I want to show the TextGamesView, but I want to show the "Arcade - Controls Information" image as one of the two images in the center column. TextGamesView references ImageView (which looks like it corresponds to Views/ImageView.xaml) and ImageVideoView (which doesn't appear to have a corresponding xaml file).  Okay, let's try putting the control image into ImageView.xaml.

My first problem is that there's no binding in the documentation for the controls info image.  Okay, for the time being let's just try SelectedGame.ClearLogoImagePath, since I have a clear logo image for each game. I change ImageView.xaml from:

<Image Source="{Binding ImagePath}" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" RenderOptions.BitmapScalingMode="HighQuality" MaxHeight="{Binding MaxHeight}" />

to:

<Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" />

Fire it up and...  Blank.  Nothing in that position on screen.  I try variations on the syntax, like omitting "Path=".  Nothing.  I try other bindings, like SelectedGame.ScreenshotImagePath. Nothing. Switch from SelectedGame to ActiveGame. Nope.

It seems that swapping an image should be the easiest thing to do in theming.  What am I doing wrong?  How do I replace the image in this spot?

At the moment my solution is to stick with the unmodified default theme and shuffle around the images in the directory tree.  That is, cycle images until the Advertisement Flyer is showing, then remove all the flyer images from the directory and replace them with controls images.  But that seems like a huge kludge, and will make it harder to switch to a new theme in the future.  How can I do it the right way?

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

This is an old thread, but I am trying to do the same exact thing, and this keeps showing up as I search for a solution. I was able to show the control information images by changing the image priorities in Launchbox, but would love to be able to show the default images on the platform view, and then the controls information in the top position of the games detail view. If anyone has been able to do this or even change the image types at all, any advice would be much appreciated.

Edited by Gran_Moff_Tarkin
Link to comment
Share on other sites

21 hours ago, Gran_Moff_Tarkin said:

This is an old thread, but I am trying to do the same exact thing, and this keeps showing up as I search for a solution. I was able to show the control information images by changing the image priorities in Launchbox, but would love to be able to show the default images on the platform view, and then the controls information in the top position of the games detail view. If anyone has been able to do this or even change the image types at all, any advice would be much appreciated.

If you are talking about the game details page that can be shown after selecting a game which also show the play, launch with, star rating, etc.. than I believe that view cannot be edited to bind a new image. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...