Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. How to you generate itemized lists in a RichTextBox? [NO SOLUTION POSSIBLE]

How to you generate itemized lists in a RichTextBox? [NO SOLUTION POSSIBLE]

Scheduled Pinned Locked Moved WPF
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fjparisIII
    wrote on last edited by
    #1

    There is no List document element in Silverlight 4. So how do you format an itemized list in a RichTextBox? Is there any easy way?

    K 1 Reply Last reply
    0
    • F fjparisIII

      There is no List document element in Silverlight 4. So how do you format an itemized list in a RichTextBox? Is there any easy way?

      K Offline
      K Offline
      Kunal Chowdhury IN
      wrote on last edited by
      #2

      Hey, What do you mean by itemized list in a RichTextBox?

      Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.


      Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial

      F 1 Reply Last reply
      0
      • K Kunal Chowdhury IN

        Hey, What do you mean by itemized list in a RichTextBox?

        Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.


        Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial

        F Offline
        F Offline
        fjparisIII
        wrote on last edited by
        #3

        KunalChowdhury wrote:

        What do you mean by itemized list in a RichTextBox?

        I don't understand your question. Surely you aren't asking me what an itemized list is, are you? It doesn't matter anyhow. There is no way to do it. I just expected it to be there since the new RichTextBox in Silverlight 4 takes a list of something called Paragraph elements and I just naturally assumed these were the same Paragraph elements that were in WPF, which do take itemized lists. But they only vaguely resemble the WPF Paragraph. They don't even have a Margin property which might be a starting point for rolling your own itemized lists. So forget it. I learned from a recent Code Camp I went to that Microsoft has given up the idea of ever supporting flow documents in Silverlight. Instead in a future release of Silverlight they will provide a way of supporting an HTML area within Silverlight content. (They've always supported the opposite: Silverlight content within HTML.) Once that happens, we'll be able to include itemized lists within Silverlight and the user won't even know or care that it's actually HTML that is generating the itemized list. I guess Microsoft figured it was easier to rely on existing technology rather than reinventing the wheel. Trouble is, they should have done this ages ago. Meanwhile, we have to wait and wait, and in the meantime put up with poorly formatted running text in Silverlight applications. The syntax for itemized lists in WPF is incredibly verbose anyhow. It will be a blessing to be able to use the concise syntax of HTML for generating itemized lists, and flow documents in general. The only thing is, it will never have the convenience of automatically flowing into multiple columns like WPF, although I am by no means an HTML programmer, so maybe that will be possible, also.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups