# C1.WinUI.Core.C1TappedEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_Core_C1TappedEventArgs__ctor_" data-uid="C1.WinUI.Core.C1TappedEventArgs.#ctor*">C1TappedEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_Core_C1TappedEventArgs__ctor_" data-uid="C1.WinUI.Core.C1TappedEventArgs.#ctor*"></a>
<h4 id="C1_WinUI_Core_C1TappedEventArgs__ctor_Microsoft_UI_Xaml_FrameworkElement_Microsoft_UI_Xaml_RoutedEventArgs_System_Boolean_System_Boolean_" data-uid="C1.WinUI.Core.C1TappedEventArgs.#ctor(Microsoft.UI.Xaml.FrameworkElement,Microsoft.UI.Xaml.RoutedEventArgs,System.Boolean,System.Boolean)">C1TappedEventArgs(FrameworkElement, RoutedEventArgs, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.Core.C1TappedEventArgs.html">C1TappedEventArgs</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 C1TappedEventArgs(FrameworkElement element, RoutedEventArgs originalArgs, bool isRightTapped = false, bool isDown = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As FrameworkElement, originalArgs As RoutedEventArgs, Optional isRightTapped As Boolean = False, Optional isDown 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>Element where the gesture is being listened.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RoutedEventArgs</span></td>
      <td><span class="parametername">originalArgs</span></td>
      <td><p>The <span class="xref">Microsoft.UI.Xaml.RoutedEventArgs</span> instance containing the event data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isRightTapped</span></td>
      <td><p>if set to <code>true</code> the event was performed with the right button of the mouse.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isDown</span></td>
      <td><p>if set to <code>true</code> the event was performed with the mouse down.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WinUI_Core_C1TappedEventArgs__ctor_" data-uid="C1.WinUI.Core.C1TappedEventArgs.#ctor*"></a>
<h4 id="C1_WinUI_Core_C1TappedEventArgs__ctor_Microsoft_UI_Xaml_FrameworkElement_Microsoft_UI_Xaml_RoutedEventArgs_C1_WinUI_Core_C1PointerDeviceType_System_Boolean_System_Boolean_" data-uid="C1.WinUI.Core.C1TappedEventArgs.#ctor(Microsoft.UI.Xaml.FrameworkElement,Microsoft.UI.Xaml.RoutedEventArgs,C1.WinUI.Core.C1PointerDeviceType,System.Boolean,System.Boolean)">C1TappedEventArgs(FrameworkElement, RoutedEventArgs, C1PointerDeviceType, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.Core.C1TappedEventArgs.html">C1TappedEventArgs</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 C1TappedEventArgs(FrameworkElement element, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, bool isRightTapped = false, bool isDown = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As FrameworkElement, originalArgs As RoutedEventArgs, pointerType As C1PointerDeviceType, Optional isRightTapped As Boolean = False, Optional isDown 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>Element where the gesture is being listened.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RoutedEventArgs</span></td>
      <td><span class="parametername">originalArgs</span></td>
      <td><p>The <span class="xref">Microsoft.UI.Xaml.RoutedEventArgs</span> instance containing the event data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WinUI.Core.C1PointerDeviceType.html">C1PointerDeviceType</a></td>
      <td><span class="parametername">pointerType</span></td>
      <td><p>the type of event that originated the gesture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isRightTapped</span></td>
      <td><p>if set to <code>true</code> the event was performed with the right button of the mouse.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isDown</span></td>
      <td><p>if set to <code>true</code> the event was performed with the mouse down.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
