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

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

            switch (typeIndex)
            {
            case 0:   //  Piano.MainPage
                userType           = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("_recordStorageFile");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  Windows.Storage.StorageFile
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

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

            case 5:   //  Piano.RecordingsPage
                userType           = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_RecordingsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Piano.RSSPage
                userType           = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_RSSPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Piano.WebView
                userType           = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_WebView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemple #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Piano.Piano_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Piano.Piano_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Piano.MainPage
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("_recordStorageFile");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  Windows.Storage.StorageFile
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

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

            case 5:   //  Piano.RecordingsPage
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_RecordingsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Piano.RSSPage
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_RSSPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Piano.WebView
                userType = new global::Piano.Piano_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_WebView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }