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.


Comments (1)

  1. Putting Constants in your XAML File? x:Static Is Your Friend.

    Building an Avalon application: Part…

Skip to main content