private void UpdateShadow(ShadowBase shadow, bool needToListenStateChanged) { ControlStateChangeEventInternal -= OnControlStateChangedForShadow; if (shadow == null) { Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SHADOW, new PropertyValue()); } else { Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SHADOW, shadow.ToPropertyValue(this)); } if (needToListenStateChanged) { ControlStateChangeEventInternal += OnControlStateChangedForShadow; } }
private void ApplyShadow() { ShadowBase shadow = (boxShadow != null && !boxShadow.IsEmpty()) ? (ShadowBase)boxShadow.GetValue() : (ShadowBase)imageShadow?.GetValue(); Tizen.NUI.Object.SetProperty(swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), ShadowBase.ToPropertyValue(shadow, this)); }