Last active
December 24, 2019 09:28
-
-
Save jfversluis/51db613c655b539a89145c0ab2172f36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class FavFightersView : ContentPage | |
{ | |
public FavFightersView() | |
{ | |
InitializeComponent(); | |
BindingContext = new FavFightersViewModel(); | |
} | |
// !!!!! This is the important part, right here !!!!! | |
void SwipeItemView_Invoked(System.Object sender, System.EventArgs e) | |
{ | |
var selectedFighter = ((SwipeItemView)sender).BindingContext as Fighter; | |
DisplayAlert("Added favorite", $"{selectedFighter.Name} is added to your favorites!", "Thanks"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment