简体   繁体   English

Windows Universal App是否具有C#和CSS?

[英]Windows Universal App with C# & CSS?

Is it possible to write an universal app for windows where the logic is written in C# and the styling takes place in HTML and CSS like it is possible with Xamarin Hybrid Apps for Android/iOS? 是否可以为Windows编写通用应用程序,而其中的逻辑是用C#编写的,而样式是使用HTML和CSS进行的,就像Xamarin Hybrid Apps for Android / iOS可以做到的那样?

So far I have only know of C# & XAML or Javascript & HTML/CSS. 到目前为止,我只了解C#和XAML或Javascript和HTML / CSS。 Either I have to rewrite all my styling in XAML or all my logic in javascript. 我必须用XAML重写所有样式,或者用javascript重写所有逻辑。

Have you heard about using Windows Runtime Components which should do what you are asking for? 您是否听说过要使用Windows Runtime组件,该组件应该执行您的要求?

https://msdn.microsoft.com/en-us/library/hh441572.aspx https://msdn.microsoft.com/en-us/library/hh441572.aspx

"By using the Windows Runtime, you can create components (essentially DLLs) in C++, C#, or Visual Basic, and call into them in a simple and natural way from a Windows Store app that's built by using JavaScript" “通过使用Windows运行时,您可以用C ++,C#或Visual Basic创建组件(本质上是DLL),并通过使用JavaScript构建的Windows应用商店应用以简单自然的方式调用它们”

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

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