コード例 #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "TicTacToe.App_Page.GamePage":
                userType           = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::TicTacToe.App_Page.GamePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_GamePage;
                xamlType           = userType;
                break;

            case "TicTacToe.MainPage":
                userType           = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::TicTacToe.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_1_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
コード例 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  TicTacToe.Menu
                userType           = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Menu;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  TicTacToe.Game
                userType           = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Game;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
コード例 #3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  TicTacToe.MainPage
                userType = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  TicTacToe.Menu
                userType = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Menu;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  TicTacToe.Rules
                userType = new global::TicTacToe.TicTacToe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Rules;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }