Beispiel #1
0
 public static T Resource <T>(this IBindingSyntaxContext context, string name)
 {
     return((T)BindingServiceProvider
            .ResourceResolver
            .ResolveObject(name, MugenMvvmToolkit.Models.DataContext.Empty, true)
            .Value);
 }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 public static T Self <T>(this IBindingSyntaxContext context)
 {
     return(MethodNotSupported <T>());
 }
Beispiel #4
0
 public static T Element <T>(this IBindingSyntaxContext context, object elementId)
 {
     return(MethodNotSupported <T>());
 }
Beispiel #5
0
 public static T Relative <T>(this IBindingSyntaxContext context, uint level)
 {
     return(MethodNotSupported <T>());
 }
Beispiel #6
0
 public static T OneTime <T>(this IBindingSyntaxContext context, T value)
 {
     return(MethodNotSupported <T>());
 }
Beispiel #7
0
 public static IEnumerable <object> GetErrors(this IBindingSyntaxContext context, params object[] args)
 {
     return(MethodNotSupported <IEnumerable <object> >());
 }
Beispiel #8
0
 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));
 }
Beispiel #9
0
 public static IDataBinding Binding(this IBindingSyntaxContext context)
 {
     return(MethodNotSupported <IDataBinding>());
 }
Beispiel #10
0
 public static T Source <TTarget, T>(this IBindingSyntaxContext <TTarget, T> context)
     where TTarget : class
 {
     return(MethodNotSupported <T>());
 }
Beispiel #11
0
 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>());
 }