Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Specifying figure widths in columns units

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Center" VerticalAlignment="Center"> <FlowDocumentPageViewer> <FlowDocument>   <Paragraph>     'floater'     <Figure HorizontalAnchor="ContentLeft" VerticalAnchor="ContentTop" Width="2 columns">       <Table BorderThickness="1" BorderBrush="Black">         <Table.Columns>           <TableColumn Width="25" />           <TableColumn />         </Table.Columns>         <TableRowGroup>           <TableRow>             <TableCell><Paragraph>A</Paragraph></TableCell>             <TableCell><Paragraph>B</Paragraph></TableCell>           </TableRow>           <TableRow>             <TableCell><Paragraph>C</Paragraph></TableCell>             <TableCell><Paragraph>D</Paragraph></TableCell>           </TableRow>           <TableRow>             <TableCell ColumnSpan="2">               <Paragraph TextAlignment="Center" FontStyle="Italic" Margin="0,5,0,0">                 This a test.               </Paragraph>             </TableCell>           </TableRow>         </TableRowGroup>       </Table>     </Figure>     anchored table    </Paragraph>   <Paragraph>     paragraph flows   </Paragraph>   <Paragraph>     this is a test    </Paragraph> </FlowDocument> </FlowDocumentPageViewer> </Page>