Wednesday, December 10, 2014

Word to XAML, the next generation... "Xaml Generator" App for Office

Synergist - Xaml Generator – a New App for Office

A few years ago I build and shared the source code for a Word to Xaml Converter, a Word 2007 add-in that developers could use to convert Microsoft Office Word documents to Xaml for WPF and Silverlight applications.  Since it was originally published, the solution has been downloaded more than 3,000 times and I’ve received lots of feedback on it, progressively enhancing it to handle more Word features in the Xaml conversion.  I built the converter as a .NET library and a Word COM add-in, both built in C#. 

Apps for Office

Now with Office 2013 and Office 365, there is a new development model where developers can build “Apps for Office” using HTML, CSS, and JavaScript to build apps that can be added to Microsoft Office.  With this, Microsoft also launched an Apps for Office store where these apps can be listed and sold.  I was able to take what I built earlier as a Word add-in and move it to the cloud with Microsoft Azure Websites and listed it in the Apps for Office store.  This enables users of Office 2013 and Office 365 to now use the Xaml Generator in Microsoft Office Word wherever they are seeing it.

Xaml Generator

With this new App for Office, you select the text that you want to convert in Microsoft Word and then press the [Generate Xaml] button.  The generated text is then put in the task pane which you can then copy to Visual Studio to use in an app.  With this new release, I added Windows Xaml which can be used for Windows Universal Apps released for Windows 8.1 and Windows Phone 8.1.


To use the Xaml Generator in Word 2013


If you are creating complex XAML text runs, this looks like a tool you should really have in your tool belt. That said, the coolest thing is how this app shows off the new power behind the new Office app building API. No stinking DLL's or add-ins here and works in the native and web Office. Now that's cool... :)


Related Past Post XRef:
Word to XAML Converter Updated to support WPF 4,Silverlight 4 and Word 2010 (Think “File/Save As XAML…”)

No comments: