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

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

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

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

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

            switch (typeIndex)
            {
            case 0:   //  MyApp.Product
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_Product;
                userType.AddMemberName("Name");
                userType.AddMemberName("Date");
                userType.AddMemberName("Color");
                userType.AddMemberName("Size");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 2:   //  String
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Double
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  MyApp.MainPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

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

            switch (typeIndex)
            {
            case 0:   //  MyApp.SkladnikConvert
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_SkladnikConvert;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 2:   //  MyApp.AddPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_2_AddPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  MyApp.DetailsPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_DetailsPage;
                userType.AddMemberName("Przepis");
                userType.AddMemberName("SkladnikiPrzepisu");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  System.Collections.ObjectModel.ObservableCollection`1<MyApp.Przepis>
                userType = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<MyApp.Przepis>"));
                userType.CollectionAdd = VectorAdd_6_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 7:   //  System.Collections.ObjectModel.Collection`1<MyApp.Przepis>
                userType               = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_7_Collection;
                userType.CollectionAdd = VectorAdd_7_Collection;
                xamlType               = userType;
                break;

            case 8:   //  MyApp.Przepis
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_8_Przepis;
                userType.AddMemberName("Id");
                userType.AddMemberName("Tytul");
                userType.AddMemberName("Opis");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  String
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  System.Collections.ObjectModel.ObservableCollection`1<MyApp.Models.SkladnikiPrzepisu>
                userType = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<MyApp.Models.SkladnikiPrzepisu>"));
                userType.CollectionAdd = VectorAdd_10_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 11:   //  System.Collections.ObjectModel.Collection`1<MyApp.Models.SkladnikiPrzepisu>
                userType               = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_11_Collection;
                userType.CollectionAdd = VectorAdd_11_Collection;
                xamlType               = userType;
                break;

            case 12:   //  MyApp.Models.SkladnikiPrzepisu
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_12_SkladnikiPrzepisu;
                userType.AddMemberName("Id");
                userType.AddMemberName("Skladnik");
                userType.AddMemberName("Przepis");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  MyApp.Favourites
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_Favourites;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  MyApp.Home
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_14_Home;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  MyApp.ListPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_15_ListPage;
                userType.AddMemberName("Przepisy");
                userType.AddMemberName("PrzepisySzukane");
                userType.AddMemberName("SkladnikiPrzepisu");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  MyApp.MainPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_16_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::MyApp.MyApp_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  MyApp.LeftRightContentControl
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_LeftRightContentControl;
                userType.AddMemberName("LeftContent");
                userType.AddMemberName("RightContent");
                userType.AddMemberName("LeftTemplate");
                userType.AddMemberName("RightTemplate");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  Windows.UI.Xaml.DataTemplate
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  MyApp.MainPage
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  MyApp.Pages.Chelsea
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Chelsea;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  MyApp.Pages.Home
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_Home;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  MyApp.Pages.Liverpool
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_Liverpool;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  MyApp.Pages.ManUited
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_ManUited;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  System.Collections.Generic.IList`1<Windows.UI.Xaml.DependencyObject>
                userType = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, null);
                userType.CollectionAdd = VectorAdd_10_IList;
                xamlType = userType;
                break;

            case 11:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  MyApp.Pages.Maps.Anfield
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_Anfield;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  MyApp.Pages.Maps.OldTrafford
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_OldTrafford;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  MyApp.Pages.Maps.StamFordBridge
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_14_StamFordBridge;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  MyApp.Pages.PremierLeague
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_15_PremierLeague;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  MyApp.GreaterOrEqualToIntToVisibilityConverter
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_16_GreaterOrEqualToIntToVisibilityConverter;
                userType.AddMemberName("CompareValue");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  Int32
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 18:   //  MyApp.Rating
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_18_Rating;
                userType.AddMemberName("Value");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 19:   //  MyApp.About
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_19_About;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 20:   //  MyApp.GenericRatingControl
                userType           = new global::MyApp.MyApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Control"));
                userType.Activator = Activate_20_GenericRatingControl;
                userType.AddMemberName("Rating");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 21:   //  Windows.UI.Xaml.Controls.Control
                xamlType = new global::MyApp.MyApp_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }