From 48f1638b457b59d72e4a017a0462bc76c3d0ca11 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Wed, 13 Jan 2021 20:54:05 +0100 Subject: [PATCH] Fixed MapPath --- MapControl/Shared/MapPath.cs | 9 --------- MapControl/UWP/MapPath.UWP.cs | 4 ---- MapControl/WPF/MapPath.WPF.cs | 2 -- 3 files changed, 15 deletions(-) diff --git a/MapControl/Shared/MapPath.cs b/MapControl/Shared/MapPath.cs index f0b19871..d98a8744 100644 --- a/MapControl/Shared/MapPath.cs +++ b/MapControl/Shared/MapPath.cs @@ -29,15 +29,6 @@ namespace MapControl MapPanel.InitMapElement(this); } - /// - /// Wrapper for the MapPanel.AutoCollapse attached property. - /// - public bool AutoCollapse - { - get { return (bool)GetValue(AutoCollapseProperty); } - set { SetValue(AutoCollapseProperty, value); } - } - /// /// Gets or sets a Location that is used as /// - either the origin point of a geometry specified in cartesian map units (meters) diff --git a/MapControl/UWP/MapPath.UWP.cs b/MapControl/UWP/MapPath.UWP.cs index 80de4a76..2822eba7 100644 --- a/MapControl/UWP/MapPath.UWP.cs +++ b/MapControl/UWP/MapPath.UWP.cs @@ -14,10 +14,6 @@ namespace MapControl { public partial class MapPath : Path { - public static readonly DependencyProperty AutoCollapseProperty = DependencyProperty.Register( - nameof(AutoCollapse), typeof(bool), typeof(MapPath), - new PropertyMetadata(false, (o, e) => MapPanel.SetAutoCollapse((FrameworkElement)o, (bool)e.NewValue))); - #region Methods used only by derived classes MapPolyline and MapPolygon protected void DataCollectionPropertyChanged(DependencyPropertyChangedEventArgs e) diff --git a/MapControl/WPF/MapPath.WPF.cs b/MapControl/WPF/MapPath.WPF.cs index bed810a7..7e79ad85 100644 --- a/MapControl/WPF/MapPath.WPF.cs +++ b/MapControl/WPF/MapPath.WPF.cs @@ -14,8 +14,6 @@ namespace MapControl { public partial class MapPath : Shape, IWeakEventListener { - public static readonly DependencyProperty AutoCollapseProperty = MapPanel.AutoCollapseProperty.AddOwner(typeof(MapPath)); - public static readonly DependencyProperty DataProperty = Path.DataProperty.AddOwner(typeof(MapPath)); public Geometry Data