Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember   xamlMember = null;
            global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "TopTenApp.ViewModel.ViewModelLocator.DefaultNavigationService":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "DefaultNavigationService", "TopTenApp.Services.INavigationService");
                xamlMember.Getter = get_0_ViewModelLocator_DefaultNavigationService;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.LoginViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "LoginViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_1_ViewModelLocator_LoginViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.GroupsViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "GroupsViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_2_ViewModelLocator_GroupsViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.ArticlesInGroupViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "ArticlesInGroupViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_3_ViewModelLocator_ArticlesInGroupViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.ArticleViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "ArticleViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_4_ViewModelLocator_ArticleViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.CommentsViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "CommentsViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_5_ViewModelLocator_CommentsViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.RegisterViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "RegisterViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_6_ViewModelLocator_RegisterViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.UserControlNavigation":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "UserControlNavigation", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_7_ViewModelLocator_UserControlNavigation;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.ViewModel.ViewModelLocator.FavoriteSelectionViewModel":
                userType          = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember        = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "FavoriteSelectionViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_8_ViewModelLocator_FavoriteSelectionViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "TopTenApp.Behavior.SelectionChangeBehavior.SelectionChanged":
                userType   = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.Behavior.SelectionChangeBehavior");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "SelectionChanged", "System.Windows.Input.ICommand");
                xamlMember.SetTargetTypeName("Windows.UI.Xaml.DependencyObject");
                xamlMember.SetIsAttachable();
                xamlMember.Getter = get_9_SelectionChangeBehavior_SelectionChanged;
                xamlMember.Setter = set_9_SelectionChangeBehavior_SelectionChanged;
                break;
            }
            return(xamlMember);
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember xamlMember = null;
            global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "TopTenApp.ViewModel.ViewModelLocator.DefaultNavigationService":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "DefaultNavigationService", "TopTenApp.Services.INavigationService");
                xamlMember.Getter = get_0_ViewModelLocator_DefaultNavigationService;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.LoginViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "LoginViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_1_ViewModelLocator_LoginViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.GroupsViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "GroupsViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_2_ViewModelLocator_GroupsViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.ArticlesInGroupViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "ArticlesInGroupViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_3_ViewModelLocator_ArticlesInGroupViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.ArticleViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "ArticleViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_4_ViewModelLocator_ArticleViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.CommentsViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "CommentsViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_5_ViewModelLocator_CommentsViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.RegisterViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "RegisterViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_6_ViewModelLocator_RegisterViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.UserControlNavigation":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "UserControlNavigation", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_7_ViewModelLocator_UserControlNavigation;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.ViewModel.ViewModelLocator.FavoriteSelectionViewModel":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.ViewModel.ViewModelLocator");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "FavoriteSelectionViewModel", "GalaSoft.MvvmLight.ViewModelBase");
                xamlMember.Getter = get_8_ViewModelLocator_FavoriteSelectionViewModel;
                xamlMember.SetIsReadOnly();
                break;
            case "TopTenApp.Behavior.SelectionChangeBehavior.SelectionChanged":
                userType = (global::TopTenApp.TopTenApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("TopTenApp.Behavior.SelectionChangeBehavior");
                xamlMember = new global::TopTenApp.TopTenApp_XamlTypeInfo.XamlMember(this, "SelectionChanged", "System.Windows.Input.ICommand");
                xamlMember.SetTargetTypeName("Windows.UI.Xaml.DependencyObject");
                xamlMember.SetIsAttachable();
                xamlMember.Getter = get_9_SelectionChangeBehavior_SelectionChanged;
                xamlMember.Setter = set_9_SelectionChangeBehavior_SelectionChanged;
                break;
            }
            return xamlMember;
        }