示例#1
0
        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;
            }
        }
示例#2
0
        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));
        }