Пример #1
0
        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);
        }
Пример #2
0
 public static View CreateLabelFor(string propertyName, Color color, string id = "", bool IsPassword = false)
 {
     iiLabel iiLabel = new iiLabel
     {
         TextColor = color.ToFormsColor(),
         BackgroundColor = Xamarin.Forms.Color.Transparent, //Color.iiEditTextColor.ToFormsColor(),
         ClassId = id,
         TranslationY = 2,
     };
     iiLabel.HorizontalOptions = LayoutOptions.FillAndExpand;
     iiLabel.SetBinding(iiLabel.TextProperty, propertyName);
     return iiLabel;
 }
Пример #3
0
        public static View CreateLabelFor(string propertyName, Color color, string id = "", bool IsPassword = false)
        {
            iiLabel iiLabel = new iiLabel
            {
                TextColor       = color.ToFormsColor(),
                BackgroundColor = Xamarin.Forms.Color.Transparent, //Color.iiEditTextColor.ToFormsColor(),
                ClassId         = id,
                TranslationY    = 2,
            };

            iiLabel.HorizontalOptions = LayoutOptions.FillAndExpand;
            iiLabel.SetBinding(iiLabel.TextProperty, propertyName);
            return(iiLabel);
        }
Пример #4
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;
 }
Пример #5
0
 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;
 }
Пример #6
0
        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);
        }
Пример #7
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);
        }
Пример #8
0
        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;
        }