private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MyWeather.MainPage userType = new global::MyWeather.MyWeather_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::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MyWeather.MainPage userType = new global::MyWeather.MyWeather_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::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // MyWeather.Meniu userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_3_Meniu; userType.SetIsLocalType(); xamlType = userType; break; case 4: // MyWeather.S1_P1 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_4_S1_P1; userType.SetIsLocalType(); xamlType = userType; break; case 5: // MyWeather.S1_P2 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_5_S1_P2; userType.SetIsLocalType(); xamlType = userType; break; case 6: // MyWeather.S1_P3 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_6_S1_P3; userType.SetIsLocalType(); xamlType = userType; break; case 7: // MyWeather.S1_P4 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_7_S1_P4; userType.SetIsLocalType(); xamlType = userType; break; case 8: // MyWeather.S1_P5 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_8_S1_P5; userType.SetIsLocalType(); xamlType = userType; break; case 9: // MyWeather.Pagini.S2_P1 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_9_S2_P1; userType.SetIsLocalType(); xamlType = userType; break; case 10: // MyWeather.Pagini.S2_P2 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_10_S2_P2; userType.SetIsLocalType(); xamlType = userType; break; case 11: // MyWeather.Pagini.S2_P3 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_11_S2_P3; userType.SetIsLocalType(); xamlType = userType; break; case 12: // MyWeather.Pagini.S2_P4 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_12_S2_P4; userType.SetIsLocalType(); xamlType = userType; break; case 13: // MyWeather.Pagini.S3_P1 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_13_S3_P1; userType.SetIsLocalType(); xamlType = userType; break; case 14: // MyWeather.Pagini.S3_P2 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_14_S3_P2; userType.SetIsLocalType(); xamlType = userType; break; case 15: // MyWeather.Pagini.S3_P3 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_15_S3_P3; userType.SetIsLocalType(); xamlType = userType; break; case 16: // MyWeather.Pagini.S3_P4 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_16_S3_P4; userType.SetIsLocalType(); xamlType = userType; break; case 17: // MyWeather.Pagini.S3_P5 userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_17_S3_P5; userType.SetIsLocalType(); xamlType = userType; break; case 18: // MyWeather.Pagini.S4_P userType = new global::MyWeather.MyWeather_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_18_S4_P; userType.SetIsLocalType(); xamlType = userType; break; } return(xamlType); }