Fixed MapPath

This commit is contained in:
ClemensF 2021-01-13 20:54:05 +01:00
parent fead75ffb9
commit 48f1638b45
3 changed files with 0 additions and 15 deletions

View file

@ -29,15 +29,6 @@ namespace MapControl
MapPanel.InitMapElement(this); MapPanel.InitMapElement(this);
} }
/// <summary>
/// Wrapper for the MapPanel.AutoCollapse attached property.
/// </summary>
public bool AutoCollapse
{
get { return (bool)GetValue(AutoCollapseProperty); }
set { SetValue(AutoCollapseProperty, value); }
}
/// <summary> /// <summary>
/// Gets or sets a Location that is used as /// Gets or sets a Location that is used as
/// - either the origin point of a geometry specified in cartesian map units (meters) /// - either the origin point of a geometry specified in cartesian map units (meters)

View file

@ -14,10 +14,6 @@ namespace MapControl
{ {
public partial class MapPath : Path 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 #region Methods used only by derived classes MapPolyline and MapPolygon
protected void DataCollectionPropertyChanged(DependencyPropertyChangedEventArgs e) protected void DataCollectionPropertyChanged(DependencyPropertyChangedEventArgs e)

View file

@ -14,8 +14,6 @@ namespace MapControl
{ {
public partial class MapPath : Shape, IWeakEventListener 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 static readonly DependencyProperty DataProperty = Path.DataProperty.AddOwner(typeof(MapPath));
public Geometry Data public Geometry Data