IValueConverter 不适用于混合设计

发布于 2024-09-29 06:02:56 字数 246 浏览 1 评论 0原文

我正在使用 Blend 4。我有一个列表项,我使用 这种方法,效果很好。问题在于应用于绑定的 IValueConverter。 Blend 似乎没有在设计时 UI 中处理转换器。 Blend 是否可以在设计时使用转换器来处理数据?

I am using Blend 4. I am having a list item which i am binding to sample dataset VM using this approach, which works fine. The issue is with the IValueConverter applied to binding. Blend doesn't seem to process the converter in design time UI. Is it possible for Blend to process data using converters in design time?

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

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

发布评论

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

评论(1

天荒地未老 2024-10-06 06:02:56

这本身并不是一个答案,但它可能仍然对您有帮助。

在这些情况下,我所做的就是在 Convert 方法中设置断点,将调试器附加到 Blend.exe 并打开有问题的 Xaml(在 Blend 中)。对于解决一些可混合性问题来说,这是一个非常好的技巧。

HTH。

This isn't an answer per-se but it might still help you.

What I do in these situations is stick a breakpoint in the Convert method, attach the debugger to Blend.exe and open the offending Xaml (in Blend). It's a real nice trick for solving some of these blendability issues.

HTH.

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