Since we don't need to re-create the visual if we only chage the ImageColor property,
let we use UpdateProperty Action.
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
}
}
}
- imagePropertyUpdatedFlag = true;
+ imagePropertyUpdatedFlag |= requiredVisualCreation;
cachedImagePropertyMap[key] = value;
// Lazy update only if visual creation required, and _resourceUrl is not empty, and ProcessAttachedFlag is false.
if (newValue != null)
{
imageView.UpdateImage(Visual.Property.Opacity, new PropertyValue(((Color)newValue).A), false);
- imageView.UpdateImage(Visual.Property.MixColor, new PropertyValue((Color)newValue));
+ imageView.UpdateImage(Visual.Property.MixColor, new PropertyValue((Color)newValue), false);
+
+ // Update property
+ Interop.View.InternalUpdateVisualPropertyVector4(imageView.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.MixColor, Vector4.getCPtr((Color)newValue));
}
},
defaultValueCreator: (bindable) =>