viewModel.Image = ImageSource.FromUri(string.Format("https://www.domain.com/gallery/channels/{0}/{1}.png", Convert.ToString(storydata[0].channel_uuid), Convert.ToString(storydata[0].channel_uuid)));
public class ImageViewModel : INotifyPropertyChanged { private ImageSource image; public ImageSource Image { get { return image; } set { image = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("Image")); } } } private string imageStream; public string ImageStream { get { return imageStream; } set { imageStream = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("ImageStream")); } } } public event PropertyChangedEventHandler PropertyChanged; }
viewModel.Image = ImageSource.FromUri(new URI(string.Format(...)));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)