@@ -17,14 +17,6 @@ public class ListView : ItemsView<Cell>, IListViewController, IElementConfigurat
17
17
{
18
18
readonly List < Element > _logicalChildren = new List < Element > ( ) ;
19
19
20
- #if NETSTANDARD1_0
21
- ReadOnlyCollection < Element > _readOnlyLogicalChildren ;
22
- internal override ReadOnlyCollection < Element > LogicalChildrenInternal => _readOnlyLogicalChildren ??
23
- ( _readOnlyLogicalChildren = new ReadOnlyCollection < Element > ( _logicalChildren ) ) ;
24
- #else
25
- internal override ReadOnlyCollection < Element > LogicalChildrenInternal => _logicalChildren . AsReadOnly ( ) ;
26
- #endif
27
-
28
20
public static readonly BindableProperty IsPullToRefreshEnabledProperty = BindableProperty . Create ( "IsPullToRefreshEnabled" , typeof ( bool ) , typeof ( ListView ) , false ) ;
29
21
30
22
public static readonly BindableProperty IsRefreshingProperty = BindableProperty . Create ( "IsRefreshing" , typeof ( bool ) , typeof ( ListView ) , false , BindingMode . TwoWay ) ;
@@ -60,7 +52,7 @@ public class ListView : ItemsView<Cell>, IListViewController, IElementConfigurat
60
52
public static readonly BindableProperty SeparatorColorProperty = BindableProperty . Create ( "SeparatorColor" , typeof ( Color ) , typeof ( ListView ) , Color . Default ) ;
61
53
62
54
public static readonly BindableProperty RefreshControlColorProperty = BindableProperty . Create ( nameof ( RefreshControlColor ) , typeof ( Color ) , typeof ( ListView ) , Color . Default ) ;
63
-
55
+
64
56
public static readonly BindableProperty HorizontalScrollBarVisibilityProperty = BindableProperty . Create ( nameof ( HorizontalScrollBarVisibility ) , typeof ( ScrollBarVisibility ) , typeof ( ListView ) , ScrollBarVisibility . Default ) ;
65
57
66
58
public static readonly BindableProperty VerticalScrollBarVisibilityProperty = BindableProperty . Create ( nameof ( VerticalScrollBarVisibility ) , typeof ( ScrollBarVisibility ) , typeof ( ListView ) , ScrollBarVisibility . Default ) ;
@@ -408,7 +400,7 @@ protected override void UnhookContent(Cell content)
408
400
if ( content == null || ! _logicalChildren . Contains ( content ) )
409
401
return ;
410
402
var index = _logicalChildren . IndexOf ( content ) ;
411
- _logicalChildren . Remove ( content ) ;
403
+ _logicalChildren . Remove ( content ) ;
412
404
content . Parent = null ;
413
405
VisualDiagnostics . OnChildRemoved ( this , content , index ) ;
414
406
@@ -653,4 +645,4 @@ protected override bool ValidateItemTemplate(DataTemplate template)
653
645
return true ;
654
646
}
655
647
}
656
- }
648
+ }
0 commit comments