# C1.Win.TouchToolKit.ManipulationStartedEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TouchToolKit_ManipulationStartedEventArgs" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs" class="text-break">ManipulationStartedEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides data for <a class="xref" href="C1.Win.TouchToolKit.C1TouchEventProvider.ManipulationStarted.html">ManipulationStarted</a> event.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><a class="xref" href="C1.Win.TouchToolKit.TouchRoutedEventArgs.html">TouchRoutedEventArgs</a></div>
    <div class="level3"><span class="xref">ManipulationStartedEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.TouchToolKit.html">C1.Win.TouchToolKit</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TouchToolKit.10.dll</h6>
  <h5 id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ManipulationStartedEventArgs : TouchRoutedEventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ManipulationStartedEventArgs
    Inherits TouchRoutedEventArgs</code></pre>
  </div>
  <h5 id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_examples"><strong>Examples</strong></h5>
  <p>
  The following code example shows how to use <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.html">ManipulationStartedEventArgs</a> class. 
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1TouchEventProvider.html">C1TouchEventProvider</a> class.
</p>
<pre><code class="lang-csharp">public class GcTouchEventProviderDemo : Form
{
	private Panel _bluePanel;
	private ListBox _messageListBox;
	private GcTouchEventProvider _gcTouchEventProvider = new GcTouchEventProvider();

	public GcTouchEventProviderDemo()
	{
		InitializeComponent();

		// Enable all manipulation interaction modes.
		_gcTouchEventProvider.ManipulationMode = ManipulationModes.All;

		// EnablePressAndHold and EnablePenFlicks property default value is True;

		// Attach GcTouchEventprovider to Panel.
		_gcTouchEventProvider.SetEnableTouchEvents(_bluePanel, true);

		_gcTouchEventProvider.ManipulationStarted += _gcTouchEventProvider_ManipulationStarted;
	}

	private void _gcTouchEventProvider_ManipulationStarted(object sender, ManipulationStartedEventArgs e)
	{
		string log = "Target: " + e.TargetControl.Name + " Event: ManipulationStarted" + "  X: " + e.Position.X.ToString() + " Y:" + e.Position.Y.ToString();
		_messageListBox.Items.Add(log);
	}

	private void InitializeComponent()
	{
		_bluePanel = new Panel();
		_bluePanel.Name = "Blue";
		_bluePanel.BackColor = Color.Blue;
		_bluePanel.Size = new Size(200, 200);
		_bluePanel.Location = new Point(20, 20);

		_messageListBox = new ListBox();
		_messageListBox.Size = new Size(750, 310);
		_messageListBox.Location = new Point(20, 240);

		this.Controls.Add(_bluePanel);
		this.Controls.Add(_messageListBox);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcTouchEventProviderDemo
	Inherits Form
	Private _bluePanel As Panel
	Private _messageListBox As ListBox
	Private _gcTouchEventProvider As New GcTouchEventProvider()

	Public Sub New()
		InitializeComponent()

		' Enable all manipulation interaction modes.
		_gcTouchEventProvider.ManipulationMode = ManipulationModes.All

		' EnablePressAndHold and EnablePenFlicks property default value is True;

		' Attach GcTouchEventprovider to Panel.
		_gcTouchEventProvider.SetEnableTouchEvents(_bluePanel, True)

		AddHandler _gcTouchEventProvider.ManipulationStarted, AddressOf _gcTouchEventProvider_ManipulationStarted
	End Sub

	Private Sub _gcTouchEventProvider_ManipulationStarted(sender As Object, e As ManipulationStartedEventArgs)
		Dim log As String = "Target: " &amp; Convert.ToString(e.TargetControl.Name) &amp; " Event: ManipulationStarted" &amp; "  X: " &amp; e.Position.X.ToString() &amp; " Y:" &amp; e.Position.Y.ToString()
		_messageListBox.Items.Add(log)
	End Sub

	Private Sub InitializeComponent()
		_bluePanel = New Panel()
		_bluePanel.Name = "Blue"
		_bluePanel.BackColor = Color.Blue
		_bluePanel.Size = New Size(200, 200)
		_bluePanel.Location = New Point(20, 20)

		_messageListBox = New ListBox()
		_messageListBox.Size = New Size(750, 310)
		_messageListBox.Location = New Point(20, 240)

		Me.Controls.Add(_bluePanel)
		Me.Controls.Add(_messageListBox)
	End Sub
End Class</code></pre>

  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_Cumulative" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Cumulative">
          <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Cumulative.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_Cumulative">Cumulative</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the overall changes since the beginning of the manipulation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_PointerCount" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs.PointerCount">
          <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.PointerCount.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_PointerCount">PointerCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the count of touch points.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_PointerDeviceType" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs.PointerDeviceType">
          <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.PointerDeviceType.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_PointerDeviceType">PointerDeviceType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.PointerDeviceType.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_PointerDeviceType">PointerDeviceType</a> for the pointer device involved in the manipulation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_Position" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Position">
          <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Position.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_Position">Position</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the point from which the manipulation originated.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_ManipulationStartedEventArgs_Complete" data-uid="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Complete">
          <a class="xref" href="C1.Win.TouchToolKit.ManipulationStartedEventArgs.Complete.html#C1_Win_TouchToolKit_ManipulationStartedEventArgs_Complete">Complete()</a>
        </td>
        <td class="markdown level1 summary"><p>Completes the manipulation without inertia.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
