Пример #1
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::MVVM.MVVM_XamlTypeInfo.XamlMember   xamlMember = null;
            global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "MVVM.ViewModels.Base.ViewModelLocator.MainViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.ViewModels.Base.ViewModelLocator");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "MainViewModel", "MVVM.ViewModels.MainViewModel");
                xamlMember.Getter = get_0_ViewModelLocator_MainViewModel;
                xamlMember.SetIsReadOnly();
                break;
            }
            return(xamlMember);
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::MVVM.MVVM_XamlTypeInfo.XamlMember   xamlMember = null;
            global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "MVVM.PersonViewModel.Title1":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonViewModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Title1", "String");
                xamlMember.Getter = get_0_PersonViewModel_Title1;
                xamlMember.Setter = set_0_PersonViewModel_Title1;
                break;

            case "MVVM.PersonViewModel.Title2":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonViewModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Title2", "String");
                xamlMember.Getter = get_1_PersonViewModel_Title2;
                xamlMember.Setter = set_1_PersonViewModel_Title2;
                break;

            case "MVVM.PersonViewModel.Collection":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonViewModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Collection", "System.Collections.ObjectModel.ObservableCollection`1<MVVM.PersonModel>");
                xamlMember.Getter = get_2_PersonViewModel_Collection;
                xamlMember.Setter = set_2_PersonViewModel_Collection;
                break;

            case "MVVM.PersonModel.Name":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Name", "String");
                xamlMember.Getter = get_3_PersonModel_Name;
                xamlMember.Setter = set_3_PersonModel_Name;
                break;

            case "MVVM.PersonModel.Gender":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Gender", "Char");
                xamlMember.Getter = get_4_PersonModel_Gender;
                xamlMember.Setter = set_4_PersonModel_Gender;
                break;

            case "MVVM.PersonModel.Age":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.PersonModel");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "Age", "Int32");
                xamlMember.Getter = get_5_PersonModel_Age;
                xamlMember.Setter = set_5_PersonModel_Age;
                break;

            case "MVVM.FristPage.NavigationHelper":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.FristPage");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "NavigationHelper", "MVVM.Common.NavigationHelper");
                xamlMember.Getter = get_6_FristPage_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.FristPage.DefaultViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.FristPage");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "MVVM.Common.ObservableDictionary");
                xamlMember.Getter = get_7_FristPage_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;
            }
            return(xamlMember);
        }
Пример #3
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::MVVM.MVVM_XamlTypeInfo.XamlMember   xamlMember = null;
            global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "MVVM.View.Map.DefaultViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Map");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "MVVM.Common.ObservableDictionary");
                xamlMember.Getter = get_0_Map_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.Map.NavigationHelper":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Map");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "NavigationHelper", "MVVM.Common.NavigationHelper");
                xamlMember.Getter = get_1_Map_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.Menu.DefaultViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Menu");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "MVVM.Common.ObservableDictionary");
                xamlMember.Getter = get_2_Menu_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.Menu.NavigationHelper":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Menu");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "NavigationHelper", "MVVM.Common.NavigationHelper");
                xamlMember.Getter = get_3_Menu_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.MenuItem.DefaultViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.MenuItem");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "MVVM.Common.ObservableDictionary");
                xamlMember.Getter = get_4_MenuItem_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.MenuItem.NavigationHelper":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.MenuItem");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "NavigationHelper", "MVVM.Common.NavigationHelper");
                xamlMember.Getter = get_5_MenuItem_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.Restaurant.DefaultViewModel":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Restaurant");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "DefaultViewModel", "MVVM.Common.ObservableDictionary");
                xamlMember.Getter = get_6_Restaurant_DefaultViewModel;
                xamlMember.SetIsReadOnly();
                break;

            case "MVVM.View.Restaurant.NavigationHelper":
                userType          = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.View.Restaurant");
                xamlMember        = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "NavigationHelper", "MVVM.Common.NavigationHelper");
                xamlMember.Getter = get_7_Restaurant_NavigationHelper;
                xamlMember.SetIsReadOnly();
                break;
            }
            return(xamlMember);
        }
Пример #4
0
        private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName)
        {
            global::MVVM.MVVM_XamlTypeInfo.XamlMember xamlMember = null;
            global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType;

            switch (longMemberName)
            {
            case "MVVM.ViewModels.Base.ViewModelLocator.MainViewModel":
                userType = (global::MVVM.MVVM_XamlTypeInfo.XamlUserType)GetXamlTypeByName("MVVM.ViewModels.Base.ViewModelLocator");
                xamlMember = new global::MVVM.MVVM_XamlTypeInfo.XamlMember(this, "MainViewModel", "MVVM.ViewModels.MainViewModel");
                xamlMember.Getter = get_0_ViewModelLocator_MainViewModel;
                xamlMember.SetIsReadOnly();
                break;
            }
            return xamlMember;
        }