Thanks.  The demo works, and I can see there's a lot of capability here, but
I'm finding the text model kind of impenetrable.  To simply display rich
text, I need a TextPane, inside of which is a Document, inside of which are
Nodes.  One kind of Node is a Paragraph.  I see from the demo that I can put
plain text into a Paragraph.  How do I put styled text into it?

For example, in WPF I can do this:

  <TextBlock TextWrapping="Wrap">
    <Run FontWeight="Bold">Capacity:</Run>
    <Run>24 tons</Run>
    <Run FontStyle="Italic">(unloaded)</Run>
  </TextBlock>

What's the corresponding thing in BXML?  Seems like I have to do something
with Span objects, but it's very unclear what. I tried doing things like
this (where t: is the text package prefix):

  <TextPane>
    <t:Document>
      <t:Paragraph>
        <t:Span font="BOLD">
          <t:TextNode>Capacity:</t:TextNode>
        </t:Span>
        <t:TextNode>something</t:TextNode>
      </t:Paragraph>
    </t:Document>
  </TextPane>

but nothing at all displayed.

Or how would I do it programmatically?

Reply via email to