topical media & game development

talk show tell print

professional-xml-26-Listing-26-11.txt / txt



  <Window x:Class="XAML_Example.MyDocument"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="XAML_Example" Height="450" Width="800"
      >
    <Grid>
      <FlowDocumentReader Margin="5,50,5,5" Name="flowDocumentReader1">
        <FlowDocument>
          <Paragraph>
            <Italic>
              <Bold>This is the title of the document</Bold>
            </Italic>
          </Paragraph>
          <Paragraph>
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent mattis 
            euismod eros. Aliquam lobortis rhoncus purus ...
          </Paragraph>
          <Paragraph>
            Ut elit lectus, volutpat in, dictum vitae, faucibus vel, nisl. Integer 
            dictum pede vel lacus. Vestibulum turpis erat, gravida ...
          </Paragraph>
          <Paragraph>
            Pellentesque habitant morbi tristique senectus et netus et malesuada 
            fames ac turpis egestas. Vivamus iaculis ...
          </Paragraph>
          <Paragraph>
            <Image Source="Sunset.jpg" />
            <Italic>This is an image.</Italic>
          </Paragraph>     
        </FlowDocument>
      </FlowDocumentReader>
      <Button Height="23" HorizontalAlignment="Right" Margin="0,5,5,0" Name="button1" 
       VerticalAlignment="Top" Width="100" Click="SaveToXPS">Save to XPS</Button>
    </Grid>
  </Window>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.