本文介绍了WPF +在多个应用程序实例之间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要获取WPF应用程序的两个实例之间的信息(准确地说,是公共集合的内容).有帮助吗?
I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise). Any help?
推荐答案
您将需要使用进程间通信.
由于您使用的是WPF,因此使用的是.NET,因此建议您使用 Windows Communication Foundation .如果这些实例在同一系统上运行,那么通过WCF使用管道是一个不错的选择.
Since you're using WPF, and hence .NET, I'd recommend using Windows Communication Foundation. If these instances are running on the same system, using pipes via WCF is a great option.
这篇关于WPF +在多个应用程序实例之间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!