private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType userType;

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

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

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

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

            case "WindowsBlogReader.FeedDataSource":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedDataSource), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_FeedDataSource;
                userType.AddMemberName("Feeds");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                userType.Activator = Activate_1_ObservableCollection;
                userType.CollectionAdd = VectorAdd_1_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection<global::WindowsBlogReader.FeedData>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>");
                userType.Activator = Activate_2_Collection;
                userType.CollectionAdd = VectorAdd_2_Collection;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedData":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedData), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_FeedData;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>),
                                                   "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                xamlType = userType;
                break;

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

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

            case "System.Collections.Generic.List<WindowsBlogReader.FeedItem>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>),
                                                   "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                userType.Activator = Activate_6_List;
                userType.CollectionAdd = VectorAdd_6_List;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedItem":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedItem), GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_FeedItem;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Author");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Content");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Link");
                xamlType = userType;
                break;

            case "System.Uri":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Uri), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "WindowsBlogReader.DateConverter":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.DateConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_9_DateConverter;
                xamlType = userType;
                break;

            case "WindowsBlogReader.MainPage":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType userType;

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

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

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

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

            case "Windows.UI.Xaml.Controls.ContentControl":
                xamlType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.ContentControl));
                break;

            case "Windows.UI.Xaml.Media.Brush":
                xamlType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Media.Brush));
                break;

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

            case "Double":
                xamlType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Double));
                break;

            case "Windows.UI.Xaml.Thickness":
                xamlType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Thickness));
                break;

            case "WindowsBlogReader.FeedDataSource":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedDataSource), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_FeedDataSource;
                userType.AddMemberName("Feeds");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                userType.Activator = Activate_1_ObservableCollection;
                userType.CollectionAdd = VectorAdd_1_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection<global::WindowsBlogReader.FeedData>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection<global::WindowsBlogReader.FeedData>),
                                                   "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>");
                userType.Activator = Activate_2_Collection;
                userType.CollectionAdd = VectorAdd_2_Collection;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedData":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedData), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_FeedData;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>),
                                                   "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                xamlType = userType;
                break;

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

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

            case "System.Collections.Generic.List<WindowsBlogReader.FeedItem>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List<global::WindowsBlogReader.FeedItem>),
                                                   "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                userType.Activator = Activate_6_List;
                userType.CollectionAdd = VectorAdd_6_List;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedItem":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedItem), GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_FeedItem;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Author");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("Content");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Link");
                xamlType = userType;
                break;

            case "System.Uri":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Uri), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "WindowsBlogReader.DateConverter":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.DateConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_9_DateConverter;
                xamlType = userType;
                break;

            case "WindowsBlogReader.MainPage":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType = userType;
                break;

            case "CharmFlyoutLibrary.CharmFlyout":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::CharmFlyoutLibrary.CharmFlyout), GetXamlTypeByName("Windows.UI.Xaml.Controls.ContentControl"));
                userType.Activator = Activate_11_CharmFlyout;
                userType.AddMemberName("Heading");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("HeadingBackgroundBrush");
                userType.AddMemberName("IsOpen");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                userType.AddMemberName("ParentFlyout");
                userType.AddMemberName("FlyoutHeight");
                AddToMapOfTypeToStandardName(typeof(global::System.Double),
                                                   "Double");
                userType.AddMemberName("FlyoutWidth");
                AddToMapOfTypeToStandardName(typeof(global::System.Double),
                                                   "Double");
                userType.AddMemberName("Logo");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                userType.AddMemberName("BackCommand");
                userType.AddMemberName("HeadingForegroundBrush");
                userType.AddMemberName("ContentForegroundBrush");
                userType.AddMemberName("ContentBackgroundBrush");
                userType.AddMemberName("ContentPadding");
                xamlType = userType;
                break;

            case "System.Windows.Input.ICommand":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Windows.Input.ICommand), null);
                xamlType = userType;
                break;

            case "WindowsBlogReader.MyCharmFlyouts":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.MyCharmFlyouts), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_13_MyCharmFlyouts;
                xamlType = userType;
                break;

            }
            return xamlType;
        }
Exemple #3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType       userType;

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

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

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

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

            case "WindowsBlogReader.FeedDataSource":
                userType           = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedDataSource), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_FeedDataSource;
                userType.AddMemberName("Feeds");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection <global::WindowsBlogReader.FeedData>),
                                             "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.ObservableCollection <global::WindowsBlogReader.FeedData>), GetXamlTypeByName("System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.ObservableCollection <global::WindowsBlogReader.FeedData>),
                                             "System.Collections.ObjectModel.ObservableCollection<WindowsBlogReader.FeedData>");
                userType.Activator     = Activate_1_ObservableCollection;
                userType.CollectionAdd = VectorAdd_1_ObservableCollection;
                xamlType = userType;
                break;

            case "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.ObjectModel.Collection <global::WindowsBlogReader.FeedData>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.ObjectModel.Collection <global::WindowsBlogReader.FeedData>),
                                             "System.Collections.ObjectModel.Collection<WindowsBlogReader.FeedData>");
                userType.Activator     = Activate_2_Collection;
                userType.CollectionAdd = VectorAdd_2_Collection;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedData":
                userType           = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedData), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_FeedData;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Description");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Items");
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List <global::WindowsBlogReader.FeedItem>),
                                             "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                xamlType = userType;
                break;

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

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

            case "System.Collections.Generic.List<WindowsBlogReader.FeedItem>":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Collections.Generic.List <global::WindowsBlogReader.FeedItem>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::System.Collections.Generic.List <global::WindowsBlogReader.FeedItem>),
                                             "System.Collections.Generic.List<WindowsBlogReader.FeedItem>");
                userType.Activator     = Activate_6_List;
                userType.CollectionAdd = VectorAdd_6_List;
                xamlType = userType;
                break;

            case "WindowsBlogReader.FeedItem":
                userType           = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.FeedItem), GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_FeedItem;
                userType.AddMemberName("Title");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Author");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("Content");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                             "String");
                userType.AddMemberName("PubDate");
                userType.AddMemberName("Link");
                xamlType = userType;
                break;

            case "System.Uri":
                userType = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Uri), GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case "WindowsBlogReader.DateConverter":
                userType           = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.DateConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_9_DateConverter;
                xamlType           = userType;
                break;

            case "WindowsBlogReader.MainPage":
                userType           = new global::WindowsBlogReader.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::WindowsBlogReader.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }