Working with Intellisense
In VisualStudio ctrl+space to kick intellisense.
Move your cursor right between the quotes, as seen in the image below, and hit ctrl+space. Intellisense should pop up now suggesting to create an event handler.
Manual Solution
In general you could use the Xamarin documentation to find out how the event handler method should look like.
public event EventHandler Clicked
The event uses .NETs EventHandler so it will get an object sender and an EventArgs args as parameter.
Xamarin Button Clicked EventHandler
//You may have to change the Name depending on how you name that handler in xaml
void OnButtonClicked(object sender, EventArgs args)
{
}
Update:
Of course you have to add
using System;
at the top of your file in order to use EventArgs.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…