Jump to content
LaunchBox Community Forums
Omen

"Or" not working as fallback

Recommended Posts

Posted (edited)

@Jason Carr I'm trying to display Arcade Controls Information while having Platform Banners as a fallback if Arcade Controls Information doesn't exist.

I've tried this but it doesn't work:

Source="{Binding SelectedGame.ArcadeControlsInformationOrPlatform.BannerImagePath}"

If I use Either of the following without "Or" it works:

Source="{Binding SelectedGame.ArcadeControlsInformationImagePath}"
Source="{Binding Platform.BannerImagePath}"

Does the "Or" command work between Platform and SelectedGame image groups, or just the same image group? Like only SelectedGame files can be accessed with "Or"?

Edited by Omen

Share this post


Link to post
Share on other sites

The "Or" there you're using is not valid syntax at all. I'm guessing you got it from a particular binding that has "Or" in the title, but that is not a flexible thing that you can do.

The best approach to do something like that is the PrioritizedPathSelector control. You can find examples of that in the Unified Redux theme. I think there's also a forum post around here somewhere with more details.

  • Like 1

Share this post


Link to post
Share on other sites

Yeah I found it in a binding that had it. I'll check out the Unified Redux theme for examples, thanks man. :)

  • Like 1

Share this post


Link to post
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
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...