コード例 #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Navigation.Navigation_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  Navigation.MainPage
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Navigation.Page1
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Page1;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Navigation.Page2
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Page2;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Navigation.Page3
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Page3;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
コード例 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Navigation.Navigation_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  Navigation.ViewModels.Base.ViewModelLocator
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("FirstViewModel");
                userType.AddMemberName("SecondViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Navigation.ViewModels.FirstViewModel
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Navigation.ViewModels.Base.ViewModelBase
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Navigation.ViewModels.SecondViewModel
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Navigation.Converters.IntToVisibilityConverter
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_5_IntToVisibilityConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Navigation.Views.Base.PageBase
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Navigation.Views.FirstView
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.Views.Base.PageBase"));
                userType.Activator = Activate_9_FirstView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  Navigation.Views.SecondView
                userType           = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.Views.Base.PageBase"));
                userType.Activator = Activate_10_SecondView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
コード例 #3
0
ファイル: XamlTypeInfo.g.cs プロジェクト: rwecho/UAP-Samples
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Navigation.Navigation_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Navigation.ViewModels.Base.ViewModelLocator
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("FirstViewModel");
                userType.AddMemberName("SecondViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Navigation.ViewModels.FirstViewModel
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Navigation.ViewModels.Base.ViewModelBase
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Navigation.ViewModels.SecondViewModel
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Navigation.Converters.IntToVisibilityConverter
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_5_IntToVisibilityConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Navigation.Views.Base.PageBase
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Navigation.Navigation_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Navigation.Views.FirstView
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.Views.Base.PageBase"));
                userType.Activator = Activate_9_FirstView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  Navigation.Views.SecondView
                userType = new global::Navigation.Navigation_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Navigation.Views.Base.PageBase"));
                userType.Activator = Activate_10_SecondView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }