private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::UWP.UWP_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // UWP.MainPage userType = new global::UWP.UWP_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.UWP_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::UWP.UWP_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // Microsoft.Toolkit.Win32.UI.XamlHost.XamlApplication userType = new global::UWP.UWP_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Application")); userType.AddMemberName("IsDisposed"); userType.AddMemberName("WindowsXamlManager"); userType.AddMemberName("MetadataProviders"); xamlType = userType; break; case 1: // Windows.UI.Xaml.Application xamlType = new global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Boolean xamlType = new global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // System.IDisposable userType = new global::UWP.UWP_XamlTypeInfo.XamlUserType(this, typeName, type, null); userType.SetIsReturnTypeStub(); xamlType = userType; break; case 4: // System.Collections.Generic.IList`1<Windows.UI.Xaml.Markup.IXamlMetadataProvider> userType = new global::UWP.UWP_XamlTypeInfo.XamlUserType(this, typeName, type, null); userType.CollectionAdd = VectorAdd_4_IList; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 5: // Windows.UI.Xaml.Markup.IXamlMetadataProvider xamlType = new global::UWP.UWP_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }