added samples
[windows-sources.git] / sdk / samples / WPFSamples / FlowFormatCatalog / xaml / window1.xaml
blob8aa08176f86b643e5a402c3df00e3b7c95b80175
1 
2 <FlowDocument 
3     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
5     FontFamily="Palatino Linotype"
6     FontSize="10"
7     FontStyle="Normal"
8     FontWeight="Normal"
9         Background="Azure"
10     Foreground="Black"
11     ColumnGap="5"
12     ColumnWidth="300"
13     ColumnRuleWidth="15"
14     ColumnRuleBrush="LightGray"
15     IsColumnWidthFlexible="True"    
16     FlowDirection="LeftToRight"
17     LineHeight="12"
18     MaxPageHeight="1000"
19     MaxPageWidth="1000"
20     MinPageHeight="400"
21     MinPageWidth="400"
22     PageHeight="700"
23     PageWidth="700"
24     PagePadding="5,10,5,10"
25     TextAlignment="Left"
28         <Paragraph FontSize="18">Flow format Example</Paragraph>
29             <Paragraph>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
30  laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
31  lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure.<LineBreak/></Paragraph>
32             <Paragraph>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
33  laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
34  lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure.<LineBreak/></Paragraph>
35             <Paragraph>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
36  laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
37  lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure.<LineBreak/></Paragraph>
38     <Paragraph>
39         <LineBreak/>
40     </Paragraph>
41     <Paragraph FontSize="18">More flow elements</Paragraph>
42     
43     <Paragraph FontSize="15">Inline, font type and weight, and a List</Paragraph>
44     
45     <List>
46       <ListItem><Paragraph>ListItem 1</Paragraph></ListItem>
47       <ListItem><Paragraph>ListItem 2</Paragraph></ListItem>
48       <ListItem><Paragraph>ListItem 3</Paragraph></ListItem>
49       <ListItem><Paragraph>ListItem 4</Paragraph></ListItem>
50       <ListItem><Paragraph>ListItem 5</Paragraph></ListItem>
51     </List>
53     <Paragraph>
54         <Bold>Bolded</Bold>
55     </Paragraph>
56     <Paragraph>
57         <Underline>Underlined</Underline>
58     </Paragraph>
59     <Paragraph>
60         <Bold><Underline>Bolded and Underlined</Underline></Bold>
61     </Paragraph>
62     <Paragraph>
63         <Italic>Italic</Italic>
64     </Paragraph>
65     <Paragraph>
66         <Span>The Span element, no inherent rendering</Span>
67     </Paragraph>
68     <Paragraph>
69         <Run>The Run element, no inherent rendering</Run>
70     </Paragraph>    
71     
72     <Paragraph>
73         <LineBreak/>
74     </Paragraph>
76     <Paragraph FontSize="15">Subscript, Superscript</Paragraph>
77         <Paragraph>
78           <Run Typography.Variants="Superscript">This text is Superscripted.</Run>  This text isn't.
79         </Paragraph>
80         <Paragraph>
81           <Run Typography.Variants="Subscript">This text is Subscripted.</Run> This text isn't.
82         </Paragraph>
83         <Paragraph>If a font does not support a particular form (such as Superscript) a default font form
84             will be displayed.
85          </Paragraph>
86     
87     <Paragraph>
88         <LineBreak/>
89     </Paragraph>
90     
91         <Paragraph FontSize="15">Blocks, breaks, paragraph</Paragraph>
92     <Section>
93         <Paragraph>A block section of text</Paragraph>
94     </Section>
95     <Section>
96         <Paragraph>Another block section of text</Paragraph>
97     </Section>
98     <Paragraph><LineBreak/></Paragraph>
99     
100     <Section>
101         <Paragraph>... and another section, preceded by a LineBreak</Paragraph>
102     </Section>
103     
104     <Section BreakPageBefore="True"/>
105     
106     <Section>
107         <Paragraph>... and another section, preceded by a PageBreak</Paragraph>
108     </Section>
109         
110     <Paragraph>Finally, a paragraph. Note the break between this paragraph ...</Paragraph>
111         
112     <Paragraph TextIndent="25">... and this paragraph, and also the left indention.</Paragraph>
113         
114     <Paragraph>
115         <LineBreak/>
116     </Paragraph>
117     
118 </FlowDocument>