在 WPF 中创建自定义 Silverlight 设计器

发布于 2024-09-26 06:28:32 字数 626 浏览 0 评论 0原文

我需要在 WPF 中为 Silverlight 创建一个设计器,并且我正在考虑一些选项

  1. 使用 WebBrowser 控件, 在那里显示内容并 使用以下方式进行 Silverlight 通信 JavaScript 桥。不确定这是否 对于我的场景来说就足够了 需要支持(见下文)。这就是 KaXaml 正在做的事情。 SilverlightSpy 使用更复杂的 WebBrowser 控件,但我不确定它们如何与 Silverlight 通信。
  2. 使用套接字进行通信 主机和 Silverlight 之间。
  3. 托管 Silverlight 运行时(不在 浏览器),但直接使用 AgCore.dll。与 sllauncher 对 OOB 所做的类似。我想象 这就是 Blend/VS 正在做的事情。
  4. 执行 Blend 或 VS 正在执行的操作 哪个。

我显然不想使用 VS 和 Blend,但我需要支持一些控件的拖放以及分组、更改布局、在设计界面中移动控件以及显然更新 Xaml,因为这个动作。

关于在 WPF 中创建 Silverlight 设计器的最佳方式有什么想法、建议或指示吗?

I need to create a designer for Silverlight in WPF and I’m thinking of a few options

  1. Use a WebBrowser control,
    display the content there and
    communicate Silverlight using the
    JavaScript Bridge. Not sure if this
    will be enough for the scenarios I
    need to support (see below). This is what KaXaml is doing. SilverlightSpy uses a a more sophisticated WebBrowser control, but I'm not sure how they communicate with Silverlight.
  2. Communicate using Sockets
    between the Host and Silverlight.
  3. Host the Silverlight runtime (not in
    a browser), but directly using
    AgCore.dll. Similar to what sllauncher does for OOB. I imagine
    this is what Blend/VS are doing.
  4. Do whatever Blend or VS are doing
    which.

I obviously don’t want to go as far as VS and Blend, but I need to support drag and drop of some controls as well as grouping, changing the layout, moving controls in the design surface and obviously updating the Xaml as a result of this actions.

Any ideas, recommendations or pointers on the best way to create a Silverlight Designer in WPF?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

走走停停 2024-10-03 06:28:32

SharpDevelop 4 有一个基于 WPF 的编辑器,适用于 WPF 和 Silverlight -> http://www.icsharpcode.net/opensource/sd/

SharpDevelop 4 has a WPF based editor for WPF and Silverlight -> http://www.icsharpcode.net/opensource/sd/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文