开发者

How to change text to bold dynamically?

I have text box in which I can type text using windows phone keyboard. My requirement is, while I am typing and when I click on a button with name say Bold, after this click the text which I will type next should be in Bold and when I click on the button again, it should stop that function and the next typed text should be in normal text. 开发者_如何转开发For Example: Hello, I am good. How are you?

I am trying passing the text box text to a web browser and then storing the string into variable. But not getting the exact solution for my requirement. Please help me out with this. Any example or link with code will be more helpful in understanding.

Thanks in advance.


To do this 'properly' you are going to have ot wait for the Mango RichTextBox to become available. Before that, I think your approach using a WebControl makes sense.


You are looking for the concept of a RichTextBox control on Windows Phone. Out of the box, there is no such control in the SDK. There is a static RichTextBox that can be used to display rich text contents (more details here), but not a dynamic one (that accepts user input).

There are third-party controls, though, that accomplish the task you are looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜