Mega Code Archive

 
Categories / VB.Net / WPF
 

Table in a Floater

<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     <Floater HorizontalAlignment="Right" Width="150">       <Table BorderThickness="1" BorderBrush="Black">         <Table.Columns>           <TableColumn Width="25" />           <TableColumn />         </Table.Columns>         <TableRowGroup>           <TableRow>             <TableCell><Paragraph>A</Paragraph></TableCell>             <TableCell><Paragraph>A</Paragraph></TableCell>           </TableRow>           <TableRow>             <TableCell><Paragraph>B</Paragraph></TableCell>             <TableCell><Paragraph>B</Paragraph></TableCell>           </TableRow>           <TableRow>             <TableCell ColumnSpan="2">               <Paragraph TextAlignment="Center" FontStyle="Italic" Margin="0,5,0,0">                 This is a test.               </Paragraph>             </TableCell>           </TableRow>         </TableRowGroup>       </Table>     </Floater>     Floater element appears inside of a paragraph.   </Paragraph>   <Paragraph>     second paragraph   </Paragraph> </FlowDocument> </FlowDocumentPageViewer> </Page>