【文件属性】:
文件名称:WCF & WPF 聊天程序源码
文件大小:374KB
文件格式:ZIP
更新时间:2010-12-06 16:37:15
WCF WPF
WCF & WPF 聊天程序源码
For those that have read some of my other CodeProject articles you will probably know, that I am not shy about trying out new technologies. But one good thing about that is that I generally share what I learn right here, and this article is one of the hardest ones I've done IMHO.
This article is about how to create a peer-to-peer chat application using Windows Communication Foundation (WCF) and also how to make it look nice using Windows Presentation Foundation (WPF).
When I first started reading about WCF, the first place I looked was the MSDN WCF Samples (which I read a lot), but they weren't that great. I also found lots of chat apps based on the MSDN versions, which were no good as they could not return the list of users within the chat application. So I wanted to create a nice WPF styled app with the list of connected chatters.
So I hunted around a bit more and eventually came across a damn fine/brilliant article by Nikola Paljetak, which I have tailored for this article. I have OK'd this with Nikola, and the original article content is here. To be honest the original article was pure brilliance (it should be mentioned Nikola is a Professor), but it took a while for me to get what was going on, as the code wasn't commented. I have now commented all code, so I think it will still make a very nice discussion/article for those that are new to WCF/WPF. I was totally new to WCF before this article, so if I can do it, so can all of you.
So that's what this article is all about. At the end of the article, I would hope you understand at least some of the key WCF areas, and possibly be inspired enough to look at the WPF side of this article also.
【文件预览】:
Chatters
----WPFChatter()
--------ChatControl.xaml(5KB)
--------chat.png(27KB)
--------bin()
--------ChatControl.xaml.cs(10KB)
--------obj()
--------Resources()
--------Window1.xaml(10KB)
--------SignInControl.xaml(3KB)
--------app.xaml(709B)
--------ChatService.cs(4KB)
--------SignInControl.xaml.cs(4KB)
--------App.config(621B)
--------WPFChatter.csproj(3KB)
--------SimpleBinding.suo(21KB)
--------Window1.xaml.cs(13KB)
--------ClassDiagram1.cd(4KB)
--------Proxy_Singleton.cs(12KB)
----chat.png(27KB)
----Chatters.sln(2KB)
----LICENSE.TXT(342B)
----Chatters.suo(81KB)
----Common()
--------Person.cs(3KB)
--------bin()
--------obj()
--------Properties()
--------Common.csproj(2KB)
--------ClassDiagram1.cd(424B)
----ChatService()
--------bin()
--------obj()
--------Properties()
--------Program.cs(1KB)
--------ChatService.cs(17KB)
--------App.config(1000B)
--------ChatService.csproj(3KB)
--------ClassDiagram1.cd(2KB)
--------HOW TO CREATE CLIENT PROXY.txt(184B)
网友评论
- 非常不错的资源
- 用起来还可以,当参考了
- 很有参考价值
- 牛逼啊 我要没豆豆了
- 评价下混一分
- 挺不错的。
- 功能比较简单,还可以参考吧
- 很不错的。挺好用
- 很好的演示代码,帮大忙了
- 很有学习价值的文档,感谢
- 运行不起来呀,
- 运行出错,尝试调试但没有成功,不过代码参考价值很大
- 学习价值很高
- 这么好的代码 我喜欢
- 非常不错,值得学习
- 还可以 有参考价值
- 马马虎虎,参考可以
- 不能调试 看不懂
- 我的电脑用不起来,不知道大家怎么弄的
- 代码不行啊,缺少dll文件
- 初学wpf,研究用
- 看看WPF代码,参考一下。
- 也就拿来看看源代码学习一下
- 垃圾代码。
- 聊天时候报错。。。
- 一般般吧,界面好丑
- 可以做参考 但是不能运行
- 基本上很能看懂,而且不能直接调试使用。
- 调试不通过,可能dll或.net版本的问题,不过Wcf编程方面有参考意义。
- 缺少DLL文件 肿么破啊~!