ksherfinski Posted September 4, 2022 Share Posted September 4, 2022 for example: I have a default image i like to use for all arcade games, which is basically a layout of my panel. I'd like to change the image, when the selected game requires another type of controller, such as a light gun. Currently I'm getting the game image on top of the platform image, in the scenario where the game image exists. I did a quick look in the tutorials and help doc, so forgive me if this is something super simple. thanks in advance Quote Link to comment Share on other sites More sharing options...
ksherfinski Posted September 5, 2022 Author Share Posted September 5, 2022 After reading through Jason's LaunchBox theming PDF I found something quite useful in the examples that use Style Triggers. You can basically build a case statement based on a SelectedGame property value (assuming it's exposed). I'm sure there's a cleaner way to assign the bindings than what i show below, since i just copied that from an existing startup theme: Quote Link to comment Share on other sites More sharing options...
Retro808 Posted September 6, 2022 Share Posted September 6, 2022 Style Triggers would be a better way. The way I did it in that theme you copied was pretty basic as I was just getting started with (and well still am) learning to code themes. I started updating that old code in those themes to use trigger, but I just do not have much time lately to finish polishing them off and posting. If you look in the BigBox theme folder at the Default theme the GameMarqueeView.xaml uses triggers to accomplish what you are asking. It would be a good file to review to see how to use them. Quote Link to comment Share on other sites More sharing options...
ksherfinski Posted September 6, 2022 Author Share Posted September 6, 2022 Thanks Retro. 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.