# C1.WPF.C1TapHelper.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1TapHelper__ctor_" data-uid="C1.WPF.C1TapHelper.#ctor*">C1TapHelper Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1TapHelper__ctor_" data-uid="C1.WPF.C1TapHelper.#ctor*"></a>
<h4 id="C1_WPF_C1TapHelper__ctor_System_Windows_UIElement_System_Boolean_" data-uid="C1.WPF.C1TapHelper.#ctor(System.Windows.UIElement,System.Boolean)">C1TapHelper(UIElement, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.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(UIElement element, bool handledEventsToo = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As UIElement, Optional handledEventsToo As Boolean = False)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> 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>
  </tbody>
</table>


<a id="C1_WPF_C1TapHelper__ctor_" data-uid="C1.WPF.C1TapHelper.#ctor*"></a>
<h4 id="C1_WPF_C1TapHelper__ctor_System_Windows_UIElement_System_Boolean_System_Boolean_" data-uid="C1.WPF.C1TapHelper.#ctor(System.Windows.UIElement,System.Boolean,System.Boolean)">C1TapHelper(UIElement, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.C1TapHelper.html">C1TapHelper</a> class which only handles Tap event and optionally DoubleTap event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TapHelper(UIElement element, bool doubleTapped, bool handledEventsToo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As UIElement, doubleTapped As Boolean, handledEventsToo As Boolean)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> 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">doubleTapped</span></td>
      <td><p>Specifies whether elementshould listen to DoubleTap event.</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>
  </tbody>
</table>
<h5 id="C1_WPF_C1TapHelper__ctor_System_Windows_UIElement_System_Boolean_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Use this constructor to save memory and performance if you don't need to handle all events.</p>
</div>
</div>
