2025-08-12 11:33:39 +02:00
|
|
|
|
using System.Windows;
|
2012-11-23 16:16:09 +01:00
|
|
|
|
|
2026-04-13 17:14:49 +02:00
|
|
|
|
namespace MapControl;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class MapPanel
|
2012-11-23 16:16:09 +01:00
|
|
|
|
{
|
2026-04-13 17:14:49 +02:00
|
|
|
|
public static readonly DependencyProperty AutoCollapseProperty =
|
|
|
|
|
|
DependencyPropertyHelper.RegisterAttached< bool>("AutoCollapse", typeof(MapPanel));
|
2024-05-27 11:05:22 +02:00
|
|
|
|
|
2026-04-13 17:14:49 +02:00
|
|
|
|
public static readonly DependencyProperty LocationProperty =
|
|
|
|
|
|
DependencyPropertyHelper.RegisterAttached<Location>("Location", typeof(MapPanel), null,
|
|
|
|
|
|
FrameworkPropertyMetadataOptions.AffectsParentArrange);
|
2024-05-27 11:05:22 +02:00
|
|
|
|
|
2026-04-13 17:14:49 +02:00
|
|
|
|
public static readonly DependencyProperty BoundingBoxProperty =
|
|
|
|
|
|
DependencyPropertyHelper.RegisterAttached<BoundingBox>("BoundingBox", typeof(MapPanel), null,
|
|
|
|
|
|
FrameworkPropertyMetadataOptions.AffectsParentArrange);
|
2024-05-27 11:05:22 +02:00
|
|
|
|
|
2026-04-13 17:14:49 +02:00
|
|
|
|
public static readonly DependencyProperty MapRectProperty =
|
|
|
|
|
|
DependencyPropertyHelper.RegisterAttached<Rect?>("MapRect", typeof(MapPanel), null,
|
|
|
|
|
|
FrameworkPropertyMetadataOptions.AffectsParentArrange);
|
2026-01-28 15:55:30 +01:00
|
|
|
|
|
2026-04-13 17:14:49 +02:00
|
|
|
|
public static MapBase GetParentMap(FrameworkElement element)
|
|
|
|
|
|
{
|
|
|
|
|
|
return (MapBase)element.GetValue(ParentMapProperty);
|
2012-11-23 16:16:09 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|