private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // WebBrowser.MainPage userType = new global::WebBrowser.WebBrowser_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::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // Przegladarka.AddFavorite userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.ContentDialog")); userType.AddMemberName("Result"); userType.AddMemberName("SiteName"); userType.AddMemberName("SiteUrl"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Windows.UI.Xaml.Controls.ContentDialog xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.ContentControl xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // Przegladarka.AddFavoriteResult userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum")); userType.AddEnumValue("Add", global::Przegladarka.AddFavoriteResult.Add); userType.AddEnumValue("Cancel", global::Przegladarka.AddFavoriteResult.Cancel); userType.SetIsLocalType(); xamlType = userType; break; case 4: // System.Enum userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType")); xamlType = userType; break; case 5: // System.ValueType userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); xamlType = userType; break; case 6: // Object xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 7: // String xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 8: // Przegladarka.MainPage userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_8_MainPage; userType.AddMemberName("HomePage"); userType.AddMemberName("Page"); userType.SetIsLocalType(); xamlType = userType; break; case 9: // Windows.UI.Xaml.Controls.Page xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 10: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 11: // System.Uri userType = new global::WebBrowser.WebBrowser_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.SetIsReturnTypeStub(); xamlType = userType; break; } return(xamlType); }