Exemple #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::Win8Sharer.Win8Sharer_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Win8Sharer.Win8Sharer_XamlTypeInfo.XamlUserType       userType;

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

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

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

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

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

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

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

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

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

            case "Win8Sharer.ItemDetailPage":
                userType           = new global::Win8Sharer.Win8Sharer_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Win8Sharer.ItemDetailPage), GetXamlTypeByName("Win8Sharer.Common.LayoutAwarePage"));
                userType.Activator = Activate_4_ItemDetailPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::Win8Sharer.Win8Sharer_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Win8Sharer.Win8Sharer_XamlTypeInfo.XamlUserType userType;

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

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

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

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

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

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

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

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

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

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

            }
            return xamlType;
        }