SL4 中的 ValueConversion 使用哪个命名空间/DLL
我正在将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该类现在不属于 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.
我在 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)