XAML-Map-Control/MapControl/WPF/MapContentControl.WPF.cs

30 lines
861 B
C#
Raw Normal View History

2025-02-27 18:46:32 +01:00
using System.Windows;
namespace MapControl
{
public partial class MapContentControl
{
2021-01-17 21:39:42 +01:00
static MapContentControl()
2021-01-17 00:31:30 +01:00
{
2021-01-17 21:39:42 +01:00
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapContentControl), new FrameworkPropertyMetadata(typeof(MapContentControl)));
}
}
2021-01-17 21:39:42 +01:00
public partial class Pushpin
2021-01-17 21:39:42 +01:00
{
static Pushpin()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Pushpin), new FrameworkPropertyMetadata(typeof(Pushpin)));
}
2022-02-09 23:10:54 +01:00
2024-05-23 18:08:14 +02:00
public static readonly DependencyProperty CornerRadiusProperty =
DependencyPropertyHelper.Register<Pushpin, CornerRadius>(nameof(CornerRadius));
2022-02-09 23:10:54 +01:00
public CornerRadius CornerRadius
{
2022-08-06 10:40:59 +02:00
get => (CornerRadius)GetValue(CornerRadiusProperty);
set => SetValue(CornerRadiusProperty, value);
2022-02-09 23:10:54 +01:00
}
2021-01-17 21:39:42 +01:00
}
}