Exemplo n.º 1
0
        public static void AddButton(StackLayout container, ICommand command, double width,
                                     double height, string text = null, string image = null, double?fontSize = null, Color?backColor = null)
        {
            var bg     = ImgBtnGenerator.GetInstance();
            var button = bg.CreateButton(command, width, height, text, image, fontSize, backColor);

            container.Children.Add(button);
        }
Exemplo n.º 2
0
        public static ImgBtnGenerator GetInstance()
        {
            if (_buttonGeneraotr == null)
            {
                _buttonGeneraotr = new ImgBtnGenerator();
            }

            return(_buttonGeneraotr);
        }