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

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

            switch (typeIndex)
            {
            case 0:   //  AssetsDpiScale.ViewModels.Base.ViewModelLocator
                userType           = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("MainViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  AssetsDpiScale.ViewModels.MainViewModel
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("AssetsDpiScale.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  AssetsDpiScale.ViewModels.Base.ViewModelBase
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  AssetsDpiScale.Views.Base.PageBase
                userType           = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  AssetsDpiScale.Views.MainView
                userType           = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("AssetsDpiScale.Views.Base.PageBase"));
                userType.Activator = Activate_7_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Ejemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  AssetsDpiScale.ViewModels.Base.ViewModelLocator
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("MainViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  AssetsDpiScale.ViewModels.MainViewModel
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("AssetsDpiScale.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  AssetsDpiScale.ViewModels.Base.ViewModelBase
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  AssetsDpiScale.Views.Base.PageBase
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  AssetsDpiScale.Views.MainView
                userType = new global::AssetsDpiScale.AssetsDpiScale_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("AssetsDpiScale.Views.Base.PageBase"));
                userType.Activator = Activate_7_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }