using Avalonia; namespace MapControl { public partial class MapPanel { public static readonly AttachedProperty AutoCollapseProperty = DependencyPropertyHelper.RegisterAttached("AutoCollapse", typeof(MapPanel)); public static readonly AttachedProperty LocationProperty = DependencyPropertyHelper.RegisterAttached("Location", typeof(MapPanel)); public static readonly AttachedProperty BoundingBoxProperty = DependencyPropertyHelper.RegisterAttached("BoundingBox", typeof(MapPanel)); static MapPanel() { AffectsParentArrange(LocationProperty, BoundingBoxProperty); } public static MapBase GetParentMap(FrameworkElement element) { return (MapBase)element.GetValue(ParentMapProperty); } } }