在 XAML 中嵌入脚本语言代码?

发布于 2024-10-04 11:55:57 字数 53 浏览 0 评论 0原文

如何在 XAML 定义中嵌入 Lua 脚本或 IronPython/IronRuby 脚本?

How to embed a Lua script or IronPython/IronRuby script within the XAML definition?

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

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

发布评论

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

评论(1

日记撕了你也走了 2024-10-11 11:55:57

Check out http://www.thinkbottomup.com.au/site/blog/Embedding_DLR_Scripts_in_XAML_Part_1 for a really good tutorial on doing this. The only shortcoming in his example is the way he defined the routed event handler only allows you to define a single event to be handled but it was easy to modify it to define a collection of events instead. IMHO this is a great way to move UI behavior into the view but I'll probably be slammed by the purists for saying it.

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