Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 延迟创建和背景创建在Windows Phone8.1中不存在_C#_Windows Phone 8.1 - Fatal编程技术网

C# 延迟创建和背景创建在Windows Phone8.1中不存在

C# 延迟创建和背景创建在Windows Phone8.1中不存在,c#,windows-phone-8.1,C#,Windows Phone 8.1,此代码在WP8中工作,但在WP8.1中对于DelayCreation和BackgroundCreation出现错误 public void SetImageSourcestring imagePath { 如果AppSettings.AddNewShowIconVisibility { BitmapImage bmImage=BitmapCreateOptions.DelayCreation | BitmapCreateOptions.BackgroundCreation; } } WinRT上

此代码在WP8中工作,但在WP8.1中对于DelayCreation和BackgroundCreation出现错误

public void SetImageSourcestring imagePath { 如果AppSettings.AddNewShowIconVisibility { BitmapImage bmImage=BitmapCreateOptions.DelayCreation | BitmapCreateOptions.BackgroundCreation; } }
WinRT上只支持IgnoreImageCache:那么如何使用DelayCreation和BackgroundCreation呢?因为它们不可用,所以您不能使用DelayCreation和BackgroundCreation。使用DelayCreation和BackgroundCreation的替代方案是什么