private void AddPolylineBtn_Clicked(object sender, Windows.UI.Xaml.RoutedEventArgs e) { var locs = GetSamplePoints(); MyMap.AddPolyline(locs, GetRandomColor(), 5); }