In ESL, developers can add an event handler in code behind classes. You can through Project Explorer, open a *.cs file by double click.
Or click at the top right of XAML editor to view the CS code.
The following snapshot is a default C# code templates.