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,34 +7,33 @@ using Windows.UI.Xaml;
|
|||
using Microsoft.UI.Xaml;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
namespace MapControl;
|
||||
|
||||
/// <summary>
|
||||
/// A multi-polygon defined by a collection of collections of Locations.
|
||||
/// Allows to draw filled polygons with holes.
|
||||
///
|
||||
/// A PolygonCollection (with ObservableCollection of Location elements) may be used
|
||||
/// for the Polygons property if collection changes of the property itself and its
|
||||
/// elements are both supposed to trigger UI updates.
|
||||
/// </summary>
|
||||
public partial class MapMultiPolygon : MapPolypoint
|
||||
{
|
||||
public static readonly DependencyProperty PolygonsProperty =
|
||||
DependencyPropertyHelper.Register<MapMultiPolygon, IEnumerable<IEnumerable<Location>>>(nameof(Polygons), null,
|
||||
(polygon, oldValue, newValue) => polygon.DataCollectionPropertyChanged(oldValue, newValue));
|
||||
|
||||
/// <summary>
|
||||
/// A multi-polygon defined by a collection of collections of Locations.
|
||||
/// Allows to draw filled polygons with holes.
|
||||
///
|
||||
/// A PolygonCollection (with ObservableCollection of Location elements) may be used
|
||||
/// for the Polygons property if collection changes of the property itself and its
|
||||
/// elements are both supposed to trigger UI updates.
|
||||
/// Gets or sets the Locations that define the multi-polygon points.
|
||||
/// </summary>
|
||||
public partial class MapMultiPolygon : MapPolypoint
|
||||
public IEnumerable<IEnumerable<Location>> Polygons
|
||||
{
|
||||
public static readonly DependencyProperty PolygonsProperty =
|
||||
DependencyPropertyHelper.Register<MapMultiPolygon, IEnumerable<IEnumerable<Location>>>(nameof(Polygons), null,
|
||||
(polygon, oldValue, newValue) => polygon.DataCollectionPropertyChanged(oldValue, newValue));
|
||||
get => (IEnumerable<IEnumerable<Location>>)GetValue(PolygonsProperty);
|
||||
set => SetValue(PolygonsProperty, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Locations that define the multi-polygon points.
|
||||
/// </summary>
|
||||
public IEnumerable<IEnumerable<Location>> Polygons
|
||||
{
|
||||
get => (IEnumerable<IEnumerable<Location>>)GetValue(PolygonsProperty);
|
||||
set => SetValue(PolygonsProperty, value);
|
||||
}
|
||||
|
||||
protected override void UpdateData()
|
||||
{
|
||||
UpdateData(Polygons);
|
||||
}
|
||||
protected override void UpdateData()
|
||||
{
|
||||
UpdateData(Polygons);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue