小编Jef*_*hen的帖子

如何在Windows 10 UWP中实现图表控件

我需要实现线性图.Windows 10 UWP是否有任何图表控件?有什么建议?

谢谢

win-universal-app windows-10 windows-10-mobile

15
推荐指数
2
解决办法
1万
查看次数

在xaml设计器中发生System.NullReferenceException

我使用Visual Studio 2015创建了一个C++ UWP Windows 10应用程序.但是,我无法在设计器中可视化任何xaml,因为我总是收到System.NullReferenceException错误.我怎样才能解决这个问题?

xaml visual-studio-designer win-universal-app windows-10 visual-studio-2015

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

W10 UWP - 将远程图像设置为桌面墙纸/锁屏

我正在尝试在我的W10 UWP应用中将远程图像设置为桌面壁纸/手机锁屏:

string name = "test_image.jpg";
Uri uri = new Uri("http://www.ucl.ac.uk/news/news-articles/1213/muscle-fibres-heart.jpg");

// download image from uri into temp storagefile
var file = await StorageFile.CreateStreamedFileFromUriAsync(name, uri, RandomAccessStreamReference.CreateFromUri(uri));

// file is readonly, copy to a new location to remove restrictions
var file2 = await file.CopyAsync(KnownFolders.PicturesLibrary);

// test -- WORKS!
//var file3 = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Design/1.jpg"));

// try set lockscreen/wallpaper
if (ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) // Phone
    success = await UserProfilePersonalizationSettings.Current.TrySetLockScreenImageAsync(file2);
else // PC
    success = await UserProfilePersonalizationSettings.Current.TrySetWallpaperImageAsync(file2);
Run Code Online (Sandbox Code Playgroud)

file1不起作用,因为它是只读的,所以我将它复制到一个新的位置(图片库)以删除限制 - > file2.

注意: …

c# wallpaper windows-runtime win-universal-app windows-10

7
推荐指数
1
解决办法
1438
查看次数

UWP应用中的设备ID(阈值1)

在Phone 8.1中,您可以使用HardwareIdentification获取设备ID ,即使文档说它存在于桌面应用程序中,它也不存在于UWP应用程序中.

没有硬件配置文件的屏幕截图

获取UWP的硬件ID的替代方法或方法是什么?

c# win-universal-app windows-10

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