简体   繁体   English

我可以将Windows存储应用程序C#代码(命名空间)用于桌面应用程序吗?

[英]Can i use windows store app C# code (namespace) for desktop app?

Windows store apps (windows 8.1) provides c# sample code (namespaces) like for usb device communication. Windows应用商店应用程序(Windows 8.1)提供c#示例代码(命名空间),例如用于USB设备通信。 Can i use same c# sample code for windows desktop app or is there any way to use those in windows desktop app. 我可以将相同的C#示例代码用于Windows桌面应用程序,还是可以在Windows桌面应用程序中使用这些示例代码。

Yes, it is possible! 对的,这是可能的!

If it is a good idea or not is another question. 是否是个好主意是另一个问题。 Scott Hanselman, well known Microsoft employee, has a nice blog about this problem. 著名的Microsoft员工Scott Hanselman拥有一个有关此问题的不错的博客。 You can find it here: 你可以在这里找到它:

http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在 Windows 表格 C# 应用程序中访问桌面吗? - Can I acess the desktop in. Windows Form C# app? 如何从C#桌面应用程序中检索Windows应用商店应用程序的图标? - How do I retrieve a Windows Store app's icon from a C# desktop app? 我可以在Windows应用商店应用中使用Awesomium吗? - Can I use Awesomium in Windows Store App? 我不能在 c#(Windows 窗体应用程序)中使用变量 - I can't use the variable in c# (Windows Form App) 如何使用Add-Type通过System.Windows.Forms命名空间添加C#代码? - How can I Use Add-Type to add C# code with System.Windows.Forms namespace? Windows应用商店应用 - XAML - C# - 在代码中访问ThemeResource - Windows Store App - XAML - C# - Access ThemeResource in code Windows Store应用程序中用C#编写的JavaScript代码 - JavaScript code in Windows Store app written in C# Windows应用商店-XAML UI元素在C#代码中不可见 - Windows Store App - XAML UI element not visible in C# code 我正在使用C#,缺少Windows Store App模板,该如何解决? - I'm using C#, Windows Store App template is missing, how can I fix this? 我可以轻松地将Windows Store桌面应用程序转换为通用或电话应用程序吗? - Can I easily convert windows store desktop app to universal or phone app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM