private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App1.Windows10Sample_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  App1.FriendsPage
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_FriendsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  App1.MainPage
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MainPage;
                userType.AddMemberName("Albums");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  App1.Model.Albums
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.ObservableCollection`1<App1.Model.Album>"));
                userType.CollectionAdd = VectorAdd_4_Albums;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  System.Collections.ObjectModel.ObservableCollection`1<App1.Model.Album>
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<App1.Model.Album>"));
                userType.Activator = Activate_5_ObservableCollection;
                userType.CollectionAdd = VectorAdd_5_ObservableCollection;
                xamlType = userType;
                break;

            case 6:   //  System.Collections.ObjectModel.Collection`1<App1.Model.Album>
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_6_Collection;
                userType.CollectionAdd = VectorAdd_6_Collection;
                xamlType = userType;
                break;

            case 7:   //  Object
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  App1.Model.Album
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_8_Album;
                userType.AddMemberName("Name");
                userType.AddMemberName("Author");
                userType.AddMemberName("Icon");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  String
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  App1.Views.Shell
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_Shell;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Beispiel #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App1.Windows10Sample_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  App1.FriendsPage
                userType           = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_FriendsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  App1.MainPage
                userType           = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MainPage;
                userType.AddMemberName("Albums");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  App1.Model.Albums
                userType = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.ObservableCollection`1<App1.Model.Album>"));
                userType.CollectionAdd = VectorAdd_4_Albums;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  System.Collections.ObjectModel.ObservableCollection`1<App1.Model.Album>
                userType               = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<App1.Model.Album>"));
                userType.Activator     = Activate_5_ObservableCollection;
                userType.CollectionAdd = VectorAdd_5_ObservableCollection;
                xamlType               = userType;
                break;

            case 6:   //  System.Collections.ObjectModel.Collection`1<App1.Model.Album>
                userType               = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_6_Collection;
                userType.CollectionAdd = VectorAdd_6_Collection;
                xamlType               = userType;
                break;

            case 7:   //  Object
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  App1.Model.Album
                userType           = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_8_Album;
                userType.AddMemberName("Name");
                userType.AddMemberName("Author");
                userType.AddMemberName("Icon");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  String
                xamlType = new global::App1.Windows10Sample_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  App1.Views.Shell
                userType           = new global::App1.Windows10Sample_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_Shell;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }