Beispiel #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

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

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

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

            switch (typeIndex)
            {
            case 0:   //  ComeFlyWithMe.Modelview.ViewModel
                userType           = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("ComeFlyWithMe.Modelview.ViewModelBase"));
                userType.Activator = Activate_0_ViewModel;
                userType.AddMemberName("Suitcases");
                userType.AddMemberName("SortedSuitcasesBornholm");
                userType.AddMemberName("SortedSuitcasesKairo");
                userType.AddMemberName("SortedSuitcasesParis");
                userType.AddMemberName("SortedSuitcasesRom");
                userType.AddMemberName("LoadedSuitcases");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  ComeFlyWithMe.Modelview.ViewModelBase
                userType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 2:   //  Object
                xamlType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  System.Collections.ObjectModel.ObservableCollection`1<ComeFlyWithMe.Model.Luggage>
                userType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<ComeFlyWithMe.Model.Luggage>"));
                userType.CollectionAdd = VectorAdd_3_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  System.Collections.ObjectModel.Collection`1<ComeFlyWithMe.Model.Luggage>
                userType               = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_4_Collection;
                userType.CollectionAdd = VectorAdd_4_Collection;
                xamlType               = userType;
                break;

            case 5:   //  ComeFlyWithMe.Model.Luggage
                userType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("Destination");
                userType.AddMemberName("SerialNumber");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 7:   //  UInt32
                xamlType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 9:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::ComeFlyWithMe.ComeFlyWithMe_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }