public ObjectAssembler(IWiringContext wiringContext, ITopDownValueContext topDownValueContext, ObjectAssemblerSettings objectAssemblerSettings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map<DataTemplate>(template => template.AlternateTemplateContent, new DeferredLoader()); objectAssembler = new TemplateHostingObjectAssembler(new OmniXaml.ObjectAssembler.ObjectAssembler(wiringContext, topDownValueContext, objectAssemblerSettings), mapping); }
public ObjectAssembler(StackingLinkedList<Level> state, IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, IInstanceLifeCycleListener listener) { StateCommuter = new StateCommuter(state, typeSource, topDownValueContext, listener); LifecycleListener = listener; }
public ObjectAssembler(IWiringContext wiringContext, ITopDownValueContext topDownValueContext, ObjectAssemblerSettings objectAssemblerSettings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map <DataTemplate>(template => template.AlternateTemplateContent, new DeferredLoader()); objectAssembler = new TemplateHostingObjectAssembler(new OmniXaml.ObjectAssembler.ObjectAssembler(wiringContext, topDownValueContext, objectAssemblerSettings), mapping); }
public ObjectAssembler(IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, Settings settings = null) { TypeSource = typeSource; var mapping = new DeferredLoaderMapping(); mapping.Map<DataTemplate>(template => template.AlternateTemplateContent, new DeferredLoader()); objectAssembler = new TemplateHostingObjectAssembler( new OmniXaml.ObjectAssembler.ObjectAssembler(typeSource, topDownValueContext, settings), mapping); }
public StateCommuter(StackingLinkedList<Level> stack, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { Guard.ThrowIfNull(stack, nameof(stack)); Guard.ThrowIfNull(wiringContext, nameof(wiringContext)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); Stack = stack; this.topDownValueContext = topDownValueContext; ValuePipeline = new ValuePipeline(wiringContext.TypeContext, topDownValueContext); }
public ObjectAssembler(IWiringContext wiringContext, ITopDownValueContext topDownValueContext, ObjectAssemblerSettings settings = null) : this(new StackingLinkedList<Level>(), wiringContext, topDownValueContext) { Guard.ThrowIfNull(wiringContext, nameof(wiringContext)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); this.topDownValueContext = topDownValueContext; StateCommuter.RaiseLevel(); rootInstance = settings?.RootInstance; rootInstanceType = settings?.RootInstance?.GetType(); }
public StateCommuter(StackingLinkedList <Level> stack, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { Guard.ThrowIfNull(stack, nameof(stack)); Guard.ThrowIfNull(wiringContext, nameof(wiringContext)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); Stack = stack; this.topDownValueContext = topDownValueContext; ValuePipeline = new ValuePipeline(wiringContext.TypeContext, topDownValueContext); instanceProperties = new InstanceProperties(); }
public ObjectAssembler(IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, Settings settings = null) : this(new StackingLinkedList<Level>(), typeSource, topDownValueContext, GetLifecycleListener(settings)) { Guard.ThrowIfNull(typeSource, nameof(typeSource)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); TypeSource = typeSource; TopDownValueContext = topDownValueContext; StateCommuter.RaiseLevel(); rootInstance = settings?.RootInstance; var rootInstanceType = rootInstance?.GetType(); rootInstanceXamlType = rootInstanceType != null ? TypeSource.GetByType(rootInstanceType) : null; }
public StateCommuter(StackingLinkedList<Level> stack, IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, IInstanceLifeCycleListener lifecycleListener) { Guard.ThrowIfNull(stack, nameof(stack)); Guard.ThrowIfNull(typeSource, nameof(typeSource)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); Stack = stack; this.topDownValueContext = topDownValueContext; this.lifecycleListener = lifecycleListener; ValuePipeline = new ValuePipeline(typeSource, topDownValueContext); }
public ObjectAssembler(IWiringContext wiringContext, ITopDownValueContext topDownValueContext, ObjectAssemblerSettings settings = null) : this(new StackingLinkedList <Level>(), wiringContext, topDownValueContext) { Guard.ThrowIfNull(wiringContext, nameof(wiringContext)); Guard.ThrowIfNull(topDownValueContext, nameof(topDownValueContext)); this.topDownValueContext = topDownValueContext; StateCommuter.RaiseLevel(); rootInstance = settings?.RootInstance; var rootInstanceType = rootInstance?.GetType(); rootInstanceXamlType = rootInstanceType != null?wiringContext.TypeContext.TypeRepository.GetXamlType(rootInstanceType) : null; }
public PerspexObjectAssembler( IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, Settings settings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map<ControlTemplate>(x => x.Content, new TemplateLoader()); mapping.Map<DataTemplate>(x => x.Content, new TemplateLoader()); mapping.Map<FocusAdornerTemplate>(x => x.Content, new TemplateLoader()); mapping.Map<TreeDataTemplate>(x => x.Content, new TemplateLoader()); mapping.Map<ItemsPanelTemplate>(x => x.Content, new TemplateLoader()); var valueContext = new ValueContext(typeSource, topDownValueContext); assembler = new ObjectAssembler(typeSource, valueContext, settings); objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
public ObjectAssembler(IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, Settings settings = null) { TypeSource = typeSource; var mapping = new DeferredLoaderMapping(); mapping.Map <DataTemplate>(template => template.AlternateTemplateContent, new DeferredLoader()); var parsingDictionary = GetDictionary(settings); var valueConnectionContext = new ValueContext(typeSource, topDownValueContext, parsingDictionary); objectAssembler = new TemplateHostingObjectAssembler( new OmniXaml.ObjectAssembler.ObjectAssembler( typeSource, valueConnectionContext, settings), mapping); }
public PerspexObjectAssembler( IRuntimeTypeSource typeSource, ITopDownValueContext topDownValueContext, Settings settings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map <ControlTemplate>(x => x.Content, new TemplateLoader()); mapping.Map <DataTemplate>(x => x.Content, new TemplateLoader()); mapping.Map <FocusAdornerTemplate>(x => x.Content, new TemplateLoader()); mapping.Map <TreeDataTemplate>(x => x.Content, new TemplateLoader()); mapping.Map <ItemsPanelTemplate>(x => x.Content, new TemplateLoader()); var valueContext = new ValueContext(typeSource, topDownValueContext); assembler = new ObjectAssembler(typeSource, valueContext, settings); objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
public ValueContext(ITypeRepository typeRepository, ITopDownValueContext topDownValueContext, IReadOnlyDictionary <string, object> parsingDictionary) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; this.parsingDictionary = parsingDictionary; }
public ValueContext(ITypeRepository typeRepository, ITopDownValueContext topDownValueContext) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; }
public ObjectAssembler(StackingLinkedList<Level> state, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { WiringContext = wiringContext; StateCommuter = new StateCommuter(state, wiringContext, topDownValueContext); }
public EndObjectCommand(ObjectAssembler assembler, ITopDownValueContext topDownValueContext) : base(assembler) { this.topDownValueContext = topDownValueContext; }
public ValueContext(ITypeRepository typeRepository, ITopDownValueContext topDownValueContext, IReadOnlyDictionary<string, object> parsingDictionary) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; this.parsingDictionary = parsingDictionary; }
public ObjectAssembler(StackingLinkedList <Level> state, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { WiringContext = wiringContext; StateCommuter = new StateCommuter(state, wiringContext, topDownValueContext); }
public XamlTypeConverterContext(IXamlTypeRepository typeRepository, ITopDownValueContext topDownValueContext) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; }
public ValueCommand(StateCommuter stateCommuter, ITypeRepository typeSource, ITopDownValueContext topDownValueContext, string value) : base(stateCommuter) { this.value = value; ValuePipeLine = new ValuePipeline(typeSource, topDownValueContext); }
public ValueCommand(ObjectAssembler objectAssembler, ITopDownValueContext topDownValueContext, string value) : base(objectAssembler) { this.value = value; ValuePipeLine = new ValuePipeline(objectAssembler.WiringContext.TypeContext, topDownValueContext); }
public ValuePipeline(ITypeRepository typeRepository, ITopDownValueContext topDownValueContext) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; }
public EndMemberCommand(ObjectAssembler assembler, ITopDownValueContext topDownValueContext) : base(assembler) { this.topDownValueContext = topDownValueContext; typeContext = Assembler.WiringContext.TypeContext; }
public ValuePipeline(IXamlTypeRepository typeRepository, ITopDownValueContext topDownValueContext) { this.typeRepository = typeRepository; this.topDownValueContext = topDownValueContext; }