真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能-創(chuàng)新互聯(lián)

這篇文章給大家分享的是有關(guān)怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過來看看吧。

為銅梁等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計(jì)制作服務(wù),及銅梁網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都做網(wǎng)站、網(wǎng)站建設(shè)、銅梁網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠(yuǎn)!

原文標(biāo)題:用WPF實(shí)現(xiàn)微信公眾號多客服功能

簡介:

這是利用WPF作為前端技術(shù),實(shí)現(xiàn)桌面版微信多客服系統(tǒng)。項(xiàng)目采用Prism作為前端框架,采用MVVM模式好的對UI和邏輯代碼分離,使用MefBootstrapper集成的MEF IOC容器,解耦各模塊對象。合理利用 IEventAggregator 實(shí)現(xiàn)事件和交互。文章在介紹對應(yīng)功能時(shí)候會給出相關(guān)實(shí)現(xiàn)的參考,讀者可以參考改進(jìn),引入到自己的項(xiàng)目中。

程序運(yùn)行界面及功能預(yù)覽:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

一、登陸:

功能:支持記住用戶和用戶設(shè)置,可選擇記住用戶密碼。

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

實(shí)現(xiàn)相關(guān):

自定義登陸窗口,引入Microsoft.Windows.Shell。可參考 WPF Custom Chrome Library 和  MSDN WindowChrome Class 有相關(guān)自定義窗口實(shí)現(xiàn)。

最小化、較大化、關(guān)閉按鈕功能實(shí)現(xiàn)可參考上面的例子。

登陸按鈕,自定義Style,重寫B(tài)utton的Template,參考代碼如下:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

 
        
            
                
                    
                        
                        
                        
                    
                    
                        
                            
                            
                        
                        
                            
                            
                        
                    
                
            
        
    

View Code

記住密碼,采用 XmlSerializer 把用戶信息序列化到本地xml配置文件中,程序啟動時(shí)加載該xml配置文件。用法 MSDN XmlSerializer


二、聊天窗口,信息發(fā)送

功能:文字發(fā)送,表情發(fā)送,圖片發(fā)送,屏幕截圖,快捷回復(fù)

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

RichTextBox 相關(guān)實(shí)現(xiàn):文字,表情,圖片所有輸入都是在富文本框 里實(shí)現(xiàn),因此針對 TextChanged 事件對輸入進(jìn)行一系列處理。

文字:不用做任何處理。

表情:文本框里輸入的是表情的轉(zhuǎn)義符號,然后根據(jù)轉(zhuǎn)義符號找到對應(yīng)表情圖片進(jìn)行替換。InlineUIContainer

Gif 動態(tài)圖:WPF中不支持Gif,所以要編寫自定義用戶控件作為用來顯示gif表情。參考 周銀輝 [WPF疑難]在WPF中顯示動態(tài)GIF

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

截圖功能:源碼在網(wǎng)上找到的,是Winform的一個(gè)截圖。做了小許修改引進(jìn)到項(xiàng)目。

參考:C# 實(shí)現(xiàn)完整功能的截圖控件(4)-完整版 http://www.php.cn/

三、客戶列表

控件為 TabControl,重寫了TabControl 的Style 和 TabItem的Style

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

    
        
        
        
        
        
        
            
                
                    
                        
                            
                            
                        
                        
                            
                            
                        
                        
                        
                            
                        
                    
                    
                        
                            
                        
                    
                
            
        
    

    
        
        
        
        
        
        
        
            
                
                    
                        
                            
                                
                                
                                    
                                
                            
                        
                    
                    
                        
                            
                        
                        
                            
                            
                            
                            
                        
                        
                            
                                
                                
                            
                            
                        

                    
                
            
        
    

View Code

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

四、快捷回復(fù)面板

應(yīng)用 TreeView 加 HierarchicalDataTemplate 實(shí)現(xiàn)樹形列表。

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

五、轉(zhuǎn)接客戶

自定義轉(zhuǎn)接客戶窗口,樣式Xaml代碼如下:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能


                        
                        
                        
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                                
                                                    
                                                    
                                                
                                            
                                            
                                                
                                                
                                                    
                                                    
                                                        
                                                    
                                                
                                            
                                        

                                        
                                            
                                                
                                            
                                        
                                    
                                
                            
                        
                    

View Code

轉(zhuǎn)接客戶列表,樣式Xaml代碼如下:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

    
        
        
        
        
        
        
        
        
        
            
                
                    
                        
                            
                                
                                    
                                        
                                        
                                        
                                    
                                    狀態(tài)
                                    工號
                                    昵稱
                                
                            
                            
                                
                            
                        
                    
                    
                        
                            
                        
                    
                
            
        
    
    
        
        
        
        
        
            
                
                    
                        
                            
                                
                                
                                
                            

                            
                                
                                    
                                        
                                        
                                    
                                
                                
                            
                            
                                
                            
                            
                                
                            
                        
                    
                    
                        
                            
                            
                        
                        
                            
                                
                                
                            
                            
                        
                        
                            
                        
                    
                
            
        
    

View Code

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

關(guān)于以上控件的事件與命令,引進(jìn)System.Windows.Interactivity.

在Xmal中導(dǎo)入命名控件 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"

使用代碼如下:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

                
                    
                        
                            
                        
                    
                

View Code

系統(tǒng)運(yùn)行截圖:

怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能

感謝各位的閱讀!關(guān)于“怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!


網(wǎng)站題目:怎么用WPF實(shí)現(xiàn)微信公眾號多客服功能-創(chuàng)新互聯(lián)
本文鏈接:http://weahome.cn/article/copdpj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部