# Routing Policy

All events in the C1TouchEventProvider are Routed Events. That means you can attach a C1TouchEventProvider to a container and you can use an event for children of the container.  To try the C1TouchEventProvider event add three buttons on a panel an

## Content

All events in the **C1TouchEventProvider** are Routed Events. That means you can attach a **C1TouchEventProvider** to a container and you can use an event for children of the container.

To try the **C1TouchEventProvider** event add three buttons on a panel and attach the **C1TouchEventProvider** event to the Panel using the following code below.

![routing policy events](https://cdn.mescius.io/document-site-files/images/b72f799f-5669-44a4-8119-5f3343d59999/images/routingpolicy.png)

[C#]

```csharp
using C1.Win.TouchToolKit;

private void Form1_Load(object sender, EventArgs e)
{
  c1TouchEventProvider1.SetEnableTouchEvents(panel1, true);
  c1TouchEventProvider1.Tapped += new EventHandler<TappedEventArgs>(c1TouchEventProvider1_Tapped);
}

private void c1TouchEventProvider1_Tapped(object sender, TappedEventArgs e)
{
  if (e.TargetControl != null)
    Console.WriteLine(e.TargetControl.Name);
}
```

[Visual Basic]

```vbnet
Imports C1.Win.TouchToolKit

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  C1TouchEventProvider1.SetEnableTouchEvents(Panel1, True)
End Sub

Private Sub C1TouchEventProvider1_Tapped(sender As System.Object, e As TappedEventArgs) Handles C1TouchEventProvider1.Tapped
  If Not e.TargetControl Is Nothing Then
    Console.WriteLine(e.TargetControl.Name)
  End If
End Sub
```

The C1TouchEventProvider.Tapped event occurs when you tap a button on the Panel.
