Example #1
0
        public CustomStackedItem CreateTextBox(string name, Action <CustomTextBox> action)
        {
            if (Items.Count == 3)
            {
                throw new InvalidOperationException("You cannot create more than three items in the StackedItem");
            }

            var txt = new CustomTextBox(name);

            action?.Invoke(txt);

            Items.Add(txt);
            return(this);
        }