DependencyPropertyHelper

This commit is contained in:
ClemensFischer 2024-05-23 23:05:30 +02:00
parent 33c4f47864
commit 25dc5dc139
3 changed files with 0 additions and 3 deletions

View file

@ -33,7 +33,6 @@ namespace MapControl
TValue defaultValue = default,
Action<Control, TValue, TValue> changed = null,
bool inherits = false)
where TOwner : AvaloniaObject
{
var property = AvaloniaProperty.RegisterAttached<TOwner, Control, TValue>(name, defaultValue, inherits);

View file

@ -50,7 +50,6 @@ namespace MapControl
TValue defaultValue = default,
Action<FrameworkElement, TValue, TValue> changed = null,
bool inherits = false)
where TOwner : DependencyObject
{
var metadata = new FrameworkPropertyMetadata
{

View file

@ -33,7 +33,6 @@ namespace MapControl
TValue defaultValue = default,
Action<FrameworkElement, TValue, TValue> 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))