mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Avalonia MapBorderPanel
This commit is contained in:
parent
f6e27f231d
commit
c74c2b1fed
|
|
@ -24,7 +24,6 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="..\Shared\BindingHelper.cs" />
|
<Compile Remove="..\Shared\BindingHelper.cs" />
|
||||||
<Compile Remove="..\Shared\GeoImage.cs" />
|
<Compile Remove="..\Shared\GeoImage.cs" />
|
||||||
<Compile Remove="..\Shared\MapBorderPanel.cs" />
|
|
||||||
<Compile Remove="..\Shared\MapGraticule.cs" />
|
<Compile Remove="..\Shared\MapGraticule.cs" />
|
||||||
<Compile Remove="..\Shared\MapItem.cs" />
|
<Compile Remove="..\Shared\MapItem.cs" />
|
||||||
<Compile Remove="..\Shared\MapItemsControl.cs" />
|
<Compile Remove="..\Shared\MapItemsControl.cs" />
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@ using System.Windows;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
#elif WINUI
|
#elif WINUI
|
||||||
using Microsoft.UI.Xaml;
|
using Microsoft.UI.Xaml;
|
||||||
|
#elif AVALONIA
|
||||||
|
using DependencyProperty = Avalonia.AvaloniaProperty;
|
||||||
|
using FrameworkElement = Avalonia.Controls.Control;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace MapControl
|
namespace MapControl
|
||||||
|
|
@ -20,11 +23,11 @@ namespace MapControl
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MapBorderPanel : MapPanel
|
public class MapBorderPanel : MapPanel
|
||||||
{
|
{
|
||||||
public static readonly DependencyProperty BorderWidthProperty = DependencyProperty.Register(
|
public static readonly DependencyProperty BorderWidthProperty =
|
||||||
nameof(BorderWidth), typeof(double), typeof(MapBorderPanel), null);
|
DependencyPropertyHelper.Register<MapBorderPanel, double>(nameof(BorderWidth));
|
||||||
|
|
||||||
public static readonly DependencyProperty OnBorderProperty = DependencyProperty.RegisterAttached(
|
public static readonly DependencyProperty OnBorderProperty =
|
||||||
"OnBorder", typeof(bool), typeof(MapBorderPanel), null);
|
DependencyPropertyHelper.RegisterAttached<MapBorderPanel, bool>("OnBorder");
|
||||||
|
|
||||||
public double BorderWidth
|
public double BorderWidth
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue