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

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

            switch (typeIndex)
            {
            case 0:   //  Catfish.CameraCapture
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_CameraCapture;
                xamlType           = userType;
                break;

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

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

            case 3:   //  Catfish.ExploreView
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_ExploreView;
                xamlType           = userType;
                break;

            case 4:   //  Catfish.GlobalPage
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_GlobalPage;
                xamlType           = userType;
                break;

            case 5:   //  Catfish.Index
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Index;
                xamlType           = userType;
                break;

            case 6:   //  Catfish.Login
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Login;
                xamlType           = userType;
                break;

            case 7:   //  Catfish.MessageView
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MessageView;
                xamlType           = userType;
                break;

            case 8:   //  Catfish.MyPage
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_MyPage;
                xamlType           = userType;
                break;

            case 9:   //  Catfish.Register
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_Register;
                xamlType           = userType;
                break;

            case 10:   //  Catfish.SearchView
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_SearchView;
                xamlType           = userType;
                break;

            case 11:   //  Catfish.UploadPost
                userType           = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_UploadPost;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Catfish.Catfish_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Catfish.Catfish_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Catfish.CameraCapture
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_CameraCapture;
                xamlType = userType;
                break;

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

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

            case 3:   //  Catfish.ExploreView
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_ExploreView;
                xamlType = userType;
                break;

            case 4:   //  Catfish.GlobalPage
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_GlobalPage;
                xamlType = userType;
                break;

            case 5:   //  Catfish.Index
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Index;
                xamlType = userType;
                break;

            case 6:   //  Catfish.Login
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Login;
                xamlType = userType;
                break;

            case 7:   //  Catfish.MessageView
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MessageView;
                xamlType = userType;
                break;

            case 8:   //  Catfish.MyPage
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_MyPage;
                xamlType = userType;
                break;

            case 9:   //  Catfish.Register
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_Register;
                xamlType = userType;
                break;

            case 10:   //  Catfish.SearchView
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_SearchView;
                xamlType = userType;
                break;

            case 11:   //  Catfish.UploadPost
                userType = new global::Catfish.Catfish_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_UploadPost;
                xamlType = userType;
                break;
            }
            return xamlType;
        }