Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  UAChatDemo.Login
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Login;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  UAChatDemo.MainPage
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  UAChatDemo.Login
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Login;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  UAChatDemo.MainPage
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MainPage;
                userType.AddMemberName("HistoryList");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 5:   //  System.Collections.ObjectModel.Collection`1<UAChatDemo.Models.History>
                userType               = new global::UAChatDemo.UAChatDemo_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::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  UAChatDemo.Models.History
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_History;
                userType.AddMemberName("Id");
                userType.AddMemberName("Content");
                userType.AddMemberName("Lasttime");
                userType.AddMemberName("Type");
                userType.AddMemberName("UserName");
                userType.AddMemberName("UserId");
                userType.AddMemberName("Readed");
                userType.AddMemberName("IsMe");
                userType.AddMemberName("IsOnline");
                userType.AddMemberName("Avatar");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  String
                xamlType = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Int32
                xamlType = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Boolean
                xamlType = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  UAChatDemo.Private
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_Private;
                userType.AddMemberName("item");
                userType.AddMemberName("MessagesList");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  System.Collections.ObjectModel.ObservableCollection`1<UAChatDemo.Models.Messages>
                userType = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<UAChatDemo.Models.Messages>"));
                userType.CollectionAdd = VectorAdd_12_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 13:   //  System.Collections.ObjectModel.Collection`1<UAChatDemo.Models.Messages>
                userType               = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_13_Collection;
                userType.CollectionAdd = VectorAdd_13_Collection;
                xamlType               = userType;
                break;

            case 14:   //  UAChatDemo.Models.Messages
                userType           = new global::UAChatDemo.UAChatDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_14_Messages;
                userType.AddMemberName("MyProperty");
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }