小编suv*_*san的帖子

后台下载程序中找不到文件异常

我试图在应用程序变为活动状态时恢复后台下载,但它始终在.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)

c# microsoft-metro windows-8 windows-store-apps

9
推荐指数
1
解决办法
959
查看次数

垂直滚动gridview XAML windows商店应用程序

如何在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)

.net c# windows windows-store-apps windows-8.1

6
推荐指数
1
解决办法
6733
查看次数

windows store app集成bing map在Windows 8.1上不起作用

我试图在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)

bing-maps windows-store-apps windows-8.1

4
推荐指数
1
解决办法
997
查看次数