public CleanWiringContextBuilder() { var xamlNamespaceRegistry = new XamlNamespaceRegistry(); TypeContext = new TypeContext(new XamlTypeRepository(xamlNamespaceRegistry), xamlNamespaceRegistry, new TypeFactory()); ContentPropertyProvider = new ContentPropertyProvider(); TypeConverterProvider = new TypeConverterProvider(); }
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); }