// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control // © 2017 Clemens Fischer // Licensed under the Microsoft Public License (Ms-PL) using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace MapControl { /// /// Manages a collection of selectable items on a Map. Uses MapItem as item container class. /// public class MapItemsControl : ListBox { public MapItemsControl() { DefaultStyleKey = typeof(MapItemsControl); MapPanel.AddParentMapHandlers(this); } protected override DependencyObject GetContainerForItemOverride() { return new MapItem(); } protected override bool IsItemItsOwnContainerOverride(object item) { return item is MapItem; } } }