public static T Resource <T>(this IBindingSyntaxContext context, string name) { return((T)BindingServiceProvider .ResourceResolver .ResolveObject(name, MugenMvvmToolkit.Models.DataContext.Empty, true) .Value); }
public static T Resource <T>(this IBindingSyntaxContext context, string name, Expression <Func <T> > member) { var value = BindingServiceProvider .ResourceResolver .ResolveObject(name, MugenMvvmToolkit.Models.DataContext.Empty, true) .Value; return((T)BindingExtensions.GetValueFromPath(value, member.GetMemberInfo().Name)); }
public static T Self <T>(this IBindingSyntaxContext context) { return(MethodNotSupported <T>()); }
public static T Element <T>(this IBindingSyntaxContext context, object elementId) { return(MethodNotSupported <T>()); }
public static T Relative <T>(this IBindingSyntaxContext context, uint level) { return(MethodNotSupported <T>()); }
public static T OneTime <T>(this IBindingSyntaxContext context, T value) { return(MethodNotSupported <T>()); }
public static IEnumerable <object> GetErrors(this IBindingSyntaxContext context, params object[] args) { return(MethodNotSupported <IEnumerable <object> >()); }
public static T ResourceMethod <T>(this IBindingSyntaxContext context, string name, params object[] args) { return((T)ResourceMethodImpl(name, Empty.Array <Type>(), MugenMvvmToolkit.Models.DataContext.Empty, args)); }
public static IDataBinding Binding(this IBindingSyntaxContext context) { return(MethodNotSupported <IDataBinding>()); }
public static T Source <TTarget, T>(this IBindingSyntaxContext <TTarget, T> context) where TTarget : class { return(MethodNotSupported <T>()); }
public static T Self <T, TSource>(this IBindingSyntaxContext <T, TSource> context) where T : class { return(MethodNotSupported <T>()); }
public static object AsErrorsSource(this IBindingSyntaxContext context, params object[] sources) { return(MethodNotSupported <object>()); }