diff --git a/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs b/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs index 371280f6..4ce3d97b 100644 --- a/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs +++ b/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs @@ -33,7 +33,6 @@ namespace MapControl TValue defaultValue = default, Action changed = null, bool inherits = false) - where TOwner : AvaloniaObject { var property = AvaloniaProperty.RegisterAttached(name, defaultValue, inherits); diff --git a/MapControl/WPF/DependencyPropertyHelper.WPF.cs b/MapControl/WPF/DependencyPropertyHelper.WPF.cs index 79b30385..ed879683 100644 --- a/MapControl/WPF/DependencyPropertyHelper.WPF.cs +++ b/MapControl/WPF/DependencyPropertyHelper.WPF.cs @@ -50,7 +50,6 @@ namespace MapControl TValue defaultValue = default, Action changed = null, bool inherits = false) - where TOwner : DependencyObject { var metadata = new FrameworkPropertyMetadata { diff --git a/MapControl/WinUI/DependencyPropertyHelper.WinUI.cs b/MapControl/WinUI/DependencyPropertyHelper.WinUI.cs index 00c29088..469b2056 100644 --- a/MapControl/WinUI/DependencyPropertyHelper.WinUI.cs +++ b/MapControl/WinUI/DependencyPropertyHelper.WinUI.cs @@ -33,7 +33,6 @@ namespace MapControl TValue defaultValue = default, Action changed = null, bool inherits = false) // unused in WinUI/UWP - where TOwner : DependencyObject { var metadata = changed != null ? new PropertyMetadata(defaultValue, (o, e) => changed((FrameworkElement)o, (TValue)e.OldValue, (TValue)e.NewValue))