mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-06-30 01:40:51 +02:00
added person picture
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user