-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla39461.cs
40 lines (34 loc) · 1.18 KB
/
Bugzilla39461.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
using Xamarin.Forms.CustomAttributes;
using System.Text;
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, 39461, "[UWP] Labels within a ScrollView are blurred", PlatformAffected.WinRT)]
public class Bugzilla39461 : TestContentPage
{
protected override void Init()
{
StringBuilder text = new StringBuilder();
for (int i = 0; i < 10000; i++)
{
text.Append("text ");
}
var top = new ScrollView { Content = new Label { FontSize = 12, TextColor = Color.Red, Text = text.ToString() } };
AbsoluteLayout.SetLayoutFlags(top, AbsoluteLayoutFlags.All);
AbsoluteLayout.SetLayoutBounds(top, new Rectangle(0, 0, 1, 0.5));
var bottom = new Label { FontSize = 12, TextColor = Color.Red, Text = text.ToString() };
AbsoluteLayout.SetLayoutFlags(bottom, AbsoluteLayoutFlags.All);
AbsoluteLayout.SetLayoutBounds(bottom, new Rectangle(0, 1, 1, 0.5));
var layout = new AbsoluteLayout { Children = { top, bottom } };
Content = layout;
}
}
}