-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue1025.cs
33 lines (30 loc) · 1.13 KB
/
Issue1025.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
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls.Issues
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Github, 1025, "StackLayout broken when image missing", PlatformAffected.iOS, NavigationBehavior.PushModalAsync)]
public class Issue1025 : ContentPage
{
public Issue1025 ()
{
var instructions = new Label { Text = "The StackLayout below should contain two buttons and some text. " +
"If the StackLayout appears empty, this test has failed." };
var layout = new StackLayout {
BackgroundColor = Color.FromHex("#dae1eb"),
Orientation = StackOrientation.Vertical,
Children = {
new Image {},
new Label {Text = "Lorem ipsum dolor" },
new Label {Text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."},
new Button {BackgroundColor = Color.FromHex ("#fec240"), Text = "Create an account" },
new Button {BackgroundColor = Color.FromHex ("#04acdb"), Text = "Login" },
}
};
Content = new StackLayout
{
Children = { instructions, layout }
};
}
}
}