Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

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

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

            case 3:   //  ProjetoAthena.Pages.Page_Livros
                userType           = new global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Page_Livros;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  ProjetoAthena.Pages.Page_Sobre
                userType           = new global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Page_Sobre;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  ProjetoAthena.MainPage
                userType = new global::ProjetoAthena.ProjetoAthena_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::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  ProjetoAthena.Pages.Page_Livros
                userType = new global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Page_Livros;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  ProjetoAthena.Pages.Page_Sobre
                userType = new global::ProjetoAthena.ProjetoAthena_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Page_Sobre;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }