private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::StyleDemo.StyleDemo_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // StyleDemo.MainPage userType = new global::StyleDemo.StyleDemo_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::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::StyleDemo.StyleDemo_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // StyleDemo.Models.Person userType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_Person; userType.AddMemberName("Age"); userType.AddMemberName("Name"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Int32 xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // String xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 4: // StyleDemo.MainPage userType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_4_MainPage; userType.SetIsLocalType(); xamlType = userType; break; case 5: // Windows.UI.Xaml.Controls.Page xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::StyleDemo.StyleDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return xamlType; }