1. [NUI] Add TouchArea property.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / PinchGestureDetector.cs
index b34ee58..e7a8d38 100755 (executable)
@@ -164,6 +164,7 @@ namespace Tizen.NUI
         {
             private View _view;
             private PinchGesture _pinchGesture;
+            private bool handled = true;
 
             /// <summary>
             /// The attached view.
@@ -200,6 +201,22 @@ namespace Tizen.NUI
                     _pinchGesture = value;
                 }
             }
+
+            /// <summary>
+            /// Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.
+            /// </summary>
+            [EditorBrowsable(EditorBrowsableState.Never)]
+            public bool Handled
+            {
+                get => handled;
+                set
+                {
+                    handled = value;
+                    Interop.Actor.SetNeedGesturePropagation(View.getCPtr(_view), !value);
+                    if (NDalicPINVOKE.SWIGPendingException.Pending)
+                        throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+                }
+            }
         }
     }
 }