Esempio n. 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  MidTerm.BasicPage1
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_BasicPage1;
                userType.AddMemberName("DefaultViewModel");
                userType.AddMemberName("NavigationHelper");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  MidTerm.Common.ObservableDictionary
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_3_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  String
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  MidTerm.Common.NavigationHelper
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  MidTerm.main
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_main;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  MidTerm.MainPage
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  MidTerm.use1
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_use1;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Esempio n. 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  MidTerm.BasicPage1
                userType           = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_BasicPage1;
                userType.AddMemberName("DefaultViewModel");
                userType.AddMemberName("NavigationHelper");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  MidTerm.Common.ObservableDictionary
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_3_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  String
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  MidTerm.Common.NavigationHelper
                userType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::MidTerm.MidTerm_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  MidTerm.main
                userType           = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_main;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  MidTerm.MainPage
                userType           = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  MidTerm.use1
                userType           = new global::MidTerm.MidTerm_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_use1;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }