Skip to content

Instantly share code, notes, and snippets.

@chrisntr
Created November 2, 2011 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisntr/06957a70c9981f806857 to your computer and use it in GitHub Desktop.
Save chrisntr/06957a70c9981f806857 to your computer and use it in GitHub Desktop.
var points = new List<PointF>();
points.Add (new PointF(1f, 1f));
points.Add (new PointF(2f, 2f));
points.Add (new PointF(3f, 3f));
points.Add (new PointF(4f, 4f));
var shareButton = new UIBarButtonItem(UIBarButtonSystemItem.Reply);
shareButton.Clicked += (sender, e) => {
var pointList = (from p in points select new PointF(p.X, p.Y)).ToArray();
Console.WriteLine ("Points = " + points.Count);
};
NavigationItem.RightBarButtonItem = shareButton;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment