Anyone know the best way to use the Game name to pull images from a custom folder? If I use <Binding Path="SelectedGame.Title" /> to locate the image in a custom folder it will not display any image for a game with an "_" in the title. For Example: Street Fighter II: The New Challengers will have images named Street Fighter II_ The New Challengers (I am matching how LaunchBox would name that file). SelectedGame.Title does not seem to work since it does not see the "_" as the same as ":" from the actual title and of course Windows does not allow ":" in file names.
The exact code is below.
<TextBlock x:Name="GameControls" Visibility="Collapsed" Grid.Column="1" Grid.Row="3" Grid.RowSpan="2" Grid.ColumnSpan="3" >
<TextBlock.Text>
<MultiBinding StringFormat="{}pack://siteoforigin:,,,/Images/Game Controls/{0}/{1}.jpg">
<Binding Path="SelectedGame.Platform" />
<Binding Path="SelectedGame.Title" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
<Image Source="{Binding Text, ElementName=GameControls}" Stretch="Fill" RenderOptions.BitmapScalingMode="HighQuality" Grid.Column="0" Grid.Row="0" Grid.RowSpan="6" Grid.ColumnSpan="5" />