When setting the IconProperty of a (Adonis-)Window instance, a System.UriFormatException is being thrown from this line, when the ToString method of that object doesnt evaluate to a valid Uri.
Such is the case for objects that represent an actual image, such as any class that derives from ImageSource.
This PR takes those cases into account and skips the fallback logic that tries turning them into valid URIs.
When setting the IconProperty of a (Adonis-)Window instance, a
System.UriFormatException
is being thrown from this line, when theToString
method of that object doesnt evaluate to a valid Uri.Such is the case for objects that represent an actual image, such as any class that derives from
ImageSource
.This PR takes those cases into account and skips the fallback logic that tries turning them into valid URIs.