-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla44980.cs
47 lines (43 loc) · 1.01 KB
/
Bugzilla44980.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Collections.Generic;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[NUnit.Framework.Category(Core.UITests.UITestCategories.Bugzilla)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 44980, "ActivityIndicator disappears when scrolling", PlatformAffected.iOS)]
public class Bugzilla44980 : TestContentPage
{
protected override void Init()
{
var list = new List<string>();
for (var i = 0; i < 100; i++)
list.Add(i.ToString());
Content = new CListView
{
ItemsSource = list,
ItemTemplate = new DataTemplate(() =>
{
var activityIndicator = new ActivityIndicator
{
IsRunning = true,
IsVisible = true
};
return new ViewCell { View = activityIndicator };
})
};
}
}
public class CListView : ListView
{
public CListView() : base(ListViewCachingStrategy.RecycleElement)
{
}
}
}