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

            switch (typeIndex)
            {

            case 0:   //  NavigationMenuSample.Controls.PageHeader
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_PageHeader;
                userType.AddMemberName("HeaderContent");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.UIElement
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  NavigationMenuSample.Views.BasicPage
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_BasicPage;
                userType.AddMemberName("NavigatorImage");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Windows.UI.Xaml.Media.ImageSource
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  NavigationMenuSample.Controls.NavMenuListView
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.ListView"));
                userType.Activator = Activate_6_NavMenuListView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.ListView
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Windows.UI.Xaml.Controls.ItemsControl
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  NavigationMenuSample.AppShell
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_AppShell;
                userType.AddMemberName("AppFrame");
                userType.AddMemberName("TogglePaneButtonRect");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  Windows.UI.Xaml.Controls.Frame
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  Windows.Foundation.Rect
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  NavigationMenuSample.Views.CommandBarPage
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_CommandBarPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  NavigationMenuSample.Views.BasicSubPage
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_BasicSubPage;
                userType.AddMemberName("Message");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  String
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  NavigationMenuSample.Views.DrillInPage
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_15_DrillInPage;
                userType.AddMemberName("Session");
                userType.AddMemberName("Tokens");
                userType.AddMemberName("NavigatorImage");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  CoreTweet.OAuth.OAuthSession
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 17:   //  Object
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 18:   //  CoreTweet.Tokens
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("CoreTweet.Core.TokensBase"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 19:   //  CoreTweet.Core.TokensBase
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 20:   //  NavigationMenuSample.Views.LandingPage
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_20_LandingPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Ejemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  NavigationMenuSample.Controls.PageHeader
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_PageHeader;
                userType.AddMemberName("HeaderContent");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.UIElement
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  NavigationMenuSample.Views.BasicPage
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_BasicPage;
                userType.AddMemberName("NavigatorImage");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Windows.UI.Xaml.Media.ImageSource
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  NavigationMenuSample.Controls.NavMenuListView
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.ListView"));
                userType.Activator = Activate_6_NavMenuListView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.ListView
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Windows.UI.Xaml.Controls.ItemsControl
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  NavigationMenuSample.AppShell
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_AppShell;
                userType.AddMemberName("AppFrame");
                userType.AddMemberName("TogglePaneButtonRect");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  Windows.UI.Xaml.Controls.Frame
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  Windows.Foundation.Rect
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  NavigationMenuSample.Views.CommandBarPage
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_CommandBarPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  NavigationMenuSample.Views.BasicSubPage
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_BasicSubPage;
                userType.AddMemberName("Message");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  String
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  NavigationMenuSample.Views.DrillInPage
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_15_DrillInPage;
                userType.AddMemberName("Session");
                userType.AddMemberName("Tokens");
                userType.AddMemberName("NavigatorImage");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  CoreTweet.OAuth.OAuthSession
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 17:   //  Object
                xamlType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 18:   //  CoreTweet.Tokens
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("CoreTweet.Core.TokensBase"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 19:   //  CoreTweet.Core.TokensBase
                userType = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 20:   //  NavigationMenuSample.Views.LandingPage
                userType           = new global::KunappWinApp.KunappWinApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_20_LandingPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }