protected override object ProvideExpression (IServiceProvider provider, BindableObject obj, PropertyInfo prop)
 {
     var expression = new CallConverterExpression {
         Source = Source,
         Path = Path,
         Culture = Culture,
     };
     return expression.GetValue(obj ?? provider.GetService<IRootObjectProvider>().RootObject);
 }
Ejemplo n.º 2
0
        protected override object ProvideExpression(IServiceProvider provider, BindableObject obj, PropertyInfo prop)
        {
            var expression = new CallConverterExpression {
                Source  = Source,
                Path    = Path,
                Culture = Culture,
            };

            return(expression.GetValue(obj ?? provider.GetService <IRootObjectProvider>().RootObject));
        }
        protected override object ProvideExpression(IServiceProvider provider, BindableObject obj, PropertyInfo property)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }
            var expression = new CallConverterExpression {
                Source  = Source,
                Path    = Path,
                Culture = Culture,
            };

            return(expression.GetValue(obj ?? provider.GetService <IRootObjectProvider>().RootObject));
        }