亲爱的
我正在研究一个针对客户的原型应用程序,以便提供应用程序设计的相关方面.
I am study a protyping application for a customer in order to deliver colaborative aspect of the application design.
为了更好地把握使用的基础,方案如下:
In order to better cacth the proper foundation to use for that, the scenario is as follow:
-项目经理将连接到他在其中设置演示文稿的网络托管门户.
- A project manager will connect to a hosted portal on the web where he has setup his presentation.
-然后,不同的员工需要遵循该演示文稿并与之进行实时协作
- Then different employee need to follow that presentation and collaborate in live with it
-PM开始在触摸屏上显示,例如项目计划图片,并且在解释过程中开始出现墨水并记下计划中的注释,以便更好地理解
- The PM start to show on a touch screen for instance a project plan picture and during explaination start to ink and take some note on the plan for better understanding
-然后员工手中拿着Windows平板电脑,然后可以在平板电脑上直接看到PM在触摸屏上显示的内容(包括添加的注释,并实时更新)
- Then employee have a Windows tablette in hands and then can see directly on the tablet what the PM is showing on the touch screen ( included added annotation, and update in live)
-然后,员工还可以直接在平板电脑上放置一些注释,并将其注释在PM触摸屏上
- Then employee could also place some annotation directly from their tablet, and its refelcted on PM touch screen
我要达到的目标:
为此,我想做的是如何将触摸屏上发生的事情现场直播到平板电脑和平板电脑上.如何将平板电脑上的笔记发送出去,以便在触摸屏上可见(可以是墨水,文本等).
What I am trying to do out of this is how can I get in live what is happening on touch screen to tablet and reverse. How notes taken from tablet could be send out in order to be visible on touch screen ( could be inking, text,..)
还有什么技术可以用来使Ink指向,对象位置,触摸输入发送到其他设备.
And also what technique to be used in order that Ink points, object position, touch input, gets send to others devices .
我是否必须记录所有触摸输入并对其进行序列化并在另一侧重建触摸顺序?
Do I have to records all touch input and serialize them and rebuild the touch sequence on the other side ?
我不知道如何处理这个问题并寻找正确的方法,知道它应该很快.
I have no idea how to approach this and looking for proper way, knowing that it should be fast.
感谢您的评论
致谢
推荐答案
>>我是否必须记录所有触摸输入并对其进行序列化并重建触摸顺序在另一边?
是的.为了使一个客户端能够与另一个客户端对话,您应该在两个客户端之间的中介服务器之间使用服务器.如何推送"或从单个服务器向几个不同的客户端广播更新不是一个WPF主题 但是您可以例如使用WCF双工服务.有关这些工作原理的信息,请参考MSDN: msdn.microsoft/en-us/library/ms731064%28v = vs.110%29.aspx .
Yes. In order for one client to be able to talk to another client, you should use a server in between that mediates between the clients. How to "push" or broadcast updates from a single server to several different clients is not really a WPF topic but you could for example use a WCF duplex service. Please refer to MSDN for information about how these works: msdn.microsoft/en-us/library/ms731064%28v=vs.110%29.aspx.
如果在客户端使用InkCanvas,则可以处理StrokeCollected事件以调用服务器并添加新的笔划,例如:
If you are using an InkCanvas on the client side you could for example handle the StrokeCollected event to call the server and add the new stroke, e.g.:
private void InkCanvas_StrokeCollected(object sender, InkCanvasStrokeCollectedEventArgs e) { System.Windows.Ink.Stroke stroke = e.Stroke; foreach(var point in stroke.StylusPoints) { //...add the points to a serializable type of yours... } //...and call the service }您实现的WCF回调接口会将从服务器收到的所有新笔画添加到InkCanvas的Strokes集合中,例如:
Your implementation of the WCF callback interface would then add any new strokes received from the server to the Strokes collection of the InkCanvas, e.g.:
StylusPointCollection points = new StylusPointCollection(); //add points received from the server points.Add(new StylusPoint(1, 1)); System.Windows.Ink.Stroke stroke = new System.Windows.Ink.Stroke(); stroke.DrawingAttributes.Color = Colors.Red; inkCanvas1.Strokes.Add(stroke);希望有帮助.
请记住,通过将有用的帖子标记为答案来关闭话题,然后在遇到新问题时开始新话题.请不要在同一线程中问几个问题.
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.
更多推荐
如何将触摸输入发送到不同的客户端应用程序
发布评论