Ejemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType       userType;

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

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

            case "Save_the_Humans.Common.LayoutAwarePage":
                userType           = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Save_the_Humans.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                xamlType           = userType;
                break;

            case "Save_the_Humans.MainPage":
                userType           = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Save_the_Humans.MainPage), GetXamlTypeByName("Save_the_Humans.Common.LayoutAwarePage"));
                userType.Activator = Activate_1_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
Ejemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

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

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Save_the_Humans.MainPage
                userType           = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("DefaultViewModel");
                userType.AddMemberName("NavigationHelper");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  Save_the_Humans.Common.ObservableDictionary
                userType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_3_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  String
                xamlType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Save_the_Humans.Common.NavigationHelper
                userType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Save_the_Humans.Save_the_Humans_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }