# C1.WPF.C1ZoomHelper.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1ZoomHelper__ctor_" data-uid="C1.WPF.C1ZoomHelper.#ctor*">C1ZoomHelper Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1ZoomHelper__ctor_" data-uid="C1.WPF.C1ZoomHelper.#ctor*"></a>
<h4 id="C1_WPF_C1ZoomHelper__ctor_System_Windows_UIElement_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.WPF.C1ZoomHelper.#ctor(System.Windows.UIElement,System.Boolean,System.Boolean,System.Boolean)">C1ZoomHelper(UIElement, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.C1ZoomHelper.html">C1ZoomHelper</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZoomHelper(UIElement element, bool ctrlRequired = true, bool continuousZoom = true, bool handleMouseWheel = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As UIElement, Optional ctrlRequired As Boolean = True, Optional continuousZoom As Boolean = True, Optional handleMouseWheel 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><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 zoom gesture 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">ctrlRequired</span></td>
      <td><p>Sets whether is required to press Ctrl key in order to start 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">continuousZoom</span></td>
      <td><p>If set to true it will raise intermediate events to perform a continuous zoom, otherwise the events will be raised from native mouse wheel events.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">handleMouseWheel</span></td>
      <td><p>Sets whether Handled property of mouse wheel events will be set to true.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
