简体   繁体   中英

Windows phone application

Just started to look on how to develop on windows phone and i found about PhoneGap and Visual WebGui and i thought about the next ideea: if i start a new silverlight for windows phone application in visual studio and i create a web browser, like i saw in PhoneGap, and to use javascript and html5 for the application. The problem is that i want to use Sockets from C# (since javascript only has websockets... ), i know i can use java script code in C# to manipulat a html5 page but is it possible if the user clicks a button to use the Socket from C# to send a message to the server(like using javascript to call a method written in C#)?

Thanks

Yes, you can create your own FFI between JS & C# to create a bridge in both directions. The PhoneGap code should provide a good example of how to call in both directions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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