I'm trying to build the xamarin image upload application. I want to show the local image before uploading it to the server, After that, I want to show image from server url. If I use Image source, it works well both local and server. But the server image cache problem occurs.
<Image Grid.Row="0"
Source="{Binding Url}"
Aspect="AspectFill"
HeightRequest="60"
BackgroundColor="black"
WidthRequest="60"/>
So that, to disable caching, I'm using UriImageSource, it works on server url but it doesn't show the local image.
<Image Grid.Row="0"
Aspect="AspectFill"
HeightRequest="60"
BackgroundColor="black"
WidthRequest="60">
<Image.Source>
<UriImageSource Uri="{Binding Url}"
CachingEnabled="False"/>
<!--FileImageSource File="{Binding Url}"/-->
</Image.Source>
</Image>
Is it possible to use both file and uri image source in this Image? Thank you for your help.