diff --git a/MapControl/Shared/MapBorderPanel.cs b/MapControl/Shared/MapBorderPanel.cs index 9d96fad5..2ae140e3 100644 --- a/MapControl/Shared/MapBorderPanel.cs +++ b/MapControl/Shared/MapBorderPanel.cs @@ -23,7 +23,7 @@ namespace MapControl public static readonly DependencyProperty BorderWidthProperty = DependencyProperty.Register( nameof(BorderWidth), typeof(double), typeof(MapBorderPanel), null); - public static readonly DependencyProperty OnBorderProperty = DependencyProperty.Register( + public static readonly DependencyProperty OnBorderProperty = DependencyProperty.RegisterAttached( "OnBorder", typeof(bool), typeof(MapBorderPanel), null); public double BorderWidth