示例#1
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember xamlMember = null;
            global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "ContosoCookbook.HubPage.NavigationHelper":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.HubPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_0_HubPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.HubPage.DefaultViewModel":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.HubPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_1_HubPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.SearchResultsPage.DefaultViewModel":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SearchResultsPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_2_SearchResultsPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.SearchResultsPage.NavigationHelper":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SearchResultsPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_3_SearchResultsPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.SectionPage.NavigationHelper":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SectionPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_4_SectionPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.SectionPage.DefaultViewModel":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SectionPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_5_SectionPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.ItemPage.NavigationHelper":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.ItemPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_6_ItemPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;
            case "ContosoCookbook.ItemPage.DefaultViewModel":
                userType = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.ItemPage");
                xamlMember = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_7_ItemPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            }
            return xamlMember;
        }
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember   xamlMember = null;
            global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "ContosoCookbook.HubPage.NavigationHelper":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.HubPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_0_HubPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.HubPage.DefaultViewModel":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.HubPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_1_HubPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.SearchResultsPage1.DefaultViewModel":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SearchResultsPage1");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_2_SearchResultsPage1_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.SearchResultsPage1.NavigationHelper":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SearchResultsPage1");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_3_SearchResultsPage1_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.SectionPage.NavigationHelper":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SectionPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_4_SectionPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.SectionPage.DefaultViewModel":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.SectionPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_5_SectionPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.ItemPage.NavigationHelper":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.ItemPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "NavigationHelper", "ContosoCookbook.Common.NavigationHelper");
                xamlMember.Getter = get_6_ItemPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "ContosoCookbook.ItemPage.DefaultViewModel":
                userType          = (global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlUserType)GetXamlTypeByName("ContosoCookbook.ItemPage");
                xamlMember        = new global::ContosoCookbook.ContosoCookbook_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "ContosoCookbook.Common.ObservableDictionary");
                xamlMember.Getter = get_7_ItemPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            }
            return(xamlMember);
        }