SL4 中的 ValueConversion 使用哪个命名空间/DLL

发布于 2024-12-23 15:51:09 字数 199 浏览 2 评论 0原文

我正在将 SL3 应用程序转换为 SL4,但遇到了一些问题。

谁能给我提供 ValueConversion 的命名空间或 DLL 名称。

我在以下语句中收到错误。

[ValueConversion(typeof(ToolType), typeof(bool))]

感谢您分享您的时间。

I am converting a SL3 application to SL4 and facing some issues.

Can anyone provide me the namespace or DLL name for ValueConversion.

I am getting error on the following statement.

[ValueConversion(typeof(ToolType), typeof(bool))]

Thanks for sharing your time.

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

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

发布评论

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

评论(2

我还不会笑 2024-12-30 15:51:09

该类现在不属于 Silverlight 运行时类。
它之前位于 System.Windows.Data 命名空间中。
参考: http://msdn.microsoft.com/en -us/library/system.windows.data.valueconversionattribute.aspx

您可以像以前一样使用 IValueConverter 接口。

This class is not part of Silverlight Runtime Classes now.
it was there in System.Windows.Data namespace before.
Ref: http://msdn.microsoft.com/en-us/library/system.windows.data.valueconversionattribute.aspx

you can use IValueConverter interface as before.

别低头,皇冠会掉 2024-12-30 15:51:09

我在 ClipFlair Studio 中使用以下实现:
http://ClipFlair.codeplex.com(请参阅源代码中的 Client/Helpers/WPF_Compatibility/WPF_Compatibility.Silverlight 项目)

I use the following implementation in ClipFlair Studio:
http://ClipFlair.codeplex.com (see Client/Helpers/WPF_Compatibility/WPF_Compatibility.Silverlight project at the sourcecode)

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