Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ImageSource: Model or ViewModel?

$
0
0

Hi experts,

I'm trying to figure out where to put an ImageSource in my object hierarchy. Current inclination is to put it only in the ViewModel layer, and store a URL as string in the corresponding Model to feed into it.

However I've seen Models with an ImageSource in them, with all sorts of [JsonIgnore] and SQL [Ignore] attributes on them. This seems to me to be the wrong place to store this information, but I'm open to learning a new wisdom.

What do you think?


Viewing all articles
Browse latest Browse all 77050

Trending Articles