【发布时间】:2015-04-03 09:05:32
【问题描述】:
我有一个使用 c# 开发的 Windows 窗体桌面应用程序。我想利用 WinRT 应用程序(尤其是 Windows 10)中可用的动态磁贴功能。活动磁贴中的数据将使用 WMI 查询 (Win32_LogicalDisk) 获取。 我该如何做到这一点?我不想重写整个应用程序。动态磁贴应在背景上更新,单击磁贴时,需要调用我的桌面应用程序 exe。是否可以从 Windows Store 应用程序中获取 WMI 数据并调用 exe? 我尝试使用 http://blogs.msdn.com/b/dmx/archive/2014/04/30/how-to-trigger-a-desktop-process-from-windows-store-apps-the-easy-way-using-the-brand-new-visual-studio-templates.aspx 中给出的 Brokered Windows 运行时组件。但是由于我收到“TypeLoadException”而无法正常工作。
提前致谢。
【问题讨论】:
-
您可以对桌面应用进行有限的磁贴自定义:msdn.microsoft.com/en-us/library/windows/apps/dn393983.aspx
标签: c# windows-runtime windows-store-apps typeloadexception