Пример #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Dictionary.About
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_About;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Dictionary.Dict
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Dict;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Dictionary.LanguageSetting
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_LanguageSetting;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Dictionary.MainPage
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Dictionary.OneDrive
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_OneDrive;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Dictionary.Translate
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_Translate;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Dictionary.WordBook
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_WordBook;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  Dictionary.WordPlayer
                userType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_WordPlayer;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  Dictionary.About
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_About;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Dictionary.Dictionary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Dictionary.Dict
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Dict;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Dictionary.LanguageSetting
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_LanguageSetting;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Dictionary.MainPage
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Dictionary.OneDrive
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_OneDrive;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Dictionary.Translate
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_Translate;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Dictionary.WordBook
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_WordBook;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  Dictionary.WordPlayer
                userType           = new global::Dictionary.Dictionary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_WordPlayer;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }