Welcome to MSDN Blogs Sign in | Join | Help

Marcelo's WebLog

Improving the world one entity at a time
How to nest Avalon List items in a document?

List objects are containers for ListItem objects. ListItem objects, in turn, contain blocks, such as paragraphs or lists. So, to nest multiple lists, you can do something like this.

<TextFlow
 xmlns='http://schemas.microsoft.com/winfx/avalon/2005'
 FontSize='16pt'>
 <Paragraph>Top-level text.</Paragraph>
 <List>
  <ListItem>
   <Paragraph>Level 1</Paragraph>
   <List>
    <ListItem>
     <Paragraph>Level 2</Paragraph>
     <List>
      <ListItem>
       <Paragraph>Level 3</Paragraph>
       <Paragraph>...</Paragraph>
      </ListItem>
     </List>
    </ListItem>
   </List>
  </ListItem>
 </List>
</TextFlow>

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm.

Posted: Tuesday, July 26, 2005 5:10 PM by marcelolr

Comments

Life, Universe and Everything according to Dirk said:


Putting Constants in your XAML File? x:Static Is Your Friend.
Building an Avalon application: Part...
# August 22, 2005 6:30 AM
New Comments to this post are disabled
Page view tracker