mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
File scoped namespaces
This commit is contained in:
parent
c14377f976
commit
65aba44af6
152 changed files with 11962 additions and 12115 deletions
|
|
@ -7,32 +7,31 @@ using Windows.UI.Xaml;
|
|||
using Microsoft.UI.Xaml;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
namespace MapControl;
|
||||
|
||||
/// <summary>
|
||||
/// A polygon defined by a collection of Locations.
|
||||
/// </summary>
|
||||
public partial class MapPolygon : MapPolypoint
|
||||
{
|
||||
public static readonly DependencyProperty LocationsProperty =
|
||||
DependencyPropertyHelper.Register<MapPolygon, IEnumerable<Location>>(nameof(Locations), null,
|
||||
(polygon, oldValue, newValue) => polygon.DataCollectionPropertyChanged(oldValue, newValue));
|
||||
|
||||
/// <summary>
|
||||
/// A polygon defined by a collection of Locations.
|
||||
/// Gets or sets the Locations that define the polygon points.
|
||||
/// </summary>
|
||||
public partial class MapPolygon : MapPolypoint
|
||||
{
|
||||
public static readonly DependencyProperty LocationsProperty =
|
||||
DependencyPropertyHelper.Register<MapPolygon, IEnumerable<Location>>(nameof(Locations), null,
|
||||
(polygon, oldValue, newValue) => polygon.DataCollectionPropertyChanged(oldValue, newValue));
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Locations that define the polygon points.
|
||||
/// </summary>
|
||||
#if WPF
|
||||
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
|
||||
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
|
||||
#endif
|
||||
public IEnumerable<Location> Locations
|
||||
{
|
||||
get => (IEnumerable<Location>)GetValue(LocationsProperty);
|
||||
set => SetValue(LocationsProperty, value);
|
||||
}
|
||||
public IEnumerable<Location> Locations
|
||||
{
|
||||
get => (IEnumerable<Location>)GetValue(LocationsProperty);
|
||||
set => SetValue(LocationsProperty, value);
|
||||
}
|
||||
|
||||
protected override void UpdateData()
|
||||
{
|
||||
UpdateData(Locations, true);
|
||||
}
|
||||
protected override void UpdateData()
|
||||
{
|
||||
UpdateData(Locations, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue