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 PerspexObjectAssembler(IWiringContext wiringContext, ObjectAssemblerSettings objectAssemblerSettings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map<XamlDataTemplate>(template => template.Content, new TemplateLoader()); var assembler = new ObjectAssembler(wiringContext, new TopDownMemberValueContext(), objectAssemblerSettings); _objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
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 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 PerspexObjectAssembler(IWiringContext wiringContext, ObjectAssemblerSettings objectAssemblerSettings = null) { var mapping = new DeferredLoaderMapping(); mapping.Map <XamlDataTemplate>(template => template.Content, new TemplateLoader()); var assembler = new ObjectAssembler(wiringContext, new TopDownMemberValueContext(), objectAssemblerSettings); _objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
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 PerspexObjectAssembler(IWiringContext wiringContext, ObjectAssemblerSettings objectAssemblerSettings = 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 assembler = new ObjectAssembler(wiringContext, new TopDownValueContext(), objectAssemblerSettings); _objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
public PerspexObjectAssembler(IWiringContext wiringContext, ObjectAssemblerSettings objectAssemblerSettings = 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 assembler = new ObjectAssembler(wiringContext, new TopDownValueContext(), objectAssemblerSettings); _objectAssembler = new TemplateHostingObjectAssembler(assembler, mapping); }
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 DefaultObjectAssemblerFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public Hydrator(IEnumerable <Type> inflatables, IWiringContext wiringContext) { this.inflatables = inflatables; this.wiringContext = wiringContext; instructionBuilder = new XamlInstructionBuilder(wiringContext.TypeContext); }
public XamlInstructionParser(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public object Load(IEnumerable <XamlInstruction> nodes, IWiringContext context) { return(new TemplateContent(nodes, context)); }
public DummyXamlParserFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public ObjectAssembler(StackingLinkedList<Level> state, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { WiringContext = wiringContext; StateCommuter = new StateCommuter(state, wiringContext, topDownValueContext); }
public XamlProtoInstructionParser(IWiringContext wiringContext) { this.wiringContext = wiringContext; instructionBuilder = new ProtoInstructionBuilder(wiringContext.TypeContext); }
public TemplateContent(IEnumerable <XamlInstruction> nodes, IWiringContext context) { Nodes = nodes; Context = context; }
public DummyAssemblerFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public MarkupExtensionNodeToXamlNodesConverter(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public DummyAssemblerFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public TemplateContent(IEnumerable<XamlInstruction> nodes, IWiringContext context) { _nodes = nodes; _context = context; }
public WpfParserFactory(ITypeFactory typeFactory) { wiringContext = new WpfWiringContext(typeFactory); }
public TemplateContent(IEnumerable<XamlInstruction> nodes, IWiringContext wiringContext) { this.nodes = nodes; this.wiringContext = wiringContext; }
public PerspexParserFactory(ITypeFactory typeFactory) { _wiringContext = new PerspexWiringContext(typeFactory); }
public DefaultObjectAssemblerFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public WpfWiringContext(ITypeFactory factory) { wiringContext = new WiringContext(GetTypeContext(factory), GetFeatureProvider()); }
public DummyXamlParserFactory(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public MarkupExtensionNodeToXamlNodesConverter(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public XamlInstructionParser(IWiringContext wiringContext) { this.wiringContext = wiringContext; }
public PerspexParserFactory(ITypeFactory typeFactory) { _wiringContext = new PerspexWiringContext(typeFactory); }
public ObjectAssembler(StackingLinkedList <Level> state, IWiringContext wiringContext, ITopDownValueContext topDownValueContext) { WiringContext = wiringContext; StateCommuter = new StateCommuter(state, wiringContext, topDownValueContext); }
public XamlProtoInstructionParser(IWiringContext wiringContext) { this.wiringContext = wiringContext; instructionBuilder = new ProtoInstructionBuilder(wiringContext.TypeContext); }
public WpfWiringContext(ITypeFactory factory) { wiringContext = new WiringContext(GetTypeContext(factory), GetFeatureProvider()); }
public object Load(IEnumerable<XamlInstruction> nodes, IWiringContext context) { return new TemplateContent(nodes, context); }
public TemplateContent(IEnumerable <XamlInstruction> nodes, IWiringContext wiringContext) { this.nodes = nodes; this.wiringContext = wiringContext; }
public WpfParserFactory(ITypeFactory typeFactory) { wiringContext = new WpfWiringContext(typeFactory); }
public Hydrator(IEnumerable<Type> inflatables, IWiringContext wiringContext) { this.inflatables = inflatables; this.wiringContext = wiringContext; instructionBuilder = new XamlInstructionBuilder(wiringContext.TypeContext); }