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

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

            switch (typeIndex)
            {
            case 0:   //  UWP_tutorials.MainPage
                userType           = new global::UWP_tutorials.UWP_tutorials_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::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  UWP_tutorials.Mario
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Mario;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  UWP_tutorials.ChangePage.ChangePage
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_ChangePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  UWP_tutorials.CountClick.CountClick
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_CountClick;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 5:   //  UWP_tutorials.Mario
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Mario;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  UWP_tutorials.ResponsiveLayout.ResponsiveLayout
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_ResponsiveLayout;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  UWP_tutorials.RightButton.RightButton
                userType           = new global::UWP_tutorials.UWP_tutorials_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_RightButton;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }