public object TryGetBinding(IBindingName name, IBindingKey key, object[] extras)
        {
            ValueBindingContext ret = null;
            object theValue         = null;

            if (GetBinding(name, out ret))
            {
                if (!ret.Get(key, this, out theValue, extras))
                {
                    theValue = null;
                }
            }

            if (theValue == null)
            {
                foreach (var fallback in m_fallbacks)
                {
                    theValue = fallback(name, key, extras);

                    if (theValue != null)
                    {
                        break;
                    }
                }
            }

            return(theValue);
        }
Beispiel #2
0
        object TryGetBinding(IBindingName name, IBindingKey key, object[] extras)
        {
            ValueBindingContext ret = null;

            if (GetBinding(name, out ret))
            {
                object theValue = null;
                if (ret.Get(key, this, out theValue, extras))
                {
                    return(theValue);
                }
            }

            return(null);
        }