public bool CastDataContextBindingSource(CastDataContextBindingSourceNode castSourceBinding, Parameters parameters, Context context) { return(this.VisitChildBindings(castSourceBinding.Bindings, parameters, context)); }
public bool DataContextTargetBinding(DataContextTargetBindingNode dataContextTargetBindingNode, Parameters parameters, Context context) { var result = this.VisitDefiniteBinding(dataContextTargetBindingNode); this.VisitChildBindings(dataContextTargetBindingNode.Bindings, parameters, context); if (result) { context.XamlModificationTracker.Add(dataContextTargetBindingNode.TargetElement, new BindingXamlModification(dataContextTargetBindingNode.Id, dataContextTargetBindingNode.BindingAssignment, context.XamlElementNameProvider)); return(true); } return(false); }
public Result.IfSuccess <XamlModificationCollection> Visit(IBindingNode bindingNode, Parameters parameters, Context context) { var result = bindingNode.Visit(this, parameters, context); if (result) { return(Result.Success(new XamlModificationCollection(context.XamlModificationInfos, context.BindingRootTypes))); } return(Result.Error()); }
public void VisitUnknown(IBindingNode bindingNode, Parameters parameters, Context context) { throw VisitException.Create(bindingNode, parameters, context); }
public bool ElementBindingSource(ElementBindingSourceNode elementBindingSourceNode, Parameters parameters, Context context) { return(this.VisitChildBindings(elementBindingSourceNode.Bindings, parameters, context)); }