public class pic : UserControl
{
// Fields
private bool _contentLoaded;
private string _ImageUrl;
internal Canvas LayoutRoot;
internal Image photo;
// Methods
public pic()
{
this.InitializeComponent();
}
// Properties
public string ImageUrl
{
get
{
return this._ImageUrl;
}
set
{
this._ImageUrl = value;
Uri uri = new Uri(value, 2);
BitmapImage image = new BitmapImage(uri);
this.photo.set_Source(image);
}
}
}