Beispiel #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  WinStoreApp.MainPage
                userType           = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                xamlType           = userType;
                break;

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

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Object":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "Windows.UI.Xaml.Controls.DataTemplateSelector":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.DataTemplateSelector));
                break;

            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "Int32":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Int32));
                break;

            case "Windows.UI.Xaml.Controls.Orientation":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Orientation));
                break;

            case "Boolean":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Boolean));
                break;

            case "Windows.UI.Xaml.Visibility":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Visibility));
                break;

            case "String":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

            case "Windows.UI.Xaml.Media.ImageSource":
                xamlType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Media.ImageSource));
                break;

            case "Windows.UI.Color":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Color), GetXamlTypeByName("System.ValueType"));
                userType.AddMemberName("A");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                                   "Byte");
                userType.AddMemberName("B");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                                   "Byte");
                userType.AddMemberName("G");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                                   "Byte");
                userType.AddMemberName("R");
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                                   "Byte");
                xamlType = userType;
                break;

            case "System.ValueType":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.ValueType), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "Byte":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Byte), GetXamlTypeByName("System.ValueType"));
                AddToMapOfTypeToStandardName(typeof(global::System.Byte),
                                                   "Byte");
                xamlType = userType;
                break;

            case "WinStoreApp.View.GridTemplateSelector":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.View.GridTemplateSelector), GetXamlTypeByName("Windows.UI.Xaml.Controls.DataTemplateSelector"));
                userType.Activator = Activate_3_GridTemplateSelector;
                xamlType = userType;
                break;

            case "WinStoreApp.View.DetailTemplateSelector":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.View.DetailTemplateSelector), GetXamlTypeByName("Windows.UI.Xaml.Controls.DataTemplateSelector"));
                userType.Activator = Activate_4_DetailTemplateSelector;
                xamlType = userType;
                break;

            case "WinStoreApp.Common.LayoutAwarePage":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_LayoutAwarePage;
                xamlType = userType;
                break;

            case "WinStoreApp.ClubAspectItems":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.ClubAspectItems), GetXamlTypeByName("WinStoreApp.Common.LayoutAwarePage"));
                userType.Activator = Activate_6_ClubAspectItems;
                xamlType = userType;
                break;

            case "WinStoreApp.ViewModel.DataSource":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.ViewModel.DataSource), GetXamlTypeByName("WinStoreApp.Common.BindableBase"));
                userType.Activator = Activate_7_DataSource;
                userType.AddMemberName("AllGroups");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.ClubAspectVM>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.ClubAspectVM>");
                userType.AddMemberName("Current");
                userType.AddMemberName("IsBusy");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("BusyVisibility");
                userType.AddMemberName("Groups");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.ClubAspectVM>),
                                                   "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.ClubAspectVM>");
                userType.AddMemberName("Group");
                userType.AddMemberName("QueryItems");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.CommonDataVM>");
                userType.AddMemberName("Item");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                userType.AddMemberName("ItemGroup");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                xamlType = userType;
                break;

            case "WinStoreApp.Common.BindableBase":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.Common.BindableBase), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.ClubAspectVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.ClubAspectVM>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.ClubAspectVM>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.ClubAspectVM>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.ClubAspectVM>");
                userType.Activator = Activate_9_ObservableCollection;
                userType.CollectionAdd = VectorAdd_9_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.ClubAspectVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection<global::WinStoreApp.ViewModel.ClubAspectVM>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection<global::WinStoreApp.ViewModel.ClubAspectVM>),
                                                   "System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.ClubAspectVM>");
                userType.Activator = Activate_10_Collection;
                userType.CollectionAdd = VectorAdd_10_Collection;
                xamlType = userType;
                break;

            case "WinStoreApp.ViewModel.ClubAspectVM":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.ViewModel.ClubAspectVM), GetXamlTypeByName("WinStoreApp.ViewModel.CommonDataVM"));
                userType.AddMemberName("MaxColumns");
                AddToMapOfTypeToStandardName(typeof(global::System.Int32),
                                                   "Int32");
                userType.AddMemberName("Orientation");
                userType.AddMemberName("IsBusy");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("BusyVisibility");
                userType.AddMemberName("IsEnabled");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("HasNoData");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("NoDataVisibility");
                userType.AddMemberName("None");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("NoneVisibility");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.CommonDataVM>");
                xamlType = userType;
                break;

            case "WinStoreApp.ViewModel.CommonDataVM":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.ViewModel.CommonDataVM), GetXamlTypeByName("WinStoreApp.Common.BindableBase"));
                userType.Activator = Activate_12_CommonDataVM;
                userType.AddMemberName("ListItem");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.Generic.List<WinStoreApp.ViewModel.CommonDataVM>");
                userType.AddMemberName("UniqueId");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Subtitle");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Date");
                userType.AddMemberName("DateText");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("URL");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Image");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.CommonDataVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.CommonDataVM>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.CommonDataVM>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WinStoreApp.ViewModel.CommonDataVM>");
                userType.Activator = Activate_13_ObservableCollection;
                userType.CollectionAdd = VectorAdd_13_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.CommonDataVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection<global::WinStoreApp.ViewModel.CommonDataVM>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.ObjectModel.Collection<WinStoreApp.ViewModel.CommonDataVM>");
                userType.Activator = Activate_14_Collection;
                userType.CollectionAdd = VectorAdd_14_Collection;
                xamlType = userType;
                break;

            case "System.Collections.Generic.List<WinStoreApp.ViewModel.CommonDataVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List<global::WinStoreApp.ViewModel.CommonDataVM>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.Generic.List<WinStoreApp.ViewModel.CommonDataVM>");
                userType.Activator = Activate_15_List;
                userType.CollectionAdd = VectorAdd_15_List;
                xamlType = userType;
                break;

            case "System.DateTime":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.DateTime), GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.ClubAspectVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.ClubAspectVM>), null);
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.ClubAspectVM>),
                                                   "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.ClubAspectVM>");
                xamlType = userType;
                break;

            case "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.CommonDataVM>":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.CommonDataVM>), null);
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.IEnumerable<global::WinStoreApp.ViewModel.CommonDataVM>),
                                                   "System.Collections.Generic.IEnumerable<WinStoreApp.ViewModel.CommonDataVM>");
                xamlType = userType;
                break;

            case "WinStoreApp.GroupedItemsPage":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.GroupedItemsPage), GetXamlTypeByName("WinStoreApp.Common.LayoutAwarePage"));
                userType.Activator = Activate_19_GroupedItemsPage;
                xamlType = userType;
                break;

            case "WinStoreApp.View.PrivacyPolicy":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.View.PrivacyPolicy), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_20_PrivacyPolicy;
                xamlType = userType;
                break;

            case "WinStoreApp.View.SettingsAbout":
                userType = new global::WinStoreApp.WinStoreApp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WinStoreApp.View.SettingsAbout), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_21_SettingsAbout;
                xamlType = userType;
                break;

            }
            return xamlType;
        }