private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Pivot.Pivot_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Pivot.ItemPage
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_ItemPage;
                userType.AddMemberName("NavigationHelper");
                userType.AddMemberName("DefaultViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  Pivot.Common.NavigationHelper
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Pivot.Common.ObservableDictionary
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_5_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Object
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  String
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Pivot.PivotPage
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_PivotPage;
                userType.AddMemberName("NavigationHelper");
                userType.AddMemberName("DefaultViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Pivot.Pivot_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Pivot.ViewModels.Base.ViewModelLocator
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("MainViewModel");
                userType.AddMemberName("PivotViewModel");
                userType.AddMemberName("TabViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Pivot.ViewModels.MainViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Pivot.ViewModels.Base.ViewModelBase
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Pivot.ViewModels.PivotViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Pivot.ViewModels.TabViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Pivot.Controls.TabHeader
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_6_TabHeader;
                userType.AddMemberName("Glyph");
                userType.AddMemberName("Label");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  String
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Windows.UI.Color
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.AddMemberName("A");
                userType.AddMemberName("B");
                userType.AddMemberName("G");
                userType.AddMemberName("R");
                xamlType = userType;
                break;

            case 10:   //  System.ValueType
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 11:   //  Byte
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 12:   //  Pivot.Converters.ToUpperConverter
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_12_ToUpperConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  Pivot.Views.Base.PageBase
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_PageBase;
                userType.AddMemberName("SplitViewFrame");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  Windows.UI.Xaml.Controls.Frame
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 16:   //  Pivot.Behaviors.ItemClickCommandBehavior
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("Command");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  System.Windows.Input.ICommand
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, null);
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 18:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 19:   //  Pivot.MainView
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_19_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 20:   //  Pivot.Views.PivotView
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_20_PivotView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 21:   //  Pivot.Views.TabView
                userType           = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_21_TabView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemple #3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Pivot.Pivot_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Pivot.ViewModels.Base.ViewModelLocator
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("MainViewModel");
                userType.AddMemberName("PivotViewModel");
                userType.AddMemberName("TabViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Pivot.ViewModels.MainViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Pivot.ViewModels.Base.ViewModelBase
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Pivot.ViewModels.PivotViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Pivot.ViewModels.TabViewModel
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Pivot.Controls.TabHeader
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_6_TabHeader;
                userType.AddMemberName("Glyph");
                userType.AddMemberName("Label");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  String
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Windows.UI.Color
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.AddMemberName("A");
                userType.AddMemberName("B");
                userType.AddMemberName("G");
                userType.AddMemberName("R");
                xamlType = userType;
                break;

            case 10:   //  System.ValueType
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 11:   //  Byte
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 12:   //  Pivot.Converters.ToUpperConverter
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_12_ToUpperConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  Pivot.Views.Base.PageBase
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_PageBase;
                userType.AddMemberName("SplitViewFrame");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  Windows.UI.Xaml.Controls.Frame
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 16:   //  Pivot.Behaviors.ItemClickCommandBehavior
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("Command");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  System.Windows.Input.ICommand
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, null);
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 18:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Pivot.Pivot_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 19:   //  Pivot.MainView
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_19_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 20:   //  Pivot.Views.PivotView
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_20_PivotView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 21:   //  Pivot.Views.TabView
                userType = new global::Pivot.Pivot_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Pivot.Views.Base.PageBase"));
                userType.Activator = Activate_21_TabView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }