Example #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::背包.背包_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::背包.背包_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  背包.View.About
                userType = new global::背包.背包_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::背包.背包_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  Windows.UI.Text.FontWeight
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 4:   //  System.ValueType
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 5:   //  Object
                xamlType = new global::背包.背包_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  背包.View.Account
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Account;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  背包.View.Capture
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_Capture;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  背包.Converter.photouriConverter
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_8_photouriConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  背包.View.DetailPage
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_DetailPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  背包.View.FootPrint
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_FootPrint;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  背包.View.Loading
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_Loading;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  背包.Converter.usericonConverter
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_12_usericonConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  背包.Converter.timeConverter
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_13_timeConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  背包.MainPage
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_14_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  背包.View.MyCollection
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_15_MyCollection;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  背包.View.New
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_16_New;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  背包.View.Postcard
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_17_Postcard;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 18:   //  背包.View.Setting
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_18_Setting;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 19:   //  背包.View.UserTravelDetail
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_19_UserTravelDetail;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 20:   //  背包.View.UserTravelPage
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_20_UserTravelPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Example #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::背包.背包_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::背包.背包_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  背包.View.Camera
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Camera;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  背包.View.Login
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Login;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  背包.MainPage
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  背包.View.Register
                userType = new global::背包.背包_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Register;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }