Created
January 14, 2015 19:39
-
-
Save detroitpro/c0701f4b306177c6b80b to your computer and use it in GitHub Desktop.
Xamarin Forms 1.3 Context Action
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
//------ Creating Contact Action 1 Start --------// | |
var moreAction = new MenuItem { Text = "More" }; | |
moreAction.SetBinding (MenuItem.CommandParameterProperty, new Binding (".")); | |
moreAction.Clicked += async (sender, e) => { | |
await Task.Run (() => { | |
var mi = ((MenuItem)sender); | |
Debug.WriteLine ("More Context Action clicked: " + mi.CommandParameter); | |
}); | |
}; | |
ContextActions.Add (moreAction); | |
//------ Creating Contact Action 1 Start --------// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment