# C1.WPF.C1DragStartingEventArgs.CaptureElementOnPointerPressed

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1DragStartingEventArgs_CaptureElementOnPointerPressed_" data-uid="C1.WPF.C1DragStartingEventArgs.CaptureElementOnPointerPressed*">CaptureElementOnPointerPressed Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1DragStartingEventArgs_CaptureElementOnPointerPressed_" data-uid="C1.WPF.C1DragStartingEventArgs.CaptureElementOnPointerPressed*"></a>
<h4 id="C1_WPF_C1DragStartingEventArgs_CaptureElementOnPointerPressed" data-uid="C1.WPF.C1DragStartingEventArgs.CaptureElementOnPointerPressed">CaptureElementOnPointerPressed</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the element will be captured in pointer pressed event (MouseLeftButtonDown in SL and WPF and PointerPressed in WinRT) or in the first pointer move event (MouseMove in SL and WPF and PointerMoved in WinRT).<remarks>Capturing the element on mouse down will cause Click, DoubleClick and MouseLeftButtonUp events not to be fired in sub-elements (nested elements in the visual tree), whereas capturing the element on the first mouse move can make it difficult for final users to drag small elements quickly.</remarks></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool CaptureElementOnPointerPressed { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property CaptureElementOnPointerPressed As Boolean</code></pre>
</div>
</div>
