I would really like to put all of my icons/images inside of the
Assets folder, however this creates some not so great looking code:
<Image> <Image.Source> <OnPlatform x:TypeArguments="ImageSource"> <On Platform="iOS" Value="icon_twitter.png"/> <On Platform="Android" Value="icon_twitter.png"/> <On Platform="UWP" Value="Assets/icon_twitter.png"/> </OnPlatform> </Image.Source> </Image>
Ideally I would like to do:
I could do this if I put it into the UWP root, but that clutters up the project if it is large.
I would like something like:
Then my nice pretty Image would work.