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

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

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

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

            case 3:   //  WallET.Views.MenuPage
                userType           = new global::WallET.WallET_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MenuPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
コード例 #2
0
ファイル: XamlTypeInfo.g.cs プロジェクト: PawelBor/WallET
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::WallET.WallET_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::WallET.WallET_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

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

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

            case 3:   //  WallET.Views.ChoicePage
                userType           = new global::WallET.WallET_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_ChoicePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 5:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::WallET.WallET_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  WallET.Views.MapPage
                userType           = new global::WallET.WallET_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_MapPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  WallET.Views.WalletPage
                userType           = new global::WallET.WallET_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_WalletPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  WallET.Views.ReceiptPage
                userType           = new global::WallET.WallET_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_ReceiptPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }