mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Avalonia MapBorderPanel
This commit is contained in:
parent
f6e27f231d
commit
c74c2b1fed
2 changed files with 7 additions and 5 deletions
|
|
@ -8,6 +8,9 @@ using System.Windows;
|
|||
using Windows.UI.Xaml;
|
||||
#elif WINUI
|
||||
using Microsoft.UI.Xaml;
|
||||
#elif AVALONIA
|
||||
using DependencyProperty = Avalonia.AvaloniaProperty;
|
||||
using FrameworkElement = Avalonia.Controls.Control;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
|
|
@ -20,11 +23,11 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public class MapBorderPanel : MapPanel
|
||||
{
|
||||
public static readonly DependencyProperty BorderWidthProperty = DependencyProperty.Register(
|
||||
nameof(BorderWidth), typeof(double), typeof(MapBorderPanel), null);
|
||||
public static readonly DependencyProperty BorderWidthProperty =
|
||||
DependencyPropertyHelper.Register<MapBorderPanel, double>(nameof(BorderWidth));
|
||||
|
||||
public static readonly DependencyProperty OnBorderProperty = DependencyProperty.RegisterAttached(
|
||||
"OnBorder", typeof(bool), typeof(MapBorderPanel), null);
|
||||
public static readonly DependencyProperty OnBorderProperty =
|
||||
DependencyPropertyHelper.RegisterAttached<MapBorderPanel, bool>("OnBorder");
|
||||
|
||||
public double BorderWidth
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue