#248 – Creating a List in a FlowDocument

You can include lists of items in a FlowDocument using the List block.

	<FlowDocument FontFamily="Cambria" FontSize="14">
		<Paragraph>Some Pixar films:</Paragraph>
		<List>
			<ListItem>
				<Paragraph>Toy Story</Paragraph>
				<Paragraph FontStyle="Italic">I can have a 2nd paragraph.</Paragraph>
			</ListItem>
			<ListItem>
				<Paragraph>A Bug's Life</Paragraph>
				</ListItem>
			<ListItem>
				<Paragraph>Toy Story 2</Paragraph>
				</ListItem>
			<ListItem>
				<Paragraph>Monsters, Inc.</Paragraph>
			</ListItem>
		</List>
	</FlowDocument>

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: