added person picture

This commit is contained in:
2020-02-24 21:47:22 +01:00
parent 046639681f
commit e6704c331f
2 changed files with 10 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace ModernWpfPlayground.PropertyPresenter2
if (!(value is string strValue)) return Binding.DoNothing;
if (strValue.StartsWith(dynResPrefix, StringComparison.Ordinal))
{
var resource = Application.Current.TryFindResource(strValue.Replace(dynResPrefix, string.Empty));
var resource = Application.Current.TryFindResource(strValue.Replace(dynResPrefix, string.Empty , StringComparison.InvariantCulture));
return resource is ImageSource source ? source : Binding.DoNothing;
}