private Result.IfSuccess <CodeInfo> VisitDefiniteBinding(IDefiniteBinding definiteBinding, Parameters parameters, Context context, StringBuilder stringBuilder = null) { if (!definiteBinding.IsEnabled) { return(Result.Error()); } return(this.bindingPathCodeGenerator.Visit( definiteBinding.BindingAssignment.Path, new BindingPath.Parameters(parameters.XamlTypeResolver, definiteBinding, context.HasCodeBehind), new BindingPath.Context(stringBuilder ?? new StringBuilder(), context.BindingSource, context.XamlElementNameProvider, context.BindingSourceProvider, context.ExternAliases))); }
public Parameters(XamlTypeResolver xamlTypeResolver, IDefiniteBinding binding, bool hasCodeBehind) { this.XamlTypeResolver = xamlTypeResolver; this.Binding = binding; this.HasCodeBehind = hasCodeBehind; }
public Result.IfSuccess <BindingSource> GenerateBinding( IDefiniteBinding binding, in TargetValueCodeGenerator targetValueCodeGenerator,
private bool VisitDefiniteBinding(IDefiniteBinding definiteBinding) { return(definiteBinding.IsEnabled); }