RX,反应式扩展 WPF,简单的参考问题
我想玩一下 RX,我下载了 4.0 WPF 版本,安装了它并开始寻找它的功能示例。我发现了一些代码,我应该足够简单,可以将其复制并粘贴到新项目中并开始使用。
我似乎需要对各种程序集的引用,但找不到任何相关文档。到目前为止,我有:
Microsoft.Expression.Interactions
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\Microsoft.Expression.Interactions.dll
System.CoreEx
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.CoreEx.dll
System.Interactive
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.Interactive.dll
System.Reactive
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.Reactive.dll
System.Windows.Interactivity
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\System.Windows.Interactivity.dll
所以我正在使用来自blend 3的DLL(我安装了blend 3和4,找不到4版本),然后是看起来核心的RX...
对此有任何建议,请指向那部分的文档在哪里?行为需要交互参考,但实际上这对我来说也是新的。
谢谢 伊恩
I wanted to play with RX, I downloaded the 4.0 WPF version, installed it and started looking for examples of what it does. I've found various bits of code which I should be simple enough to copy and paste into a new project and get going.
I seem to need references to various assemblies and I can't find any documentation for which. So far I have:
Microsoft.Expression.Interactions
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\Microsoft.Expression.Interactions.dll
System.CoreEx
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.CoreEx.dll
System.Interactive
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.Interactive.dll
System.Reactive
C:\Program Files (x86)\Microsoft Cloud Programmability\Reactive Extensions\v1.0.2856.0\Net4\System.Reactive.dll
System.Windows.Interactivity
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\System.Windows.Interactivity.dll
So I'm using a DLL from blend 3 (I have blend 3 and 4 installed, couldn't find a 4 version) and then the RX ones which seemed core...
Any advice on this, pointers to where the doc's are for that bit? The interactions references were needed for behaviors, but actually that's new to me too.
Thanks
Ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您将 Blend SDK 与 Rx 混淆了。 Rx.NET 与 WPF 或任何其他 UI 技术无关 - 它是一个通用库(就像 LINQ 一样)。 System.Interactive 和 System.Windows.Interactivity 完全不相关,尽管它们的名称非常相关!
如果您对 WPF4 中的 Rx 应用程序感兴趣,您应该查看我编写的一个名为 ReactiveUI 的 MVVM 库。页面底部有一个 WPF4 示例项目,它将向您展示可以在 UI 项目中使用 Rx 执行的操作。
I think you're confusing the Blend SDK with Rx. Rx.NET has nothing to do with WPF or any other UI technology - it's a general purpose library (like LINQ is). System.Interactive and System.Windows.Interactivity are completely unrelated, despite their very related names!
If you're interested in an application of Rx in WPF4, you should check out an MVVM Library that I wrote called ReactiveUI. There's a WPF4 sample project at the bottom of the page that will show you the kind of things you can do with Rx in UI projects.