示例#1
0
        public XamlXmlLoader(IObjectAssembler objectAssembler, WiringContext wiringContext)
        {
            Guard.ThrowIfNull(objectAssembler, nameof(objectAssembler));
            Guard.ThrowIfNull(wiringContext, nameof(wiringContext));

            this.objectAssembler = objectAssembler;
            this.wiringContext = wiringContext;
        }
示例#2
0
        public PerspexWiringContext(ITypeFactory typeFactory)
        {
            var featureProvider = new TypeFeatureProvider(GetContentPropertyProvider(), GetConverterProvider());

            var xamlNamespaceRegistry = CreateXamlNamespaceRegistry();
            var perspexPropertyBinder = new PerspexPropertyBinder(featureProvider.ConverterProvider);
            var xamlTypeRepository = new PerspexTypeRepository(xamlNamespaceRegistry, typeFactory, featureProvider, perspexPropertyBinder);
            var typeContext = new TypeContext(xamlTypeRepository, xamlNamespaceRegistry, typeFactory);
            _context = new WiringContext(typeContext, featureProvider);
        }
 private static Func<IObjectAssembler, IConfiguredXamlLoader> LoaderFactory(WiringContext wiringContext)
 {
     return assembler => new ConfiguredXamlXmlLoader(new SuperProtoParser(wiringContext), new XamlNodesPullParser(wiringContext), assembler);
 }
 public DefaultXamlStreamLoader(WiringContext wiringContext)
     : base(LoaderFactory(wiringContext), new DefaultObjectAssemblerFactory(wiringContext))
 {
 }
 public DefaultObjectAssemblerFactory(WiringContext wiringContext)
 {
     this.wiringContext = wiringContext;
 }