A Word 2010 Add-in that converts the Office Open XML (WordprocessingML) to XAML:
For WPF, the document is converted into a FlowDocument element.
For Silverlight 4, the document is converted into either a StackPanel element containing TextBlock elements or a RichTextBox.
- Add http://xmldocs.net/Word2Xaml to your Trusted Sites List in Internet Explorer.
- Install the WordToXaml Add-in from http://xmldocs.net/Word2Xaml/setup.exe
- Start Word; you should see a XAML Tab on the Ribbon Interface
- Open any document in Word 2010
- Switch to the XAML Tab and select the appropriate options
- You can preview the WPF or Silverlight 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 File menu select Save & Send...XAML Document to save the XAML document to a file
- WPF FlowDocuments can be viewed directy from Windows systems that have .Net 4 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 or RichTextBoxes must be inserted into existing Silverlight applications.