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