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);
 }
Exemple #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));
        }