DependencyPropertyHelper

This commit is contained in:
ClemensFischer 2024-05-23 19:21:28 +02:00
parent bc12b388de
commit b7afd27c91
7 changed files with 21 additions and 19 deletions

View file

@ -31,8 +31,8 @@ namespace MapControl
public static AttachedProperty<TValue> RegisterAttached<TOwner, TValue>(
string name,
TValue defaultValue = default,
bool inherits = false,
Action<Control, TValue, TValue> changed = null)
Action<Control, TValue, TValue> changed = null,
bool inherits = false)
where TOwner : AvaloniaObject
{
var property = AvaloniaProperty.RegisterAttached<TOwner, Control, TValue>(name, defaultValue, inherits);