summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1026.cs
blob: 84d5553074b80fa2f4ec103456a7ac50eacb5b21 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using Xamarin.Forms.CustomAttributes;

namespace Xamarin.Forms.Controls
{
	[Preserve (AllMembers=true)]
	[Issue (IssueTracker.Github, 1026, "Label cropping", PlatformAffected.iOS | PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
	public class Issue1026 : ContentPage
	{
		public Issue1026 ()
		{
			BackgroundColor = Color.FromHex("#dae1eb");
			Content = 
				new ScrollView {
				Content =
					new StackLayout {
					Padding = new Thickness (0, 18),
					Spacing = 10,
					Orientation = StackOrientation.Vertical,
					Children = {
						new Button {
							BackgroundColor = Color.FromHex ("#006599"), 
							TextColor = Color.White,
							Text = "Subscribe with LinkedIn", 
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
							BorderRadius = 0,
						},
//						new Label {
//							Text = "or by email",
//							TextColor = Color.FromHex ("#666"),
//							XAlign = TextAlignment.Center,
//							Font = Font.SystemFontOfSize (NamedSize.Small),
//							WidthRequest = 262,
//							HorizontalOptions = LayoutOptions.Center,
//						},
						new Entry {
							Placeholder = "Professional email",
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
							Keyboard = Keyboard.Email,
						},
						new Entry {
							Placeholder = "Firstname",
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
						},
						new Entry {
							Placeholder = "Lastname",
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
						},
						new Entry {
							Placeholder = "Company",
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
						},
						new Entry {
							Placeholder = "Password",
							WidthRequest = 262,
							IsPassword = true,
							HorizontalOptions = LayoutOptions.Center,
						},
						new Entry {
							Placeholder = "Confirm password",
							WidthRequest = 262,
							IsPassword = true,
							HorizontalOptions = LayoutOptions.Center,
						},
						new Button {
							BackgroundColor = Color.FromHex ("#05addc"), 
							TextColor = Color.White,
							Text = "Create an account", 
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
							BorderRadius = 0,
						},
						new Label {
							Text = "by subscribing, you accept the general conditions.",
							TextColor = Color.White,
#pragma warning disable 618
							XAlign = TextAlignment.Center,
#pragma warning restore 618

#pragma warning disable 618
							Font = Font.SystemFontOfSize (NamedSize.Micro),
#pragma warning restore 618
							WidthRequest = 262,
							HorizontalOptions = LayoutOptions.Center,
						},
					},
				},

			};
		}
	}
}