private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // DemoApp.MainPage userType = new global::DemoApp.DemoApp_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::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // DemoApp.ViewModels.StartPageViewModel userType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase")); userType.Activator = Activate_0_StartPageViewModel; userType.AddMemberName("IsLoading"); userType.AddMemberName("Title"); userType.AddMemberName("Changelabel"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // GalaSoft.MvvmLight.ViewModelBase userType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("GalaSoft.MvvmLight.ObservableObject")); userType.AddMemberName("IsInDesignMode"); xamlType = userType; break; case 2: // GalaSoft.MvvmLight.ObservableObject userType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_2_ObservableObject; xamlType = userType; break; case 3: // Object xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 4: // Boolean xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 5: // String xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // System.Windows.Input.ICommand userType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType(this, typeName, type, null); userType.SetIsReturnTypeStub(); xamlType = userType; break; case 7: // DemoApp.Views.StartPage userType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_7_StartPage; userType.SetIsLocalType(); xamlType = userType; break; case 8: // Windows.UI.Xaml.Controls.Page xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 9: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::DemoApp.DemoApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }