public static View CreateEntryFor(string propertyName, Color color, LayoutOptions layout)
        {
            Entry iiEditTextBox = new Entry
            {
                HorizontalOptions = LayoutOptions.FillAndExpand,
                TextColor         = color.ToFormsColor(),
                Placeholder       = propertyName,
                HeightRequest     = 300,
            };

            iiEditTextBox.SetBinding(Entry.TextProperty, propertyName);
            return(iiEditTextBox);
        }
Exemple #2
0
		public static View CreateEntryFor(string propertyName, Color color, string id = "", bool IsPassword = false)
		{
			iiTextBox iiEditTextBox = new iiTextBox
			{
                TextColor = Xamarin.Forms.Color.White,
				IsPassword = IsPassword,
				Placeholder = propertyName,
				BackgroundColor = Xamarin.Forms.Color.Transparent, //Color.iiEditTextColor.ToFormsColor(),
				ClassId = id,
				TranslationY = 2,
				WidthRequest = 200,
			};
            iiEditTextBox.SetBinding(Entry.TextProperty,propertyName);
			return iiEditTextBox;
		}
 public View CreateButtonFor(string propertyName, Color color, LayoutOptions layout)
 {
     Button iiButton = new Button
     {
         //HorizontalOptions = LayoutOptions.FillAndExpand,
         TextColor = color.ToFormsColor(),
         Text = "Send",
         BorderWidth = 10,
         WidthRequest = 100,
         HeightRequest = 50,
         HorizontalOptions = layout,
     };
     iiButton.SetBinding(Button.TextColorProperty, propertyName);
     return iiButton;
 }
        public View CreateButtonFor(string propertyName, Color color, LayoutOptions layout)
        {
            Button iiButton = new Button
            {
                //HorizontalOptions = LayoutOptions.FillAndExpand,
                TextColor         = color.ToFormsColor(),
                Text              = "Send",
                BorderWidth       = 10,
                WidthRequest      = 100,
                HeightRequest     = 50,
                HorizontalOptions = layout,
            };

            iiButton.SetBinding(Button.TextColorProperty, propertyName);
            return(iiButton);
        }
Exemple #5
0
        public static View CreateEntryFor(string propertyName, Color color, string id = "", bool IsPassword = false)
        {
            iiTextBox iiEditTextBox = new iiTextBox
            {
                TextColor       = Xamarin.Forms.Color.White,
                IsPassword      = IsPassword,
                Placeholder     = propertyName,
                BackgroundColor = Xamarin.Forms.Color.Transparent,                 //Color.iiEditTextColor.ToFormsColor(),
                ClassId         = id,
                TranslationY    = 2,
                WidthRequest    = 200,
            };

            iiEditTextBox.SetBinding(Entry.TextProperty, propertyName);
            return(iiEditTextBox);
        }
        public static View CreateEntryFor(string propertyName, Color color, LayoutOptions layout)
        {
            Entry iiEditTextBox = new Entry
            {
                HorizontalOptions = LayoutOptions.FillAndExpand,
                TextColor = color.ToFormsColor(),
                Placeholder = propertyName,
                HeightRequest = 300,

            };
            iiEditTextBox.SetBinding(Entry.TextProperty, propertyName);
            return iiEditTextBox;
        }