예제 #1
0
        private static ITypeContext GetTypeContext(ITypeFactory typeFactory)
        {
            var xamlNamespaceRegistry = CreateXamlNamespaceRegistry();
            var xamlTypeRepository    = new WpfXamlTypeRepository(xamlNamespaceRegistry, typeFactory, GetFeatureProvider());

            return(new TypeContext(xamlTypeRepository, xamlNamespaceRegistry, typeFactory));
        }
예제 #2
0
 private static ITypeContext GetTypeContext(ITypeFactory typeFactory)
 {
     var xamlNamespaceRegistry = CreateXamlNamespaceRegistry();
     var xamlTypeRepository = new WpfXamlTypeRepository(xamlNamespaceRegistry, typeFactory, GetFeatureProvider());
     return new TypeContext(xamlTypeRepository, xamlNamespaceRegistry, typeFactory);
 }