Exemplo n.º 1
0
 public static View CreateEntryFor(string propertyName, Color color, string id="", bool IsPassword = false)
 {
     iiTextBox iiEditTextBox = new iiTextBox
     {
         TextColor = color.ToFormsColor(),
         IsPassword = IsPassword,
         Placeholder = propertyName,
         BackgroundColor = Xamarin.Forms.Color.Transparent, //Color.iiEditTextColor.ToFormsColor(),
         ClassId = id,
         TranslationY = 2,     
     };
     iiEditTextBox.HorizontalOptions = LayoutOptions.FillAndExpand;
     iiEditTextBox.SetBinding(iiTextBox.TextProperty, propertyName);
     return iiEditTextBox;
 }
Exemplo n.º 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;
		}
Exemplo n.º 3
0
        public static View CreateEntryFor(string propertyName, Color color, string id = "", bool IsPassword = false)
        {
            iiTextBox iiEditTextBox = new iiTextBox
            {
                TextColor       = color.ToFormsColor(),
                IsPassword      = IsPassword,
                Placeholder     = propertyName,
                BackgroundColor = Xamarin.Forms.Color.Transparent, //Color.iiEditTextColor.ToFormsColor(),
                ClassId         = id,
                TranslationY    = 2,
            };

            iiEditTextBox.HorizontalOptions = LayoutOptions.FillAndExpand;
            iiEditTextBox.SetBinding(iiTextBox.TextProperty, propertyName);
            return(iiEditTextBox);
        }
Exemplo n.º 4
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);
        }