Example #1
0
        private IDataBinding CreateInvalidDataBinding(Exception exception)
        {
            var b = new InvalidDataBinding(exception);

            AddBehaviors(b, DataContext.Empty);
            return(b);
        }
Example #2
0
        private static IDataBinding CreateInvalidaDataBinding(IDataContext dataContext)
        {
            var exception       = dataContext.GetData(ExceptionConstant);
            var bindingProvider = dataContext.GetData(ProviderConstant);

            if (exception == null)
            {
                exception = BindingExceptionManager.InvalidBindingMember(typeof(object), "undefined");
            }
            var b = new InvalidDataBinding(exception);

            if (bindingProvider != null)
            {
                bindingProvider.AddBehaviors(b, dataContext);
            }
            return(b);
        }