2024-05-25 00:13:14 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2025-01-01 18:57:55 +01:00
|
|
|
|
// Copyright © Clemens Fischer
|
2024-05-25 00:13:14 +02:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <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 =
|
|
|
|
|
|
DependencyPropertyHelper.AddOwner<MapContentControl, bool>(MapPanel.AutoCollapseProperty);
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly StyledProperty<Location> LocationProperty =
|
|
|
|
|
|
DependencyPropertyHelper.AddOwner<MapContentControl, Location>(MapPanel.LocationProperty);
|
|
|
|
|
|
|
|
|
|
|
|
/// <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
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|