-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue4854.cs
42 lines (35 loc) · 1.32 KB
/
Issue4854.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
using System;
using System.Linq.Expressions;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 4854, "[macOS] Visual glitch when exiting the full screen with ScrollViewer", PlatformAffected.macOS)]
public class Issue4854 : TestContentPage
{
protected override void Init()
{
var gMain = new Grid { BackgroundColor = Color.LightBlue };
gMain.RowDefinitions.Add(new RowDefinition { Height = GridLength.Star });
gMain.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
var label = new Label
{
Text = "Enter full screen and exit and see the artifacts on the screen.",
FontSize = 14
};
var sl = new StackLayout { HorizontalOptions = LayoutOptions.Center, WidthRequest = 300, Padding = new Thickness(15) };
sl.Children.Add(label);
gMain.Children.Add(sl);
var button = new Button { Text = "Test", BackgroundColor = Color.Gray, HorizontalOptions = LayoutOptions.Center };
var g = new Grid { BackgroundColor = Color.LightGray, Padding = new Thickness(20) };
g.Children.Add(button);
Grid.SetRow(g, 1);
gMain.Children.Add(g);
Content = new ScrollView { Content = gMain, BackgroundColor = Color.LightGreen };
}
}
}