桌面UWP上缺少缩略图联系人 [英] Missing Thumbnail contact on desktop UWP
问题描述
我使用此代码(在WinPhone 8.1上相同)来回溯缩略图联系人:
Hi, I use this code (the same on WinPhone 8.1) for retrive a the thumbnail contact:
< span style ="font-size:small">
Windows.ApplicationModel.Contacts.Contact contact = await contactStore.GetContactAsync(c.Id);
if(contact.Thumbnail!= null)
if(contact.Thumbnail != null)
{
Windows.Storage.Streams.IRandomAccessStreamWithContentType thumbnailStream = await contact。 Thumbnail.OpenReadAsync();
Windows.Storage.Streams.IRandomAccessStreamWithContentType thumbnailStream = await contact.Thumbnail.OpenReadAsync();
// ...
此代码适用于Windows 10 Mobile但相同的应用程序(它是一个UWP)在桌面上被破坏了。桌面上的联系人选择器非常精简,它没有联系人缩略图(与我在Win10Mobile上的联系人相同)和
联系人对象的缩略图字段始终为空。
This code work well on Windows 10 Mobile but the same App (it is an UWP) is broken on desktop. The contact picker on desktop is very lean, it is have not the contact thumbnails (the same contacts that I have on my Win10Mobile) and the Thumbnail field of Contact object is always null.
为什么?
Why?
CP http://www.fjmsoftware.altervista.org
CP http://www.fjmsoftware.altervista.org
推荐答案
您好CLROS,
Hi CLROS,
您是否还可以提供包含此代码段的示例项目,以便我可以尝试对其进行故障排除在上下文中?您可以通过GitHub或OneDrive / Dropbox共享它。
Can you also provide a sample project with this code snippet in it, so that I can try to troubleshoot it in context? You can either share it via GitHub or OneDrive/Dropbox.
您可以按原样分享您的完整项目,但我建议一个准系统示例项目只是为了说明问题,以防您没有'我想分享整个项目。
You could share your full project as is, but I suggested a barebones sample project just to illustrate the problem, in case you didn't want to share the full project.
此外,这可能有助于隔离问题。
Also, this may help isolate the problem.
一切顺利!
Shahed Chowdhuri
Shahed Chowdhuri
Sr.技术布道者@ Microsoft
Sr. Technical Evangelist @ Microsoft
这篇关于桌面UWP上缺少缩略图联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!