Project DescriptionA Word 2007 Add-in that converts the Office Open XML (WordprocessingML) to XAML:
For WPF, the document is converted into a FlowDocument element.
For Silverlight 2 the document is converted into a StackPanel element containing TextBlock elements.
Usage
- Install the WordToXaml Add-in (in the Releases Tab)
- Start Word; you should see a XAML Tab on the Ribbon Interface
- Open any document in Word 2007
- Switch to the XAML Tab and select the appropriate options
- You can preview the WPF or Silverlight 2 document directly from Word by pressing the Preview button
- Previewing the Silverlight XAML opens the XAML in a test Silverlight page running on the file system (You'll need to approve the Silverlight plug-in here). You can then copy the XAML directly from there.
- From the Office menu select Save As...XAML Document to save the XAML document to a file.
- WPF FlowDocuments can be viewed directy from Windows systems that have .Net 3.5 installed using Internet Explorer or FireFox browsers
- A limitation of the browser view for FlowDocuments is that Bitmap Effects like DropShadow will not work in Browsers becasue bitmap effects require a full trust application. Viewing FlowDocuments with Drop Shadows in browsers will cause an error.
- Silverlight StackPanels must be inserted into existing Silverlight applications.
FlowDocument Preview
Silverlight 2 Preview
