[WP8.1] Windows Phone 8.1开发 [英] [WP8.1]Windows Phone 8.1 Development

查看:85
本文介绍了[WP8.1] Windows Phone 8.1开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在制作聊天应用程序。就像winodws手机信使一样。问题是,当我们点击附加文件按钮并选择图像时,我们在Windows手机信使中注意到了


。它将出现在textBox中。但在我的应用程序中,我不知道如何做到这一点。因为我搜索了很多,所以我发现Rich TextBox可以获得用户输入和图像。但我正在开发windows
手机8.1,所以Rich TextBox更新为Rich TextBlock。并且富文本块具有图像显示功能但无法获得用户输入。 


解决方案

你好Rwvin786,


感谢你提出这个问题。


我查了一下,发现它确实像你说的那样有效。所以我有一个想法。您是否可以像这样创建UI:


当我们询问用户输入时,我们在最后一部分放置了另一个文本框。上面的部分是RictTextBlock,我们的所有东西都可以通过我们的代码输入到上面的RictTextBlock,就像这样:



祝你好运,


Barry



I am making a chat application . just like winodws phone messenger . The problem is if we noticed in a windows phone messenger 

when we click on attach file button and choose image . It will appear inside the textBox . But in my application I dont know how to do this . As I SEARched a lot so i found that Rich TextBox can get user input as well as image . But I am developing in windows phone 8.1 so Rich TextBox updated to Rich TextBlock . And Rich TextBlock Has the feature of Image showing but not getting user's input . 

解决方案

Hello Rwvin786,

Thanks for this question.

I checked and find it really works like you said. So I have one idea. Does it possible for you to create UI like this:

When we ask user input, we put another textbox in the last part. And the above part is the RictTextBlock and all our things can be input to the above RictTextBlock by our code, just like this:

Best regards,

Barry


这篇关于[WP8.1] Windows Phone 8.1开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆