[NUI] Add NeedGesturePropagation (#3130)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Events / PinchGestureDetector.cs
index 9998ee7..dd73d11 100755 (executable)
@@ -163,6 +163,7 @@ namespace Tizen.NUI
         {
             private View view;
             private PinchGesture pinchGesture;
+            private bool handled = true;
 
             /// <summary>
             /// The attached view.
@@ -199,6 +200,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();
+                }
+            }
         }
     }
 }