我试图在应用程序变为活动状态时恢复后台下载,但它始终在.GetCurrentDownloadsAsync()中提供文件未找到异常
IReadOnlyList<DownloadOperation> downloads = null;
try
{
downloads = await BackgroundDownloader.GetCurrentDownloadsAsync();
if (downloads.Count <= 0)
return;
foreach (DownloadOperation op in downloads)
{
op.Resume();
}
}
catch(Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}
Run Code Online (Sandbox Code Playgroud) 如何在windows store app xaml中编辑GRIDVIEW,以便我们可以使其垂直滚动而不是水平滚动.我使用XAML应该使用滚动视图手动创建一个新的用户元素,还是有任何简单的方法来实现这一点与Windows商店应用程序.
<GridView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemsSource="{Binding imagelist}">
<GridView.Resources>
<DataTemplate x:Key="DataTemplate1">
<Grid Width="250" Height="250" Tapped="Grid_Tapped">
<Image Source="{Binding imsourceurl}"/>
</Grid>
</DataTemplate>
</GridView.Resources>
<GridView.ItemTemplate>
<StaticResource ResourceKey="DataTemplate1"/>
</GridView.ItemTemplate>
</GridView>
Run Code Online (Sandbox Code Playgroud) 我试图在Windows 8.1上使用bing构建一个地图应用程序,但结果是

xaml代码
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:BingMapsWindowsStoreApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Maps="using:Bing.Maps"
x:Class="BingMapsWindowsStoreApp.MainPage"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Maps:Map x:Name="myMap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Credentials="AjeEXq9FGVKMaLZHTMZNRisDaCsToKEncpKIHbd"/>
</Grid>
Run Code Online (Sandbox Code Playgroud)