mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-01 14:20:12 +01:00
DependencyPropertyHelper
This commit is contained in:
parent
33c4f47864
commit
25dc5dc139
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue