Since we don't check validation of ImageView itself during change
ImageView properties, it will not throw any exceptions.
and it will be crashend when we ProcessOnceEvent invoked.
Normal View property directly access to DALi side. But ImageView
property access to DALi side lazy.
Now this throw make app developer easy to find error codes.
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
// Update image property map value as inputed value.
if (key != 0)
{
+ if(!HasBody())
+ {
+ // Throw exception if ImageView is disposed.
+ throw new global::System.InvalidOperationException("[NUI][ImageVIew] Someone try to change disposed ImageView's property.\n");
+ }
+
if (cachedImagePropertyMap == null)
{
cachedImagePropertyMap = new PropertyMap();