以下是Microsoft的官方示例(在wp 7.8中使用宽磁贴):
// Get the new FlipTileData type.
Type flipTileDataType = Type.GetType( "Microsoft.Phone.Shell.FlipTileData, Microsoft.Phone" );
// Get the ShellTile type so we can call the new version of "Update" that takes the new Tile templates.
Type shellTileType = Type.GetType( "Microsoft.Phone.Shell.ShellTile, Microsoft.Phone" );
当编译为wp7应用程序时,它在wp7.8和wp8中有效。但是在将项目目标转换为wp8之后,两个请求都返回null。为什么呢?