예제 #1
0
        public RadioGroupExpression <ENUM> RadioButton([NotNull] RadioButton button)
        {
            var element = new RadioElement <ENUM>(_accessor, button, _group);

            _binder.AddElement(element);

            _lastElement = element;

            return(this);
        }
        public PropertyBindingExpression ToVisibilityOf(params Control[] controls)
        {
            foreach (Control control in controls)
            {
                IScreenElement element = _binder.FindElementForControl(control) ??
                                         new ScreenElement <Control>(control);

                element.BindVisibilityTo(_accessor);
                _binder.AddElement(element);
            }

            return(this);
        }