extjs 应用程序(也带有嵌入式 http 服务器)
是否有一个框架可以轻松地将 ExtJS 添加到普通的 .Net 应用程序中。 这样我只需创建一次 GUI,然后就可以通过嵌入式网络服务器进行访问。 这很棒,因为我可以远程访问服务器/服务/应用程序以及在本地进行操作。
我梦想的解决方案是: - 当本地 http 连接完成时,框架以某种方式将现有的 GUI (winforms) 转换为 ExtJS。 这样我就可以使用标准 GUI 工具来开发应用程序,并相信框架将在 http 请求完成时执行其转换魔法。
一个不太可取但也很酷的解决方案是: - 该框架公开了类似 ExtJS 的类,我在这些类上实例化并定义属性(如画布、按钮等)和回调(事件)。 然后,这些类用于在建立连接时创建 extjs GUI。
最不优选的解决方案是: - 必须手动执行 javascript 编码并处理传入的异步 ajax 调用,并以这种方式完成所有界面工作。
这样的东西已经存在了吗? 或者这是我将在接下来的 X 个月内制作的东西;^)
谢谢!
右
Is there a framework which allows easy adding of ExtJS to a normal .Net application.
This way I only have to create a GUI once, which is then accessible through an embedded webserver. This is great since I then can remote access the server/service/application as well as fiddle with it locally.
My dreamsolution would be:
- The framework somehow converts the existing GUI (winforms) to ExtJS, when a local http connection is done. This way I can just use the standard GUI tools to develop the app, and trust that the framework will perform its conversion magic when a http request is done.
A less preferable but also cool solution would be:
- The framework exposes ExtJS like classes which I instantiate and define properties on (like the canvas, the buttons, etc) and callbacks(events). Then these classes are used to create the extjs GUI when a connection is made.
The least preferable solution would be:
- To have to manually do javascript coding and handle incoming async ajax calls and this way do all the interface stuff.
Does something like this already exist?
Or is this something I'll be making for the next X months ;^)
thanks!
R
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我建议您使用 http://liveui.net 框架。 它提供基于 ASP.net 的控件,这些控件会自动转换为 Extjs 控件。 我还包含用于快速应用程序开发的有用工具,并且......它是免费的。
I would recommend you to use http://liveui.net framework. It provides ASP.net based controls which are translated to Extjs controls automatically. I also contains usefull tools for rapid application development and ... it is free.
您最好的选择是 http://www.coolite.com/
Your best bet is something like http://www.coolite.com/
http://www.visualwebgui.com/
你可以尝试看看这个框架,它有点贵但这听起来像是你正在寻找的东西,减去 EXTJS
http://www.visualwebgui.com/
You might try looking at this framework, it is a bit pricey but it sounds like what you are looking for, minus the EXTJS
您可能需要在这里重新考虑您的要求。 WinForms 模型与 ExtJS 模型或传统 HTML 表单有很大不同,因此将您的应用程序即时转换为 Web 应用程序将是非常困难的。 我自己研究 ExtJS 已经有一段时间了,但它是否具有所有标准 WebForms 控件的等效项? 那么第三方提供的用户控件和其他控件又如何呢? 以及所有者绘制的控件?
我建议您不要花几个月的时间在可能无法正常工作的事情上,而是考虑正确地对应用程序进行分层。 如果您分离数据层并将其公开为某种 Web 服务,那么您可以轻松地使它们可用于 win 表单应用程序和 ExtJS Web 应用程序。 只要将业务逻辑以及数据层保留在 Web 服务中,用户界面本身就应该足够容易制作。 可能很简单,以至于网络 GUI 的自动生成不值得花时间。
反正。 如果您真的想这样做,您可以考虑使用 Web 服务来描述您的 GUI 并动态构建您的 WinForms gui 和 ExtJS gui。 这两种技术都支持在代码中构建表单,因此您可以下载一个描述 GUI 的文件,并在用户第一次加载您的应用程序时构建它。 这将需要您编写两套 GUI 构建代码,但由于它将基于您控制的格式,因此可能比直接将 WinForms 应用程序转换为 ExtJS 更容易。
You may want to rethink your requirements here. The WinForms model is quite different from the ExtJS model or traditional HTML forms, so converting your application to a web application on the fly will be difficult at best. It is some time since I looked at ExtJS myself, but does it have equivalents of all the standard WebForms controls? And how about user controls and other controls delivered by third parties? And owner-drawn controls?
Instead of spending months on something that may not work properly after all, I would suggest that you look at properly layering your application. If you separate your data layer and expose it as web services of some sort then you can easily make them available for both a win forms application and your ExtJS web application. As long as you keep your business logic as well as your data layer inside the web services the user interface itself should be easy enough to make. Probably easy enough that the automatic generation of the web gui won't be worth spending time on.
Anyway. If you really really want to go this way you could consider using a web service to describe your GUI and build both your WinForms gui and ExtJS gui on the fly. Both technologies support building forms in code so you could download a file that describes the gui and build it the first time the user loads your application. That would require you to write two sets of gui-building code but since it would be based on a format that you control it would probably be easier than to convert a WinForms application to ExtJS directly.