如何将小工具集成到我的 .NET 应用程序中
由于这些小工具可用于 Windows Vista 侧边栏和 Windows 7,我真的很想知道您是否可以将它们集成到您的 .NET 应用程序中。我想要一个类似的功能,并可能在我的应用程序中使用现有的小工具。
能做到吗?
As there are those gadgets available for the Windows Vista Sidebar and for Windows 7, I'd really like to know if you can integrate those into your .NET app. I want a similar feature and possibly use already existing gadgets into my app.
Can it be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是可能的,但并不容易。您的应用程序需要执行操作系统通常会执行的所有操作来托管它们,包括解析小工具清单、为每个小工具设置运行的 Web 容器、正确调用每个小工具的事件处理程序等
。小工具应该与操作系统集成,您需要支持。请参阅 http://msdn.microsoft.com/ en-us/library/aa965850%28v=VS.85%29.aspx
这不是一个适合胆小的人的项目,但如果你能让它工作的话那就太酷了。
玩得开心!
顺便说一句,有一个针对小部件的 W3C 草案标准,但它尚未真正实用。请参阅http://www.w3.org/TR/widgets/1
This is likely possible but is not going to be very easy. You're application will need to do everything that the OS would normally do to host them, including parsing the gadget manifests, setting up a web container for each to run in, calling each gadget's event handlers correctly, etc.
Basically, everything that a gadget is supposed to do to integrate with the OS, you'll need to support. See http://msdn.microsoft.com/en-us/library/aa965850%28v=VS.85%29.aspx
This is not a project for the faint of heart but would be pretty cool if you can get it to work.
Have fun!
BTW, there is a W3C draft standard for widgets but it's not really practical yet. See http://www.w3.org/TR/widgets/1