using Avalonia;
using Avalonia.Controls;
namespace MapControl
{
///
/// ContentControl placed on a MapPanel at a geographic location specified by the Location property.
///
public class MapContentControl : ContentControl
{
public static readonly StyledProperty AutoCollapseProperty =
MapPanel.AutoCollapseProperty.AddOwner();
public static readonly StyledProperty LocationProperty =
MapPanel.LocationProperty.AddOwner();
///
/// Gets/sets MapPanel.AutoCollapse.
///
public bool AutoCollapse
{
get => GetValue(AutoCollapseProperty);
set => SetValue(AutoCollapseProperty, value);
}
///
/// Gets/sets MapPanel.Location.
///
public Location Location
{
get => GetValue(LocationProperty);
set => SetValue(LocationProperty, value);
}
}
///
/// MapContentControl with a Pushpin Style.
///
public class Pushpin : MapContentControl
{
}
}