Browse Source

Move IsDirect = true into DirectPropertyBase (#16256)

Co-authored-by: Max Katz <maxkatz6@outlook.com>
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
pull/16490/head
Heku 2 years ago
committed by GitHub
parent
commit
78935ba85c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Base/DirectProperty.cs
  2. 2
      src/Avalonia.Base/DirectPropertyBase.cs

2
src/Avalonia.Base/DirectProperty.cs

@ -32,7 +32,6 @@ namespace Avalonia
{
Getter = getter ?? throw new ArgumentNullException(nameof(getter));
Setter = setter;
IsDirect = true;
IsReadOnly = setter is null;
}
@ -52,7 +51,6 @@ namespace Avalonia
{
Getter = getter ?? throw new ArgumentNullException(nameof(getter));
Setter = setter;
IsDirect = true;
IsReadOnly = setter is null;
}

2
src/Avalonia.Base/DirectPropertyBase.cs

@ -28,6 +28,7 @@ namespace Avalonia
AvaloniaPropertyMetadata metadata)
: base(name, ownerType, ownerType, metadata)
{
IsDirect = true;
Owner = ownerType;
}
@ -43,6 +44,7 @@ namespace Avalonia
AvaloniaPropertyMetadata metadata)
: base(source, ownerType, metadata)
{
IsDirect = true;
Owner = ownerType;
}

Loading…
Cancel
Save