I have a C# app targeting Windows UWP platform. App displays images in list view. Based on the query made, these images can come from either app's
- container(/Assets/ folder)
- Online source
- Local source
When the image's source is either in app's container or online source I can bind the Image Source to a valid URI in XAML to fetch the image.
When the image's source is local, the url for the image is proprietary & we use our own imge_fetch api to get the image from our servers.
My problem is how to specify a XAML binding which is capable of taking either a uri(when image is from app's container or online source) or BitmapImage(returned by our image_fetch apis)
I have checked this post regarding IValueConverter
I want to know, if there are any better/easier way in UWP to do what I am trying to achieve.