11-16-2020, 08:43 PM
When adding data entries to a game's Details page -- such as Genre, or Source, or Platform, or Time Played -- is there a way to use a conditional to assign two sets of text to a TextBlock depending on a variable? My idea is to display the game's Time Played but if a game hasn't been played yet then I'd like to display the Average Time to Beat (I've been using a workaround to assign this info to each game). Something like:
and I would do something similar to the DynamicResource to make sure the labels properly reflected the data being displayed.
if (CompletionStatus == NotPlayed)
Text="{Binding Playtime, Converter={StaticResource LongToTimePlayedConverter}}"
else
Text="{Binding [OtherDataPoint], Converter=blahblahblah}"
and I would do something similar to the DynamicResource to make sure the labels properly reflected the data being displayed.