Пример #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Object":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "String":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "MadAboutMovies.FeedDataSource":
                userType           = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedDataSource), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_FeedDataSource;
                userType.AddMemberName("Feeds");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection <global::MadAboutMovies.FeedData>),
                                             "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection <global::MadAboutMovies.FeedData>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection <global::MadAboutMovies.FeedData>),
                                             "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>");
                userType.Activator     = Activate_1_ObservableCollection;
                userType.CollectionAdd = VectorAdd_1_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection <global::MadAboutMovies.FeedData>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection <global::MadAboutMovies.FeedData>),
                                             "System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>");
                userType.Activator     = Activate_2_Collection;
                userType.CollectionAdd = VectorAdd_2_Collection;
                xamlType = userType;
                break;

            case "MadAboutMovies.FeedData":
                userType           = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedData), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_FeedData;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List <global::MadAboutMovies.FeedItem>),
                                             "System.Collections.Generic.List<MadAboutMovies.FeedItem>");
                xamlType = userType;
                break;

            case "System.DateTime":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.DateTime), GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case "System.ValueType":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.ValueType), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "System.Collections.Generic.List<MadAboutMovies.FeedItem>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List <global::MadAboutMovies.FeedItem>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List <global::MadAboutMovies.FeedItem>),
                                             "System.Collections.Generic.List<MadAboutMovies.FeedItem>");
                userType.Activator     = Activate_6_List;
                userType.CollectionAdd = VectorAdd_6_List;
                xamlType = userType;
                break;

            case "MadAboutMovies.FeedItem":
                userType           = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedItem), GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_FeedItem;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Author");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Content");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Link");
                xamlType = userType;
                break;

            case "System.Uri":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Uri), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "MadAboutMovies.DateConverter":
                userType           = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.DateConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_9_DateConverter;
                xamlType           = userType;
                break;

            case "MadAboutMovies.MainPage":
                userType           = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Object":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "String":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "MadAboutMovies.FeedDataSource":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedDataSource), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_FeedDataSource;
                userType.AddMemberName("Feeds");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::MadAboutMovies.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection<global::MadAboutMovies.FeedData>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::MadAboutMovies.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<MadAboutMovies.FeedData>");
                userType.Activator = Activate_1_ObservableCollection;
                userType.CollectionAdd = VectorAdd_1_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection<global::MadAboutMovies.FeedData>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection<global::MadAboutMovies.FeedData>),
                                                   "System.Collections.ObjectModel.Collection<MadAboutMovies.FeedData>");
                userType.Activator = Activate_2_Collection;
                userType.CollectionAdd = VectorAdd_2_Collection;
                xamlType = userType;
                break;

            case "MadAboutMovies.FeedData":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedData), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_FeedData;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::MadAboutMovies.FeedItem>),
                                                   "System.Collections.Generic.List<MadAboutMovies.FeedItem>");
                xamlType = userType;
                break;

            case "System.DateTime":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.DateTime), GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case "System.ValueType":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.ValueType), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "System.Collections.Generic.List<MadAboutMovies.FeedItem>":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List<global::MadAboutMovies.FeedItem>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::MadAboutMovies.FeedItem>),
                                                   "System.Collections.Generic.List<MadAboutMovies.FeedItem>");
                userType.Activator = Activate_6_List;
                userType.CollectionAdd = VectorAdd_6_List;
                xamlType = userType;
                break;

            case "MadAboutMovies.FeedItem":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.FeedItem), GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_FeedItem;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Author");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Content");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Link");
                xamlType = userType;
                break;

            case "System.Uri":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Uri), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "MadAboutMovies.DateConverter":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.DateConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_9_DateConverter;
                xamlType = userType;
                break;

            case "MadAboutMovies.MainPage":
                userType = new global::WindowsBlogReader.MAM_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::MadAboutMovies.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }