[英]implementing the WP7 chatting style
I'm trying to design a chatting app, I want the sender/receiver's text to be shown inside these text balloons that's in the native messages app in WP7. 我正在尝试设计一个聊天应用程序,我希望发送者/接收者的文本显示在WP7中的本机消息应用程序中的这些文本气球中。
I can put each conversation in a textblock and color it like the current used theme, but still it won't have the pointy thing of the balloon here: 我可以将每个对话放在一个文本块中,并将其像当前使用的主题一样着色,但它仍然不会在这里有气球的尖锐的东西:
So how can I implement this to my app? 那么如何将这个实现到我的应用程序中呢?
Check out these links: 看看这些链接:
http://www.scottlogic.co.uk/blog/colin/2011/07/a-wp7-conversation-view/ http://www.scottlogic.co.uk/blog/colin/2011/07/a-wp7-conversation-view/
http://shawnoster.com/blog/post/Recreating-the-Windows-Phone-7-message-e2809cbubblee2809d-style-in-Silverlight.aspx http://shawnoster.com/blog/post/Recreating-the-Windows-Phone-7-message-e2809cbubblee2809d-style-in-Silverlight.aspx
They should have all you need to get started. 他们应该拥有开始所需的一切。
Read up on Shapes and Basic Drawing . 阅读形状和基本绘图 。
What you want to do , is to define two shapes (one being a mirror of the other), with the "triangle" popping out as part of the polygon. 你想要做的是定义两个形状(一个是另一个的镜像),“三角形”作为多边形的一部分弹出。
I'll recommend a tool like Expression Design or Expression Blend for creating the polygon. 我会推荐像Expression Design或Expression Blend这样的工具来创建多边形。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.