/// <summary> /// Draw a new dot to the ui graph and add a TapGesture to make the dots/values clickable. /// </summary> /// <param name="dot"></param> public void DrawNewDot(GraphDot dot) { // Add the click funconality to the dots dot.GraphicDot.GestureRecognizers.Add( new TapGestureRecognizer() { Command = new Command(() => { graphViewModel.SelectDot(dot.Index, graphViewModel.dotSelected); graphViewModel.dotSelected = dot.Index; }) }); GraphDrawArea.Children.Add(dot.GraphicDot); }