How can I make dynamic loading of images?
-- xaml
<Image Source="{Binding Path=Img}"/>
-- CS
protected readonly AbstractProperty _imgProperty = new WProperty(typeof(object), null);
public AbstractProperty ImgProperty
{
get { return _imgProperty; }
}
public object Img
{
get { return (object)_imgProperty .GetValue(); }
set { _imgProperty.SetValue(value); }
}
Give an example from the gallery of pictures.
-- xaml
<Image Source="{Binding Path=Img}"/>
-- CS
protected readonly AbstractProperty _imgProperty = new WProperty(typeof(object), null);
public AbstractProperty ImgProperty
{
get { return _imgProperty; }
}
public object Img
{
get { return (object)_imgProperty .GetValue(); }
set { _imgProperty.SetValue(value); }
}
Give an example from the gallery of pictures.