public static IBindingInfoBehaviorSyntax <TSource> WithTargetNullValue <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, [CanBeNull] object nullValue) { return(syntax.WithParameter(BindingBuilderConstants.TargetNullValue, nullValue)); }
public static IBindingInfoBehaviorSyntax <TSource> WithFallback <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, [NotNull] Func <IDataContext, object> getFallback) { return(syntax.WithParameter(BindingBuilderConstants.Fallback, getFallback)); }
public static IBindingInfoBehaviorSyntax <TSource> WithFallback <TSource>( [NotNull] this IBindingInfoSyntax syntax, [NotNull] Func <Expression <Func <TSource, IBindingSyntaxContext <object, TSource>, object> > > expression) { return(syntax.WithParameter <TSource, object>(BindingBuilderConstants.Fallback, expression)); }
public static IBindingInfoBehaviorSyntax <TSource> WithConverterCulture <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, [NotNull] Func <Expression <Func <TSource, IBindingSyntaxContext <object, TSource>, object> > > expression) { return(syntax.WithParameter <TSource, CultureInfo>(BindingBuilderConstants.ConverterCulture, expression)); }
public static IBindingInfoBehaviorSyntax <TSource> WithConverterCulture <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, [NotNull] Func <IDataContext, CultureInfo> getCulture) { return(syntax.WithParameter(BindingBuilderConstants.ConverterCulture, getCulture)); }
public static IBindingInfoBehaviorSyntax <TSource> WithConverterParameter <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, [NotNull] Func <IDataContext, object> getParameter) { return(syntax.WithParameter(BindingBuilderConstants.ConverterParameter, getParameter)); }
public static IBindingInfoBehaviorSyntax <TSource> ToggleEnabledState <TSource>( [NotNull] this IBindingInfoSyntax <TSource> syntax, bool value) { return(syntax.WithParameter(BindingBuilderConstants.ToggleEnabledState, value)); }
public static IBindingInfoBehaviorSyntax<TSource> WithDebugTag<TSource>([NotNull] this IBindingInfoSyntax<TSource> syntax, string tag) { return syntax.WithParameter(BindingBuilderConstants.DebugTag, tag); }