private void RegisterNamespaces(IXamlNamespaceRegistry namespaceRegistry) { foreach (var xamlNamespace in namespaceRegistrations) { namespaceRegistry.AddNamespace(xamlNamespace); } }
private void RegisterPrefixes(IXamlNamespaceRegistry namespaceRegistry) { foreach (var prefix in prefixRegistrations) { namespaceRegistry.RegisterPrefix(prefix); } }
public PerspexTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeFactory, ITypeFeatureProvider featureProvider, IPerspexPropertyBinder propertyBinder) : base(xamlNamespaceRegistry, typeFactory, featureProvider) { _typeFactory = typeFactory; _propertyBinder = propertyBinder; }
public ITypeContext Build() { nsRegistry = new XamlNamespaceRegistry(); typeRepository = new XamlTypeRepository(nsRegistry); RegisterPrefixes(nsRegistry); RegisterNamespaces(nsRegistry); return new TypeContext(typeRepository, nsRegistry, typeFactory); }
public XamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) { Guard.ThrowIfNull(xamlNamespaceRegistry, nameof(xamlNamespaceRegistry)); Guard.ThrowIfNull(typeTypeFactory, nameof(typeTypeFactory)); Guard.ThrowIfNull(featureProvider, nameof(featureProvider)); this.xamlNamespaceRegistry = xamlNamespaceRegistry; this.typeTypeFactory = typeTypeFactory; this.featureProvider = featureProvider; }
public ITypeContext Build() { nsRegistry = new XamlNamespaceRegistry(); typeRepository = new XamlTypeRepository(nsRegistry, typeFactory, featureProvider); RegisterPrefixes(nsRegistry); RegisterNamespaces(nsRegistry); return(new TypeContext(typeRepository, nsRegistry, typeFactory)); }
public TypeContextBuilder() { nsRegistry = new XamlNamespaceRegistry(); typeRepository = new XamlTypeRepository(nsRegistry, typeFactory, featureProvider); }
public TypeContext(IXamlTypeRepository typeRepository, IXamlNamespaceRegistry nsRegistry, ITypeFactory typeFactory) { this.typeRepository = typeRepository; this.nsRegistry = nsRegistry; this.typeFactory = typeFactory; }
public WpfXamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry) : base(xamlNamespaceRegistry) { }
public XamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry) { this.xamlNamespaceRegistry = xamlNamespaceRegistry; }
public PerspexTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeFactory, ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeFactory, featureProvider) { _typeFactory = typeFactory; }
public XamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeFactory) : base(xamlNamespaceRegistry, typeFactory) { this.typeFactory = typeFactory; }
public WpfXamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeTypeFactory, featureProvider) { }
public TypeContextBuilder() { nsRegistry = new XamlNamespaceRegistry(); typeRepository = new XamlTypeRepository(nsRegistry); }
public DummyXamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeTypeFactory, featureProvider) { }