From 3043fb73b50aafe398f42d341a387e7df0e16309 Mon Sep 17 00:00:00 2001 From: Andrei Nitescu Date: Thu, 10 Jan 2019 19:52:11 +0200 Subject: [PATCH] Map with ItemsSource and ItemTemplate (#4269) fixes #1708 --- Xamarin.Forms.Controls/CoreGallery.cs | 1 + .../GalleryPages/MapWithItemsSourceGallery.xaml | 35 +++ .../GalleryPages/MapWithItemsSourceGallery.xaml.cs | 155 +++++++++++ .../Xamarin.Forms.Controls.csproj | 66 +++++ Xamarin.Forms.Core.UnitTests/MapTests.cs | 308 ++++++++++++++++++++- Xamarin.Forms.Maps/Map.cs | 114 ++++++++ Xamarin.Forms.Maps/Pin.cs | 2 +- 7 files changed, 679 insertions(+), 2 deletions(-) create mode 100644 Xamarin.Forms.Controls/GalleryPages/MapWithItemsSourceGallery.xaml create mode 100644 Xamarin.Forms.Controls/GalleryPages/MapWithItemsSourceGallery.xaml.cs diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs index 0d8f322..daf969d 100644 --- a/Xamarin.Forms.Controls/CoreGallery.cs +++ b/Xamarin.Forms.Controls/CoreGallery.cs @@ -359,6 +359,7 @@ namespace Xamarin.Forms.Controls new GalleryPageFactory(() => new ListRefresh(), "ListView.PullToRefresh"), new GalleryPageFactory(() => new ListViewDemoPage(), "ListView Demo Gallery - Legacy"), new GalleryPageFactory(() => new MapGallery(), "Map Gallery - Legacy"), + new GalleryPageFactory(() => new MapWithItemsSourceGallery(), "Map With ItemsSource Gallery - Legacy"), new GalleryPageFactory(() => new MinimumSizeGallery(), "MinimumSize Gallery - Legacy"), new GalleryPageFactory(() => new MultiGallery(), "Multi Gallery - Legacy"), new GalleryPageFactory(() => new NavigationMenuGallery(), "NavigationMenu Gallery - Legacy"), diff --git a/Xamarin.Forms.Controls/GalleryPages/MapWithItemsSourceGallery.xaml b/Xamarin.Forms.Controls/GalleryPages/MapWithItemsSourceGallery.xaml new file mode 100644 index 0000000..e48b7a9 --- /dev/null +++ b/Xamarin.Forms.Controls/GalleryPages/MapWithItemsSourceGallery.xaml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + +