Exemplo n.º 1
0
        public BindableBool Set(T lookup, bool value)
        {
            BindableBool bindable = GetBindable <bool>(lookup) as BindableBool;

            if (bindable == null)
            {
                bindable = new BindableBool(value);
                addBindable(lookup, bindable);
            }
            else
            {
                bindable.Value = value;
            }

            return(bindable);
        }
Exemplo n.º 2
0
        public BindableBool Set(T lookup, bool value)
        {
            BindableBool bindable = GetOriginalBindable <bool>(lookup) as BindableBool;

            if (bindable == null)
            {
                bindable = new BindableBool(value);
                AddBindable(lookup, bindable);
            }
            else
            {
                bindable.Value = value;
            }

            bindable.Default = value;

            return(bindable);
        }