(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Advanced Text Formatting in Windows Store Apps

(0 votes)
0 comments   /   posted by Silverlight Show on Feb 05, 2013
Tags:   windows-store , windows-8 , jared-bienz

Read original post by Jared Bienz at The Good, the Bad and the Mobile Blog

A developer asked me recently how to format text in Windows Store apps. Specifically he wanted to add bullet points to some article text he was displaying.

The sample templates like GridApp include a special class called RichTextColumns under the Common folder. This class wraps a normal RichTextBlock (which would run off the screen if its text got too long) to splits it into multiple columns by generating more RichTextBlocks for any overflow. There’s a property on RichTextColumns where you specify the content to be displayed called RichTextContent. It’s where any child markup in Xaml gets stored at runtime. So, in order to format the text, we need to change the content of the RichTextContent property.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter