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

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

            switch (typeIndex)
            {
            case 0:   //  Todo.BlankPage1
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_BlankPage1;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

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

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

            switch (typeIndex)
            {
            case 0:   //  Todo.BlankPage1
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_BlankPage1;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  Todo.Models.BoolToVisibilityConverter
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_BoolToVisibilityConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::Todo.Todo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Todo.MainPage
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.AddMemberName("ViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Todo.ViewModels.TodoItemViewModel
                userType = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
コード例 #3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Todo.Todo_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Todo.Todo_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Todo.EditItem
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_EditItem;
                userType.AddMemberName("Date");
                userType.AddMemberName("Title");
                userType.AddMemberName("Description");
                userType.AddMemberName("Id");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  System.DateTimeOffset
                userType = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  System.ValueType
                userType = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 5:   //  Object
                xamlType = new global::Todo.Todo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  String
                xamlType = new global::Todo.Todo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Todo.ListItem
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_ListItem;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Todo.MainPage
                userType           = new global::Todo.Todo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }