To make the control easier to interact with from the application itself, we'll need to add events for Like and Deny, as follows:
- Open Controls/SwiperControl.xaml.cs.
- Add two event declarations at the beginning of the class, as shown in the following code snippet:
public event EventHandler OnLike;
public event EventHandler OnDeny;
These are two standard event declarations with out-of-the-box event handlers.