Example #1
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;
 }
 public View CreateLabelFor(string propertyName, LayoutOptions layout,string id ="")
 {
     iiLabel iiLabel = new iiLabel
     {
         TextColor = Color.White.ToFormsColor(),
         Text = propertyName,
         HorizontalOptions = layout,
         HeightRequest=45,
         FontSize=20,
         ClassId=id,
      };
     return iiLabel;
 }
        public View CreateLabelFor(string propertyName, LayoutOptions layout, string id = "")
        {
            iiLabel iiLabel = new iiLabel
            {
                TextColor         = Color.White.ToFormsColor(),
                Text              = propertyName,
                HorizontalOptions = layout,
                HeightRequest     = 45,
                FontSize          = 20,
                ClassId           = id,
            };

            return(iiLabel);
        }
Example #4
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);
        }
        public View CreateLabelFor(string propertyName, int height, int width, LayoutOptions layout, string id = "")
        {
            iiLabel iiLabel = new iiLabel
            {
                TextColor         = Color.White.ToFormsColor(),
                Text              = propertyName,
                HorizontalOptions = layout,
                HeightRequest     = height,
                WidthRequest      = width,
                FontSize          = 10,
                ClassId           = id,
                XAlign            = TextAlignment.Center,
                YAlign            = TextAlignment.Center,
            };

            return(iiLabel);
        }
Example #6
0
        public View CreateLabelFor(string propertyName, Color color, LayoutOptions layout, string id = "", bool isHeader = false)
        {
            iiLabel iiLabel = new iiLabel
            {

                TextColor = isHeader ? Color.White.ToFormsColor() : Color.DarkBlue.ToFormsColor(),
                Text = propertyName,
                HorizontalOptions = layout,
                HeightRequest = 25,
                WidthRequest = 130,
                FontSize = 10,
                ClassId = id,
                XAlign = TextAlignment.Center,
                YAlign = TextAlignment.Center,
                BackgroundColor = color.ToFormsColor(),
            };
            return iiLabel;
        }
        public View CreateGridLabelFor(string propertyName, Color color, LayoutOptions layout, string id = "", bool isHeader = false)
        {
            iiLabel iiLabel = new iiLabel
            {
                TextColor         = Color.DarkBlue.ToFormsColor(),
                Text              = propertyName,
                HorizontalOptions = layout,
                HeightRequest     = 35,
                WidthRequest      = 140,
                FontSize          = 10,
                ClassId           = id,
                XAlign            = TextAlignment.Center,
                YAlign            = TextAlignment.Center,
                BackgroundColor   = color.ToFormsColor(),
            };

            return(iiLabel);
        }
Example #8
0
 public View CreateLabelFor(string propertyName, LayoutOptions layout, string id = "")
 {
     iiLabel iiLabel = new iiLabel
     {
         TextColor = Color.White.ToFormsColor(),
         Text = propertyName,
         HorizontalOptions = layout,
         HeightRequest = 25,
         WidthRequest = 120,
         FontSize = 10,
         ClassId = id,
         XAlign = TextAlignment.Center,
         YAlign = TextAlignment.Center,
     };
     return iiLabel;
 }