Quantcast
Channel: 2,000 Things You Should Know About WPF » List
Viewing all articles
Browse latest Browse all 2

#248 – Creating a List in a FlowDocument

$
0
0

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>


Filed under: Controls Tagged: Controls, FlowDocument, List, WPF

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images