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

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

            switch (typeIndex)
            {
            case 0:   //  InfoteriaWeatherApp.MainPage
                userType           = new global::WeatherApp.WeatherApp_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::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
コード例 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  WeatherApp.MainPage
                userType           = new global::WeatherApp.WeatherApp_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::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  WeatherApp.Pages.WeatherInfoPage
                userType           = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_WeatherInfoPage;
                userType.AddMemberName("DayList");
                userType.AddMemberName("NavigationHelper");
                userType.AddMemberName("DefaultViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  System.Collections.ObjectModel.ObservableCollection`1<WeatherApp.Models.WeatherData.Day>
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<WeatherApp.Models.WeatherData.Day>"));
                userType.CollectionAdd = VectorAdd_4_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 5:   //  System.Collections.ObjectModel.Collection`1<WeatherApp.Models.WeatherData.Day>
                userType               = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_5_Collection;
                userType.CollectionAdd = VectorAdd_5_Collection;
                xamlType               = userType;
                break;

            case 6:   //  Object
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  WeatherApp.Models.WeatherData.Day
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("dt");
                userType.AddMemberName("time");
                userType.AddMemberName("IconPath");
                userType.AddMemberName("temp");
                userType.AddMemberName("pressure");
                userType.AddMemberName("humidity");
                userType.AddMemberName("weather");
                userType.AddMemberName("speed");
                userType.AddMemberName("deg");
                userType.AddMemberName("clouds");
                userType.AddMemberName("rain");
                userType.AddMemberName("snow");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Int32
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  System.DateTime
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 10:   //  System.ValueType
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 11:   //  String
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  WeatherApp.Models.WeatherData.Temp
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  Double
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 14:   //  System.Collections.Generic.List`1<WeatherApp.Models.WeatherData.Weather>
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_14_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 15:   //  WeatherApp.Models.WeatherData.Weather
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("id");
                userType.AddMemberName("main");
                userType.AddMemberName("description");
                userType.AddMemberName("icon");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  System.Nullable`1<Double>
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 17:   //  WeatherApp.Common.NavigationHelper
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 18:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 19:   //  WeatherApp.Common.ObservableDictionary
                userType = new global::WeatherApp.WeatherApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_19_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }