Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created February 19, 2019 10:17
Show Gist options
  • Save MartinZikmund/707ef4c740fdd25130b6a9f2a3579ac7 to your computer and use it in GitHub Desktop.
Save MartinZikmund/707ef4c740fdd25130b6a9f2a3579ac7 to your computer and use it in GitHub Desktop.
OnPlatform workaround for the assets issue on Xamarin.Forms UWP
<Image>
<Image.Source>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS, Android" Value="image.png" />
<On Platform="UWP" Value="Assets/image.png" />
</OnPlatform>
</Image.Source>
</Image>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment