简体   繁体   English

当用HTML \\ WinJS编写应用程序时,第三方控件如何暴露给“ Windows Store应用程序”?

[英]How are third party controls exposed to “Windows Store apps” when app is written in HTML\WinJS?

How are third party controls exposed to "Windows Store apps" when app is written in HTML\\JS? 当使用HTML \\ JS编写应用程序时,第三方控件如何暴露给“ Windows应用商店应用程序”?

Does the vendor have to provide a C#\\VB.Net and WinJS version? 供应商是否必须提供C#\\ VB.Net和WinJS版本? And if so what work is involved in doing that, is it a complete re-write (I'm kind of assuming so but want to double check)? 如果是这样,那么涉及到什么工作,是否是一个完整的重写(我假设是这样,但想再次检查)?

If you want to share functionality like business logic and/or Windows Runtime access, you could create a one time component in C# and add it as a reference to your javascript project and use it as you would a regular javascript function. 如果要共享业务逻辑和/或Windows运行时访问等功能,则可以在C#中创建一个一次性组件,并将其添加为对javascript项目的引用,并像常规javascript函数一样使用它。

When talking about UI, javascript and C# sit on top of different things. 在谈论UI时,javascript和C#位于不同的事物之上。 You have WinJS and HTML controls for javascript and XAML for C# so I don't see a way you could actually share a UI component thru the different languages. 您具有适用于javascript的WinJS和HTML控件以及适用于C#的XAML ,所以我看不到一种可以通过不同语言实际共享UI组件的方法。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM