Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Set HorizontalAnchor, VerticalAnchor, Background for Figure

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title=""    Height="300"    Width="300">   <Grid>     <FlowDocumentReader>       <FlowDocument>         <Paragraph>           <Figure HorizontalAnchor="PageCenter" VerticalAnchor="PageCenter" Background="WhiteSmoke">             <Paragraph>This is a simple paragraph inside a Figure.                This is a simple paragraph inside a Figure.                This is a simple paragraph inside a Figure.             </Paragraph>           </Figure>         </Paragraph>       </FlowDocument>     </FlowDocumentReader>         </Grid> </Window>