public App () { EmailEntry = new FloatingTextEntry (); EmailEntry.Placeholder = "Email"; EmailEntry.AccentColor = Color.FromHex("#FFC107"); EmailEntry.InactiveAccentColor = Color.FromHex ("#1976D2"); EmailEntry.TextColor = Color.Purple; EmailEntry.ErrorColor = Color.Red; EmailEntry.ErrorText = "Bad Email"; EmailEntry.Validator = FloatingTextEntry.EmailValidator; PassEntry = new FloatingTextEntry (); PassEntry.Placeholder = "Password"; PassEntry.AccentColor = Color.FromHex("#FFC107"); PassEntry.InactiveAccentColor = Color.FromHex ("#1976D2"); PassEntry.TextColor = Color.Purple; PassEntry.IsPassword = true; PassEntry.ErrorColor = Color.Red; PassEntry.ErrorText = "Bad Password"; PassEntry.Validator = (string input) => { return !string.IsNullOrWhiteSpace (input); }; Button = new StatesButton () { Text = "Hello", NormalImage = "boton", DisableImage = "boton_disabled", PressedImage = "boton_press", TextColor = Color.White }; // The root page of your application MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Padding = new Thickness(20,0), Children = { EmailEntry, PassEntry, Button } } }; }