private void RegisterNamespaces(IXamlNamespaceRegistry namespaceRegistry)
 {
     foreach (var xamlNamespace in namespaceRegistrations)
     {
         namespaceRegistry.AddNamespace(xamlNamespace);
     }
 }
Example #2
0
 private void RegisterPrefixes(IXamlNamespaceRegistry namespaceRegistry)
 {
     foreach (var prefix in prefixRegistrations)
     {
         namespaceRegistry.RegisterPrefix(prefix);
     }
 }
Example #3
0
 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);
     }
 }
Example #5
0
 public PerspexTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry,
                              ITypeFactory typeFactory,
                              ITypeFeatureProvider featureProvider,
                              IPerspexPropertyBinder propertyBinder) : base(xamlNamespaceRegistry, typeFactory, featureProvider)
 {
     _typeFactory    = typeFactory;
     _propertyBinder = propertyBinder;
 }
 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);
        }
Example #8
0
        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;
        }
Example #9
0
        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;
        }
Example #10
0
        public ITypeContext Build()
        {
            nsRegistry = new XamlNamespaceRegistry();

            typeRepository = new XamlTypeRepository(nsRegistry, typeFactory, featureProvider);

            RegisterPrefixes(nsRegistry);
            RegisterNamespaces(nsRegistry);

            return(new TypeContext(typeRepository, nsRegistry, typeFactory));
        }
Example #11
0
 public TypeContextBuilder()
 {
     nsRegistry = new XamlNamespaceRegistry();
     typeRepository = new XamlTypeRepository(nsRegistry, typeFactory, featureProvider);
 }
Example #12
0
 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;
 }
Example #15
0
 public PerspexTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry,
     ITypeFactory typeFactory,
     ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeFactory, featureProvider)
 {
     _typeFactory = typeFactory;
 }
Example #16
0
 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;
 }
Example #18
0
 public TypeContext(IXamlTypeRepository typeRepository, IXamlNamespaceRegistry nsRegistry, ITypeFactory typeFactory)
 {
     this.typeRepository = typeRepository;
     this.nsRegistry     = nsRegistry;
     this.typeFactory    = typeFactory;
 }
 public WpfXamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider)
     : base(xamlNamespaceRegistry, typeTypeFactory, featureProvider)
 {
 }
Example #20
0
 public TypeContextBuilder()
 {
     nsRegistry     = new XamlNamespaceRegistry();
     typeRepository = new XamlTypeRepository(nsRegistry, typeFactory, featureProvider);
 }
 public TypeContextBuilder()
 {
     nsRegistry = new XamlNamespaceRegistry();
     typeRepository = new XamlTypeRepository(nsRegistry);
 }
 public DummyXamlTypeRepository(IXamlNamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider)
     : base(xamlNamespaceRegistry, typeTypeFactory, featureProvider)
 {
 }