From b6701f63fd13f09165cbe0c599ddacfb55b15730 Mon Sep 17 00:00:00 2001 From: Julien Lebosquain Date: Tue, 28 Feb 2023 17:07:16 +0100 Subject: [PATCH] Made Panel.IsItemsHost setter internal --- src/Avalonia.Controls/Panel.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Avalonia.Controls/Panel.cs b/src/Avalonia.Controls/Panel.cs index 035e775af7..eff6603727 100644 --- a/src/Avalonia.Controls/Panel.cs +++ b/src/Avalonia.Controls/Panel.cs @@ -25,16 +25,6 @@ namespace Avalonia.Controls public static readonly StyledProperty BackgroundProperty = Border.BackgroundProperty.AddOwner(); - /// - /// Defines the property. - /// - public static readonly DirectProperty IsItemsHostProperty = - AvaloniaProperty.RegisterDirect( - nameof(IsItemsHost), - o => o.IsItemsHost, - (o, v) => o.IsItemsHost = v, - unsetValue: false); - /// /// Initializes static members of the class. /// @@ -43,7 +33,6 @@ namespace Avalonia.Controls AffectsRender(BackgroundProperty); } - private bool _isItemsHost; private EventHandler? _childIndexChanged; /// @@ -72,11 +61,7 @@ namespace Avalonia.Controls /// /// Gets whether the hosts the items created by an . /// - public bool IsItemsHost - { - get => _isItemsHost; - set => SetAndRaise(IsItemsHostProperty, ref _isItemsHost, value); - } + public bool IsItemsHost { get; internal set; } event EventHandler? IChildIndexProvider.ChildIndexChanged {