# C1.WinUI.Core.C1TapHelper.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_Core_C1TapHelper__ctor_" data-uid="C1.WinUI.Core.C1TapHelper.#ctor*">C1TapHelper Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_Core_C1TapHelper__ctor_" data-uid="C1.WinUI.Core.C1TapHelper.#ctor*"></a>
<h4 id="C1_WinUI_Core_C1TapHelper__ctor_Microsoft_UI_Xaml_FrameworkElement_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.WinUI.Core.C1TapHelper.#ctor(Microsoft.UI.Xaml.FrameworkElement,System.Boolean,System.Boolean,System.Boolean)">C1TapHelper(FrameworkElement, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.Core.C1TapHelper.html">C1TapHelper</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TapHelper(FrameworkElement element, bool handledEventsToo = false, bool raiseTapOnPointerPressed = false, bool useManipulationEvents = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As FrameworkElement, Optional handledEventsToo As Boolean = False, Optional raiseTapOnPointerPressed As Boolean = False, Optional useManipulationEvents As Boolean = True)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">FrameworkElement</span></td>
      <td><span class="parametername">element</span></td>
      <td><p>An <span class="xref">Microsoft.UI.Xaml.FrameworkElement</span> on which the tap gestures will be listened.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">handledEventsToo</span></td>
      <td><p>Indicates whether tap gestures will be listened despite mouse events were already handled. (It only applies to mouse gestures)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">raiseTapOnPointerPressed</span></td>
      <td><p>Raise the <a class="xref" href="C1.WinUI.Core.C1TapHelper.Tapped.html">Tapped</a> event when the mouse or pen is pressed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useManipulationEvents</span></td>
      <td><p>When set to true it uses Manipulation events to listen to the gesture, otherwise it will use Pointer events.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
