Browse Source
Made Panel.IsItemsHost setter internal
pull/10454/head
Julien Lebosquain
4 years ago
No known key found for this signature in database
GPG Key ID: 1833CAD10ACC46FD
1 changed files with
1 additions and
16 deletions
-
src/Avalonia.Controls/Panel.cs
|
|
|
@ -25,16 +25,6 @@ namespace Avalonia.Controls |
|
|
|
public static readonly StyledProperty<IBrush?> BackgroundProperty = |
|
|
|
Border.BackgroundProperty.AddOwner<Panel>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="IsItemsHost"/> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly DirectProperty<Panel, bool> IsItemsHostProperty = |
|
|
|
AvaloniaProperty.RegisterDirect<Panel, bool>( |
|
|
|
nameof(IsItemsHost), |
|
|
|
o => o.IsItemsHost, |
|
|
|
(o, v) => o.IsItemsHost = v, |
|
|
|
unsetValue: false); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes static members of the <see cref="Panel"/> class.
|
|
|
|
/// </summary>
|
|
|
|
@ -43,7 +33,6 @@ namespace Avalonia.Controls |
|
|
|
AffectsRender<Panel>(BackgroundProperty); |
|
|
|
} |
|
|
|
|
|
|
|
private bool _isItemsHost; |
|
|
|
private EventHandler<ChildIndexChangedEventArgs>? _childIndexChanged; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -72,11 +61,7 @@ namespace Avalonia.Controls |
|
|
|
/// <summary>
|
|
|
|
/// Gets whether the <see cref="Panel"/> hosts the items created by an <see cref="ItemsPresenter"/>.
|
|
|
|
/// </summary>
|
|
|
|
public bool IsItemsHost |
|
|
|
{ |
|
|
|
get => _isItemsHost; |
|
|
|
set => SetAndRaise(IsItemsHostProperty, ref _isItemsHost, value); |
|
|
|
} |
|
|
|
public bool IsItemsHost { get; internal set; } |
|
|
|
|
|
|
|
event EventHandler<ChildIndexChangedEventArgs>? IChildIndexProvider.ChildIndexChanged |
|
|
|
{ |
|
|
|
|