Adding PropertyMap and PropertyArray types to SetProperty
Fixed Visual base property map getter to actually get the property.
Enables addition of visuals via following setup in a CustomView:
private VisualBase _imageVisual;
[ScriptableProperty()]
public PropertyMap ImageVisual
{
get
{
return _imageVisual.Creation;
}
set
{
_imageVisual = VisualFactory.Get().CreateVisual( value );
RegisterVisual( GetPropertyIndex("ImageVisual", _imageVisual );
}
}
Then in code, can use
var imageVisual = new ImageVisual();
imageVisual.URL = value;
imageVisual.AlphaMaskURL = _maskURL;
imageVisual.MaskContentScale = 1.6f;
imageVisual.CropToMask = true;
ImageVisual = imageVisual.OutputVisualMap;
Change-Id: If31703b1684db30d9ed319be62e8b091ee62cdbb
Signed-off-by: David Steele <david.steele@samsung.com>