Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

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

            case "Windows.UI.Xaml.Controls.Panel":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Panel));
                break;

            case "Windows.UI.Xaml.Controls.RichTextBlock":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.RichTextBlock));
                break;

            case "Windows.UI.Xaml.DataTemplate":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.DataTemplate));
                break;

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

            case "VerySimpleRSS.GroupedItemsPage":
                userType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.GroupedItemsPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_1_GroupedItemsPage;
                xamlType = userType;
                break;

            case "VerySimpleRSS.GroupDetailPage":
                userType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.GroupDetailPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_2_GroupDetailPage;
                xamlType = userType;
                break;

            case "VerySimpleRSS.Common.RichTextColumns":
                userType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.Common.RichTextColumns), GetXamlTypeByName("Windows.UI.Xaml.Controls.Panel"));
                userType.Activator = Activate_3_RichTextColumns;
                userType.SetContentPropertyName("VerySimpleRSS.Common.RichTextColumns.RichTextContent");
                userType.AddMemberName("RichTextContent");
                userType.AddMemberName("ColumnTemplate");
                xamlType = userType;
                break;

            case "VerySimpleRSS.ItemDetailPage":
                userType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.ItemDetailPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_4_ItemDetailPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

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

            case "Windows.UI.Xaml.Controls.Panel":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Panel));
                break;

            case "Windows.UI.Xaml.Controls.RichTextBlock":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.RichTextBlock));
                break;

            case "Windows.UI.Xaml.DataTemplate":
                xamlType = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.DataTemplate));
                break;

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

            case "VerySimpleRSS.GroupedItemsPage":
                userType           = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.GroupedItemsPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_1_GroupedItemsPage;
                xamlType           = userType;
                break;

            case "VerySimpleRSS.GroupDetailPage":
                userType           = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.GroupDetailPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_2_GroupDetailPage;
                xamlType           = userType;
                break;

            case "VerySimpleRSS.Common.RichTextColumns":
                userType           = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.Common.RichTextColumns), GetXamlTypeByName("Windows.UI.Xaml.Controls.Panel"));
                userType.Activator = Activate_3_RichTextColumns;
                userType.SetContentPropertyName("VerySimpleRSS.Common.RichTextColumns.RichTextContent");
                userType.AddMemberName("RichTextContent");
                userType.AddMemberName("ColumnTemplate");
                xamlType = userType;
                break;

            case "VerySimpleRSS.ItemDetailPage":
                userType           = new global::VerySimpleRSS.VerySimpleRSS_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VerySimpleRSS.ItemDetailPage), GetXamlTypeByName("VerySimpleRSS.Common.LayoutAwarePage"));
                userType.Activator = Activate_4_ItemDetailPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }