Exemple #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::English.English_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::English.English_XamlTypeInfo.XamlUserType       userType;

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

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

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

            case "Boolean":
                xamlType = new global::English.English_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Boolean));
                break;

            case "Int32":
                xamlType = new global::English.English_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Int32));
                break;

            case "Windows.UI.Color":
                userType = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Color), GetXamlTypeByName("System.ValueType"));
                userType.AddMemberName("A");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                             "Byte");
                userType.AddMemberName("B");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                             "Byte");
                userType.AddMemberName("G");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                             "Byte");
                userType.AddMemberName("R");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                             "Byte");
                xamlType = userType;
                break;

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

            case "Byte":
                userType = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Byte), GetXamlTypeByName("System.ValueType"));
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                             "Byte");
                xamlType = userType;
                break;

            case "English.abcSong":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.abcSong), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_abcSong;
                userType.AddMemberName("_sliderpressed");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                             "Boolean");
                xamlType = userType;
                break;

            case "English.Common.LayoutAwarePage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_LayoutAwarePage;
                xamlType           = userType;
                break;

            case "English.game_discoverThePicture":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.game_discoverThePicture), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_5_game_discoverThePicture;
                xamlType           = userType;
                break;

            case "English.howToWright":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.howToWright), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_6_howToWright;
                xamlType           = userType;
                break;

            case "English.lessonMapPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.lessonMapPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_7_lessonMapPage;
                xamlType           = userType;
                break;

            case "English.lessonSummaryPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.lessonSummaryPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_8_lessonSummaryPage;
                xamlType           = userType;
                break;

            case "English.MainPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_MainPage;
                xamlType           = userType;
                break;

            case "English.pictuerOfLetters":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.pictuerOfLetters), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_10_pictuerOfLetters;
                xamlType           = userType;
                break;

            case "English.Review":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.Review), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_11_Review;
                userType.AddMemberName("Flag");
                AddToMapOfTypeToStandardName(typeof(global::System.Int32),
                                             "Int32");
                xamlType = userType;
                break;

            case "English.SplitPage1":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.SplitPage1), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_12_SplitPage1;
                xamlType           = userType;
                break;

            case "English.workPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.workPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_13_workPage;
                userType.AddMemberName("i");
                AddToMapOfTypeToStandardName(typeof(global::System.Int32),
                                             "Int32");
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::English.English_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::English.English_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::English.English_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

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

            case "English.Common.LayoutAwarePage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                xamlType           = userType;
                break;

            case "English.howToWright":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.howToWright), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_1_howToWright;
                xamlType           = userType;
                break;

            case "English.lessonMapPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.lessonMapPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_2_lessonMapPage;
                xamlType           = userType;
                break;

            case "English.lessonSummaryPage":
                userType = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.lessonSummaryPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                xamlType = userType;
                break;

            case "English.MainPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                xamlType           = userType;
                break;

            case "English.pictuerOfLetters":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.pictuerOfLetters), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_5_pictuerOfLetters;
                xamlType           = userType;
                break;

            case "English.SplitPage1":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.SplitPage1), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_6_SplitPage1;
                xamlType           = userType;
                break;

            case "English.workPage":
                userType           = new global::English.English_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::English.workPage), GetXamlTypeByName("English.Common.LayoutAwarePage"));
                userType.Activator = Activate_7_workPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }