Jump to content
LaunchBox Community Forums

Narbat

Members
  • Posts

    1
  • Joined

  • Last visited

Narbat's Achievements

1-Bit Wonder

1-Bit Wonder (1/7)

0

Reputation

  1. 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?
×
×
  • Create New...