2025-08-19 19:43:02 +02:00
|
|
|
|
using Avalonia;
|
|
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
2024-05-25 00:13:14 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ContentControl placed on a MapPanel at a geographic location specified by the Location property.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class MapContentControl : ContentControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public static readonly StyledProperty<bool> AutoCollapseProperty =
|
2025-06-10 15:25:17 +02:00
|
|
|
|
MapPanel.AutoCollapseProperty.AddOwner<MapContentControl>();
|
2024-05-25 00:13:14 +02:00
|
|
|
|
|
|
|
|
|
|
public static readonly StyledProperty<Location> LocationProperty =
|
2025-06-10 15:25:17 +02:00
|
|
|
|
MapPanel.LocationProperty.AddOwner<MapContentControl>();
|
2024-05-25 00:13:14 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets/sets MapPanel.AutoCollapse.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool AutoCollapse
|
|
|
|
|
|
{
|
|
|
|
|
|
get => GetValue(AutoCollapseProperty);
|
|
|
|
|
|
set => SetValue(AutoCollapseProperty, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets/sets MapPanel.Location.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Location Location
|
|
|
|
|
|
{
|
|
|
|
|
|
get => GetValue(LocationProperty);
|
|
|
|
|
|
set => SetValue(LocationProperty, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// MapContentControl with a Pushpin Style.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Pushpin : MapContentControl
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|