2016-03-22 23:02:25 +03:00
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-22 23:02:25 +03:00
|
|
|
|
2018-11-07 01:00:08 +03:00
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
2016-03-22 23:02:25 +03:00
|
|
|
{
|
|
|
|
[Preserve (AllMembers=true)]
|
|
|
|
[Issue (IssueTracker.Github, 1026, "Label cropping", PlatformAffected.iOS | PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
|
|
|
|
public class Issue1026 : ContentPage
|
|
|
|
{
|
|
|
|
public Issue1026 ()
|
|
|
|
{
|
2019-01-04 21:34:07 +03:00
|
|
|
var instructions = new Label { Text = "The label at the bottom of the form should read 'by subscribing," +
|
|
|
|
" you accept the general conditions.'; if the label is truncated, this test has failed." };
|
|
|
|
|
|
|
|
var scrollView =
|
2016-03-22 23:02:25 +03:00
|
|
|
new ScrollView {
|
2019-01-04 21:34:07 +03:00
|
|
|
BackgroundColor = Color.FromHex("#dae1eb"),
|
|
|
|
Content =
|
2016-03-22 23:02:25 +03:00
|
|
|
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,
|
2018-02-08 20:55:08 +03:00
|
|
|
#pragma warning disable 0618
|
2016-03-22 23:02:25 +03:00
|
|
|
BorderRadius = 0,
|
2018-02-08 20:55:08 +03:00
|
|
|
#pragma warning restore
|
2016-03-22 23:02:25 +03:00
|
|
|
},
|
|
|
|
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,
|
2018-02-08 20:55:08 +03:00
|
|
|
#pragma warning disable 0618
|
2016-03-22 23:02:25 +03:00
|
|
|
BorderRadius = 0,
|
2018-02-08 20:55:08 +03:00
|
|
|
#pragma warning restore
|
2016-03-22 23:02:25 +03:00
|
|
|
},
|
|
|
|
new Label {
|
|
|
|
Text = "by subscribing, you accept the general conditions.",
|
|
|
|
TextColor = Color.White,
|
2016-04-11 19:50:28 +03:00
|
|
|
#pragma warning disable 618
|
2016-03-22 23:02:25 +03:00
|
|
|
XAlign = TextAlignment.Center,
|
2016-04-11 19:50:28 +03:00
|
|
|
#pragma warning restore 618
|
|
|
|
|
|
|
|
#pragma warning disable 618
|
2016-03-22 23:02:25 +03:00
|
|
|
Font = Font.SystemFontOfSize (NamedSize.Micro),
|
2016-04-11 19:50:28 +03:00
|
|
|
#pragma warning restore 618
|
2016-03-22 23:02:25 +03:00
|
|
|
WidthRequest = 262,
|
|
|
|
HorizontalOptions = LayoutOptions.Center,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|
2019-01-04 21:34:07 +03:00
|
|
|
|
|
|
|
Content = new StackLayout { Children = { instructions, scrollView } };
|
2016-03-22 23:02:25 +03:00
|
|
|
}
|
|
|
|
}
|
2018-11-07 01:00:08 +03:00
|
|
|
}
|