using System.Collections.Generic; #if WPF using System.Windows; #elif UWP using Windows.UI.Xaml; #elif WINUI using Microsoft.UI.Xaml; #endif namespace MapControl { /// /// A polyline defined by a collection of Locations. /// public class MapPolyline : MapPolypoint { public static readonly DependencyProperty LocationsProperty = DependencyPropertyHelper.Register>(nameof(Locations), null, (polyline, oldValue, newValue) => polyline.DataCollectionPropertyChanged(oldValue, newValue)); /// /// Gets or sets the Locations that define the polyline points. /// #if WPF [System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))] #endif public IEnumerable Locations { get => (IEnumerable)GetValue(LocationsProperty); set => SetValue(LocationsProperty, value); } protected override void UpdateData() { UpdateData(Locations, false); } } }